vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Banner between forum category (https://vborg.vbsupport.ru/showthread.php?t=275643)

Gripi 12-18-2011 05:27 PM

Banner between forum category
 
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

K!nG 12-18-2011 10:31 PM

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

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
Code:

<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
Code:

        <!-- 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.


All times are GMT. The time now is 11:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00983 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete