forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: gaitje on October 25, 2003, 03:34:46 pm

Title: ssi.php question
Post by: gaitje 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);
?>
Title: ssi.php question
Post by: gaitje on October 25, 2003, 03:40:51 pm
Is it maybe depending on settings of coppermine?

If yes, how can I force that?
Title: ssi.php question
Post by: Joachim Müller 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
Title: ssi.php question
Post by: gaitje on October 27, 2003, 11:57:41 am
thanks for solution :!: