Advanced search  

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]

Pages: [1]   Go Down

Author Topic: linking to a style  (Read 3687 times)

0 Members and 1 Guest are viewing this topic.

celeritycat

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
linking to a style
« 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.
« Last Edit: November 13, 2006, 12:53:58 am by Nibbler »
Logged

celeritycat

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: linking to a style
« Reply #1 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.