PDA

View Full Version : Advertisement Box Under Forums


Win2k3xp
26 Oct 2006, 14:52
This Mod Will Ad a advertisement box under the forums.
There is a live preview Here (http://www.dzgforum.com) just above the whos online box or ive attached a screenshot.

Install
In Template FORUMHOME search for:
$forumhome_markread_script
Under This Add:
<!-- Adverts: -->
<table width="100%" height="100" border="0" align="center" cellpadding="6" cellspacing="1" class="tborder">
<thead>
<tr>
<td height="20" colspan="2" align="center" class="thead">Advertisements
</tr>
</thead>

<tbody>
<tr>
<td colspan="2" align="center" class="alt2">

INSERT AD CODE HERE

</td>
</tr>
</tbody>


</table>
<br />
<!-- Adverts: -->
Where it says INSERT AD CODE HERE place the add code or image there

Remember Click https://www.vbulletin.org/forum/ (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=130013)

Win2k3xp
26 Oct 2006, 15:08
Reserved!

Zowners
26 Oct 2006, 23:33
very nice simple mod!

Hornstar
27 Oct 2006, 05:39
Thanks simple but effective.

Win2k3xp
27 Oct 2006, 08:34
Thanks Guys! :laugh:

dnclub.org
27 Oct 2006, 21:02
installed !

smoknz28
29 Oct 2006, 20:23
Installed....thanks for sharing. ;)

tekstylez
03 Nov 2006, 21:06
can this be conditioned to certain usergroups?

Win2k3xp
04 Nov 2006, 17:30
To display adds to certain user groups use this code


<if condition="!is_member_of($bbuserinfo, 6,7,7)">
<!-- Adverts: -->
<table width="100%" height="100" border="0" align="center" cellpadding="6" cellspacing="1" class="tborder">
<thead>
<tr>
<td height="20" colspan="2" align="center" class="thead">Advertisements
</tr>
</thead>

<tbody>
<tr>
<td colspan="2" align="center" class="alt2">

INSERT AD CODE HERE

</td>
</tr>
</tbody>


</table>
<br />
<!-- Adverts: -->
</if>

Replace the numbers in BOLD with the usergroups you DO NOT want to see the ads

kollam003
25 May 2007, 11:17
thanks installed

rooban12
29 May 2007, 10:53
not working for my forum
www.lovetack.com

LjubavnaZona
05 Aug 2007, 02:28
I love it :)

Perfect. Installed.

Alibi
10 Aug 2007, 12:37
installed and works great Thanks!

bigraph
10 Aug 2007, 23:50
reserved, thx!

momo2
28 Aug 2007, 19:17
very nice but is there any way to get rid of the Gap betwen the what's going on there is a like half of inch empty space I like it to be closer so it will look better..

FallenMorgan
01 Sep 2007, 19:40
Yeah, it looks better than trying to edit templates with the CSS knowledge of a five year old.

thanks

James Argo
16 Sep 2007, 17:41
very nice but is there any way to get rid of the Gap betwen the what's going on there is a like half of inch empty space I like it to be closer so it will look better..

Just remove
<br />
<br />
below
<!-- /main -->

You can find it below the advert code. You'll get the idea of the use of br code around there.

* James Argo clicked Installed! :up:

James Argo
16 Sep 2007, 17:55
I find it's also easy to put it above the forum.

Find <body>
$header
$navbar

And paste the code below it.

BTW, thanks alot Win2k3xp!
This mod rocks! :cool:

;)
Jaymz

jacq008
23 Jun 2008, 20:05
I used the template edit, which is great, but I'm beginner and am not sure what an AD code is. I have tried a few different things (putting the picture in) but it just ended up in writing, not shown as an AD. Can you help?