banners down the side of images

Powerfull XFileSharing version

Moderator: admin

Message
Author
Jesse202
Posts: 246
Joined: May 07, 2010 6:24 pm

banners down the side of images

#1 Postby Jesse202 » Nov 09, 2010 4:41 pm

Looking to add banners down the side of the images on the download page. there was a old thread on how to do this, but the code needed to be modified dows not exist in the new version. does anyone know how to do this?

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#2 Postby PowerChaos » Nov 11, 2010 11:57 pm

what you exacly mean

the download site is download1.html (where the downloads goes to )

just use this code on the place you like to post ads on

Code: Select all

<TMPL_IF ads>
your ads in here , will only show to usergroup who need to see ads
</TMPL_IF>


just place it on the position you like to have it , in my case it is just in main.html so it shows on all pages

Greetings From PowerChaos

Jesse202
Posts: 246
Joined: May 07, 2010 6:24 pm

#3 Postby Jesse202 » Nov 12, 2010 5:54 am

I mean so there are banners on the left and right of the image. Setup like below:

I have a banner here
Banner image banner
I have a banner here

Just on the download1 page

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#4 Postby PowerChaos » Nov 12, 2010 10:35 am

well , i can say that you can try this code
but not sure if it works , just mess a bit around with this

first of all you need to use tabels ( i am bad at that thing )

Code: Select all

<TMPL_IF image_url>
<TMPL_IF ads>
<table>
<tr><td>AD CODE HERE</td>
<td><p><img src="<TMPL_VAR image_url>" class="pic" alt="<TMPL_VAR file_name>" onLoad="scaleImg(this)" style="-ms-interpolation-mode:bicubic" GALLERYIMG="no"></p></td>
<td>AD CODE HERE</td></tr>
</table>


</TMPL_IF>
<TMPL_UNLESS ads>
<p><img src="<TMPL_VAR image_url>" class="pic" alt="<TMPL_VAR file_name>" onLoad="scaleImg(this)" style="-ms-interpolation-mode:bicubic" GALLERYIMG="no"></p>
</TMPL_UNLESS>
</TMPL_IF>

as you notice , if ads ( ads need to show) then it takes above code , unless ads does not need to show then it takes the code below

hopely it works for you and can you start a little messing around with it to fix to your needs

if you need the example you provided ( 1 top , 3 middle , 1 bothom)
then please use this in place of the above table code

Code: Select all

<table>
<tr><td colspan=3 align=center width=1000px>Banner</td></tr>
<tr><td width=120px>ADS</td><td width=860px>IMAGE</td><td width=120px>ADS</td></tr>
<tr><td colspan=3>BANNER</td></tr>
</table>


hopely this can help you a lot more

Greetings From PowerChaos

Jesse202
Posts: 246
Joined: May 07, 2010 6:24 pm

#5 Postby Jesse202 » Nov 12, 2010 8:19 pm

Thanks. I'll play around with it a little later. Also, it's two ads in the middle and one on the top.

Ad above the image, ad to the left of the image, ad to the right of the image and ad on the bottom.

Jesse202
Posts: 246
Joined: May 07, 2010 6:24 pm

#6 Postby Jesse202 » Nov 15, 2010 4:12 pm

Cannot believe I didn't think of this myself lol such commonsense. Anyway, I do not have an option of no ads, so I just added simple tables:

Code: Select all


<TMPL_IF image_url>
<table>
<tr><td>ADSPACE CODE</td>
<td><p><img src="<TMPL_VAR image_url>" class="pic" alt="<TMPL_VAR file_name>" onLoad="scaleImg(this)" style="-ms-interpolation-mode:bicubic" GALLERYIMG="no"></p>
</td>
<td>ADSPACE CODE</td></tr>
</table>
</TMPL_IF>


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests