Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: linking to a style  (Read 4234 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.025 seconds with 19 queries.