forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: celeritycat on November 13, 2006, 12:34:44 am

Title: linking to a style
Post by: 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.
Code: [Select]
<?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.
Title: Re: linking to a style
Post by: celeritycat on November 13, 2006, 12:49:11 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.
Code: [Select]
<?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!