linking to a style linking to a style
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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!