ssi.php question ssi.php question
 

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

Main Menu

ssi.php question

Started by gaitje, October 25, 2003, 03:34:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gaitje

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

<?
$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);
?>

gaitje

Is it maybe depending on settings of coppermine?

If yes, how can I force that?

Joachim Müller

has got nothing to do with coppermine settings; edit ssi.php and look for$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$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

gaitje

thanks for solution :!: