PDA

View Full Version : Ads under special forumid on forumhome


jluerken
23 Aug 2006, 21:16
Hi Members,

asked on vb.com I want to describe how you can add ads, banners or other stuff under a special forum.
This is also working with styles with seperated categories.

There is no limit, you can nearly add everything you want.

Check the admincp for the forumid where you want to put the Code.

Open forumhome_forumbit_level2_post and scroll all the way down.
Right above $childforumbits add

<if condition="$forum[forumid] == 21">
<tr>
<td class="alt2" colspan="5">
<br />
<div align="center">
<img src="http://www.clanforums.com/forum/images/signatur/signatur.jpg"><br>
<font color=red><b>YOUR BANNER CODE HERE</b></font>
</div>
<br />
</td>
</tr>
</if>

where 21 is the forumid you checked in your admincp.

Example:
http://www.clanforums.com/gallery/files/3-advert_underspecial_forumid.jpg

Additional Info:
The ForumID you are entering MUST be a forum and cannot be a category to work!

Have fun :D

Tony_FPM
23 Aug 2006, 23:43
Hey i just installed it to try it out but i dont see anything.

This is my piece of template.
What did i do wrong ??

<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>
</tr>
<if condition="$forum[forumid] == 10">
<tr>
<td class="alt2" colspan="5">
<br />
<div align="center">
<img src="http://www.freakpyromaniacs.com/forum/images/banners/alpecobanner.gif"><br>
<font color=red><b>YOUR BANNER CODE HERE</b></font>
</div>
<br />
</td>
</tr>
</if>
$childforumbits

I am using 3.6 Rc3

jluerken
24 Aug 2006, 00:13
Can you provide me with an admin login so that I can take a look into your templates?

Tony_FPM
24 Aug 2006, 15:27
INstalled and all working now.
Thanks for this mod.

Kirk Y
24 Aug 2006, 20:08
XHTML Police Coming Through!

<img src="http://www.clanforums.com/forum/images/signatur/signatur.jpg"><br>

Should be...
<img src="http://www.clanforums.com/forum/images/signatur/signatur.jpg" /><br />

:p Tee-hee. Good post, this should (hopefully) answer the endless number of threads asking how to do this.

chrisife
26 Aug 2006, 10:15
Can you provide me with an admin login so that I can take a look into your templates?

jluerken,
I looked at your site and loved the design. Can you help me put together my forum like that? I am new here. My forum is http://www.swissforeignersforum.com

colochris
27 Aug 2006, 05:14
Yes your forum does look nice. Do you do anywork on the side?

jluerken
27 Aug 2006, 14:05
jluerken,
I looked at your site and loved the design. Can you help me put together my forum like that? I am new here. My forum is http://www.swissforeignersforum.com

Well send me a PM what you need!


Yes your forum does look nice. Do you do anywork on the side?


Please also PM me!

Snake
30 Aug 2006, 17:05
Thanks for the hack! I'll install it right away... :)

Mathew7000
20 Oct 2006, 05:55
What if you wanted the banner to show up ABOVE a forum category? I have regional forums that id like to have a banner above, but not be shown at the bottom of the category above it, where the banner looks like its apart of a different category...

Edit: I figured it out...just place this script ABOVE the rest of the code in forumhome_forumbit_level2_post