Inserting Banner between thumnails :-?

naveen

Joined: 2003-07-09
Posts: 2
Posted: Wed, 2003-07-09 09:43

ok, I have 6 thumbnails per page, i.e 3 on top & 3 below that.

now I want to place a banner between the two, what should I edit?

Please explain in detail, I'm a new user of gallery...

My banner code is

<!--#include virtual="/cgi-bin/ads/gallery/ads.cgi?[Opt1]&[Opt2]"-->

Thankyou.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-07-09 13:55

assuming you don't want to re-write view_album.php (which is what you will need to do to get exactly what you want) you can get a banner every second line very easily (so you will two on a page as described above).

Open view_album.php, and go to line 609. It should be:
echo("</tr>");
Insert
echo "<tr><td colspan=$cols align=center>BANNER HERE</td>";
immediately above it, replacing the obvious.

 
naveen

Joined: 2003-07-09
Posts: 2
Posted: Thu, 2003-07-10 06:11

Cool it worked

The code you gave me worked fine, but when I inserted the banner code it kept giving me errors.

Then I created inline_albumthumb.banner

Then in view_album.php at line 347 inserted

 echo("<tr>");
{
echo("<td colspan=$cols align=center>");
includeHtmlWrap("inline_albumthumb.banner");
echo("</td>");
}
echo("</tr>");

but the problem is that it gives me 2 banners both at top of the row.

BTW ..there is no 609th line ( using cute html)

Thanx.

Naveen

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-07-10 08:36

what version of gallery are you running?