Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
vBulletin Wallpaper AD - v2.0 Details »»
vBulletin Wallpaper AD - v2.0
Version: 2.0, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.0.x Rating:
Released: 04-08-2010 Last Update: Never Installs: 8
Template Edits
 
No support by the author.

Hello

This modification adds a so called Wallpaper AD to your forum.
A Wallpaper AD consists of a Leaderboard Banner (728x90px) and a Skyscraper Banner (160x600px) combined into one AD.

vBulletin Wallpaper AD v2.0 was elusively released on AdSenseExperts.com

vBulletin Wallpaper AD v2.0 is a complete code rewrite and
can now be used on a fluid or a fixed width style.

Don't forget to mark as INSTALLED if you use this!

Ok here it goes:

vBulletin Wallpaper Ad v1.01

I have a forum with a fixed width of 1024px that is centered so this modification
is for this kind of setting. I don't know if it will work on non centered forums or
forums with a fluid style. (if you use a fluid style use vBulletin Wallpaper AD v2.0)

in template header find:

Code:
<div class="above_body"> <!-- closing tag is in template navbar -->
add BEFORE:

Code:
<div class="ads_lb_wp_wrapper">
 <div class="ads_lb_wp">
   LEADERBOARD BANNER CODE HERE 728x90px
 </div>
</div>
<div class="ads_ss_wp_wrapper">
 <div class="ads_ss_wp">
  SKYSCRAPER BANNER CODE HERE 160x600px
 </div>
</div>
in template additional.css add:

Code:
/*------------------------------------------------------------------------------
| #> Wallpaper Advertisment
+-----------------------------------------------------------------------------*/
.ads_lb_wp_wrapper {
        position: relative; 
        width: 1024px;
        height: 95px;
        top: 0px;
}

.ads_lb_wp {
        width: 728px;
        height: 90px;
        margin-left:301px;
        top: 0px;
}

.ads_ss_wp_wrapper {
        position: absolute; 
        width: 1189px;
        height: 600px;
        top: 0px;
}

.ads_ss_wp {
        width: 160px;
        height: 600px;
        margin-right:0px;
        margin-left:1029px;
}
Like I said, my forum has a fixed width of 1024px.
I have positioned the wallpaper with a 5px space to my forum (see screenshot)

You need to change the CSS Settings according to your Forum width:

.ads_lb_wp_wrapper : 1024px <- Forum width

.ads_lb_wp : 301px <- Forum width + 5px (Space) - 728px (width of the Leaderboard)

.ads_ss_wp_wrapper : 1189px <- Forum width + 5px (Space) + 160px (width of the Skyscraper)

.ads_ss_wp : 1029px <- Forum width + 5px (Space)

It then looks like this:



Feedback and optimisation suggestions are very welcome!

If you installed v1.0 remove the four "z-index:xxx;" lines in your additional css entries for the wallpaper ad.
It works without them but with them you can't click buttons in your header!


Version History:
v1.01: Bug fix in CSS definitions that made it impossible to click on buttons in the header.
v1.0: initial release


Greetings

StarBuG



Google isn't paying you enough money! Discover WHY!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-09-2010, 10:27 AM
FiMeTi FiMeTi is offline
 
Join Date: May 2008
Location: Germany
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work pal. Thanks for sharing.
Reply With Quote
  #3  
Old 04-09-2010, 10:54 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome
Reply With Quote
  #4  
Old 04-09-2010, 05:36 PM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interestin! going to see how i can utlize this.
Reply With Quote
  #5  
Old 04-10-2010, 01:26 AM
vividbreeze vividbreeze is offline
 
Join Date: Sep 2007
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice!
Reply With Quote
  #6  
Old 04-13-2010, 03:23 PM
dankreiner dankreiner is offline
 
Join Date: Jun 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey this works, but it breaks everything for me... I can't click on any of my tabs or navigation. and some forums.\

im on 4.0.3
Reply With Quote
  #7  
Old 04-14-2010, 07:35 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you have a fixed forum width and a forum that is centered?
If not you need to change the CSS

But please don't ask me how and what it took me over 10hours to figure out a solution for my forum.
Reply With Quote
  #8  
Old 05-10-2010, 05:46 AM
dankreiner dankreiner is offline
 
Join Date: Jun 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey, this was the mod i was talking about that i couldn't get to work, but the other one did...
Reply With Quote
  #9  
Old 05-10-2010, 05:47 AM
dankreiner dankreiner is offline
 
Join Date: Jun 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still having the css problem, i couldn't figure out your instructions on my arcade and classifieds pages...
Reply With Quote
  #10  
Old 07-20-2010, 03:18 PM
lillylissy's Avatar
lillylissy lillylissy is offline
 
Join Date: Feb 2006
Location: Stuttgart / Germany
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much StarBuG! It works perfectly!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04837 seconds
  • Memory Usage 2,301KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete