linking to a style linking to a style
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

linking to a style

Started by celeritycat, November 13, 2006, 12:34:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

celeritycat

This is what I have in the code, the images show up fine, but I dont know how to get them to be linked to a style.
<?php 
include "/pixelparty/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/pixelparty");
$styleguide = array(
"imageStyle" => "fetchimage",
"linkStyle" => "fetchimage",
"altTag" => "One of the last photos submitted",
                          
"imagesize" => "thumb") ;

$objCpm->cpm_viewLastAddedMedia(1,2,$styleguide);
$objCpm->cpm_close();
?>
.
do I add the fetchimage style to all of the coppermine css files or add it directly to the page its on, or create a new css file. I am confused. Since my ExpressEngine pages do not like adding php to them I am forced to use a inline frame to show the images on my index page.

celeritycat

Quote from: celeritycat on November 13, 2006, 12:34:44 AM
This is what I have in the code, the images show up fine, but I dont know how to get them to be linked to a style.
<?php 
include "/pixelparty/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/pixelparty");
$styleguide = array(
"imageStyle" => "fetchimage",
"linkStyle" => "fetchimage",
"altTag" => "One of the last photos submitted",
                          
"imagesize" => "thumb") ;

$objCpm->cpm_viewLastAddedMedia(1,2,$styleguide);
$objCpm->cpm_close();
?>
.
do I add the fetchimage style to all of the coppermine css files or add it directly to the page its on, or create a new css file. I am confused. Since my ExpressEngine pages do not like adding php to them I am forced to use a inline frame to show the images on my index page.

Sorry I figured it out and no help needed!.
Sometimes you can look something over and over and still not get it, And then it just clicks in your brain and you can't believe you didn't see it before. Sorry about the post!