vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - add banner under longin (https://vborg.vbsupport.ru/showthread.php?t=295975)

bing11 03-10-2013 11:00 PM

add banner under longin
 
1 Attachment(s)
This is my first small mod post here.

hope anybody can teach me more

I find 3 ways finish this Job

My way is very easy no any css add or change.

In the header template find

Code:


    </div>
    <div class="ad_global_header">

before this add
Code:

<ul>
            <li>{vb:raw ad_location.global_header2}</li>
            </ul>

and then just remove
Code:

{vb:raw ad_location.global_header2}
and place the HTML code for the banner in the ad_global_header2 template here
Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Ad Location Templates -> ad_global_header2

It is working good in Ie7 Safari fireofax and Chrome . but not look good in Opera (Widescreen)

Hope someone can help me.

other 2 ways

is
https://vborg.vbsupport.ru/showthread.php?t=232325

and

http://www.vbulletin.com/forum/forum...username-info? ( I think it is the best one)


They are both great idea. but look like not fit to IE7

Finally I add a function to this mod learn from 3.8

Show this banner only forumhome

When you edit ad_global_header2 just do this

Code:

<if condition="THIS_SCRIPT == 'index'">your html code </if>
It is very Simple. hope can help you

Attachment 144114

richardevans123 03-11-2013 04:16 PM

Do you have any screenshots?

bing11 03-11-2013 05:35 PM

Quote:

Originally Posted by richardevans123 (Post 2409339)
Do you have any screenshots?

upload

tanzeelniazi 03-12-2013 01:21 AM

Nice Mod Install Working Fine in VB4.2.0
1 Question
I use this method 2 Method
First
Header method and 2nd is this: http://www.vbulletin.com/forum/forum...username-info?

But my Banner is not Full in Right Side Showing Little gape

tanzeelniazi 03-12-2013 01:49 AM

Now i am using this method:
http://www.vbulletin.com/forum/forum...username-info?
But My banner showing in only Main Page why he is not showing in all forum i mean when i click another section banner is not showing

bing11 03-12-2013 03:47 AM

Quote:

Originally Posted by tanzeelniazi (Post 2409414)
Now i am using this method:
http://www.vbulletin.com/forum/forum...username-info?
But My banner showing in only Main Page why he is not showing in all forum i mean when i click another section banner is not showing

don't use this code
Code:

<if condition="THIS_SCRIPT == 'index'">your html code </if>

tanzeelniazi 03-12-2013 01:33 PM

Quote:

Originally Posted by bing11 (Post 2409433)
don't use this code
Code:

<if condition="THIS_SCRIPT == 'index'">your html code </if>

Thanks
Why my banned is not Full Right side
i want my banner Full left side Below Logout

bing11 03-14-2013 04:37 AM

use the first one should work

Naijasite 06-15-2013 10:24 PM

how to make the advert to show on forumdisplay and index only?

bosanci28 07-20-2013 11:46 PM

how to center it in the middle of the page?
thanks


All times are GMT. The time now is 12:40 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.01535 seconds
  • Memory Usage 1,736KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_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