PDA

View Full Version : Ads under special forumid on forumhome


jluerken
08-22-2006, 10:00 PM
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
08-23-2006, 10:43 PM
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
08-23-2006, 11:13 PM
Can you provide me with an admin login so that I can take a look into your templates?

Tony_FPM
08-24-2006, 02:27 PM
INstalled and all working now.
Thanks for this mod.

Kirk Y
08-24-2006, 07:08 PM
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
08-26-2006, 09:15 AM
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
08-27-2006, 04:14 AM
Yes your forum does look nice. Do you do anywork on the side?

jluerken
08-27-2006, 01:05 PM
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
08-30-2006, 04:05 PM
Thanks for the hack! I'll install it right away... :)

Mathew7000
10-20-2006, 04:55 AM
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