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.

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

1 Attachment(s)
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
HTML Code:

style="width:728px;height:90px;background-color:#FF0000;clear:both;"
from the div element and just leave
HTML Code:

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?


All times are GMT. The time now is 06:06 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.01017 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete