XFileSharing Pro - adding ads only on the download page.

Message
Author
Oswaldt
Posts: 47
Joined: May 21, 2010 5:26 am

adding ads only on the download page.

#1 Postby Oswaldt » May 23, 2010 6:17 am

I'd like to add two 300x250 ads on the download page.

I would like them to go on each side of download file.

I have already put 2 728x60 leaderboards, one on top and the other at the bottom...now I'd like those 2 300x250 to go on each side to make it 4 ads total on the download page.

My 2 leaderboards are on the main.html so it's on all pages but I'd like these additional 300x250s to be only on the page where people download files.

I hope someone can help me.

Thank you

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » May 24, 2010 8:18 am

In index.cgi replace

Code: Select all

$ses->PrintTemplate("download1.html",
with

Code: Select all

$ses->PrintTemplate("download1.html", ads2 => 1,
and in main.html put your ads into

Code: Select all

<TMPL_IF ads2>....</TMPL_IF>