View Full Version : Banner between forum category
Gripi
12-18-2011, 05:27 PM
hi..
could someone tell me how to put a banner between forum category? just like this:
https://vborg.vbsupport.ru/external/2011/12/6.gif
it is vb4 issue
thanks
Not sure if this helps you or not but i have seen people using this method got it done. Check out this thread.
Check This (https://www.vbulletin.com/forum/showthread.php/169892-How-To-Insert-A-Banner-Between-Categories)
Chazz Layne
12-19-2011, 10:18 PM
I've been trying to figure out the same thing all day. Unfortunately, the code in the above link does not work on vBulletin 4.
Lynne
12-20-2011, 01:06 AM
The image is a vB3 image. To the OP - is this a vB3 issue or a vB4 issue?
Gripi
12-22-2011, 04:56 PM
it is vb4 issue
the image is just an example
Gripi
12-27-2011, 08:57 AM
merry xmas guys..
anyone could help?
thanks alot
Gripi
01-07-2012, 02:38 PM
still no one?
LifesGreatestGift
01-07-2012, 03:23 PM
open FORUMHOME
include jQuery (1.4+) in your head.
then use
<div id="test-container" style="width:728px;height:90px;background-color:#FF0000;clear:both;">
</div>
<script type="text/javascript">
$('li#cat9').after($('#test-container'));
</script>
change the cat9 # to the category id you'd like to add the ad in the #test-container after.
should work but the code needs to be placed after
<!-- main -->
{vb:raw template_hook.forumhome_above_forums}
<ol id="forums" class="floatcontainer">
{vb:raw forumbits}
</ol>
{vb:raw template_hook.forumhome_below_forums}
<!-- /main -->
and the script with the cat# id's must ALWAYS be placed after the ad divs :)
So if you wanted multiple ads, you would need multiples divs with unique ID's and just duplicate the jQuery code line and change the cat#
Something to look at and play with. Hope it helps. :)
Gripi
01-08-2012, 04:10 PM
hi..
i already try it and wont work, the banner code show on the very bottom category of my forum.
i already change the catXX id
LifesGreatestGift
01-09-2012, 02:31 AM
link me to your forum so i can review your code. It works just fine.
Gripi
01-10-2012, 07:36 AM
hi..
i already PM you the link to my forumm, thanks
LifesGreatestGift
01-10-2012, 03:52 PM
well if you look at the image here, your jQuery code is looking for li#cat6 when there is no cat6 in your forum categories. fix that to an actual cat(egory) ID and it should work.
LifesGreatestGift
01-10-2012, 03:58 PM
I see you have a forum with the ID of 6 at the bottom of a category of 4 forums. The ID needs to be of the main category housing the forums you want the ad under, not the forum ID. So change the 6 to a 1
also, once you have it positoned where you want it feel free to remove the
style="width:728px;height:90px;background-color:#FF0000;clear:both;"
from the div element and just leave
style="clear:both;"
I made it that way so you could see where the ad would be placed without using actual ad code.
Just place your ad code inside the div, and maybe add some padding/margin to the div to make it
look uniform.
Gripi
01-11-2012, 10:19 AM
thanks alot.. working now..
my mistake :)
ArchAngelz
08-26-2012, 01:15 PM
Am trying this out....what does "include jQuery (1.4+) in your head" mean?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.