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: ssi.php question  (Read 3369 times)

0 Members and 1 Guest are viewing this topic.

gaitje

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
ssi.php question
« on: October 25, 2003, 03:34:46 pm »

I use the ssi.php script to set the latest 4 uploade pictures on the frontpage of my website.

But now the problem, I like to set they below each other, at this moment the are side by side..

I use the follow code

Code: [Select]
<?
$cpg_include_link=1; // thumbnails are links? 0=no, 1=yes
$cpg_link_singlepic=0; // link points to album or single pic? 0=album, 1=single pic
$cpg_how_many=4; // how many thumbs do you need?
$cgp_limit_album=""; // specify certain album, ""=all
$cpg_random=0; //get random pic 0=no, 1=yes
print cpg_thumb($cpg_include_link,$cpg_link_singlepic,$cpg_how_many,$cgp_limit_album,$cpg_random);
?>
Logged

gaitje

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
ssi.php question
« Reply #1 on: October 25, 2003, 03:40:51 pm »

Is it maybe depending on settings of coppermine?

If yes, how can I force that?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
ssi.php question
« Reply #2 on: October 25, 2003, 04:50:51 pm »

has got nothing to do with coppermine settings; edit ssi.php and look for
Code: [Select]
$return_value="<table align=\"center\" cellspacing=\"0\" cellpadding=\"10\" align=\"center\" class=\"maintable\" border=\"0\">";
$td_start="<td valign=\"middle\" class=\"thumbnails\" align=\"center\">\n";
$td_end="</td>";
$cpg_table_end="</table>";
$tr_start="<tr>\n";
$tr_end="</tr>\n";
and change it to
Code: [Select]
$return_value="<table align=\"center\" cellspacing=\"0\" cellpadding=\"10\" align=\"center\" class=\"maintable\" border=\"0\">";
$td_start="<tr><td valign=\"middle\" class=\"thumbnails\" align=\"center\">\n";
$td_end="</td></tr>";
$cpg_table_end="</table>";
$tr_start="\n";
$tr_end="\n";
GauGau
Logged

gaitje

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
ssi.php question
« Reply #3 on: October 27, 2003, 11:57:41 am »

thanks for solution :!:
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.