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)
-   -   Add-On Releases - vBulletin Wallpaper AD - v2.0 (https://vborg.vbsupport.ru/showthread.php?t=240096)

StarBuG 04-08-2010 10:00 PM

vBulletin Wallpaper AD - v2.0
 
1 Attachment(s)
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:

https://vborg.vbsupport.ru/external/2010/04/67.png

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

https://vborg.vbsupport.ru/

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

FiMeTi 04-09-2010 10:27 AM

Nice work pal. Thanks for sharing.

StarBuG 04-09-2010 10:54 AM

You're welcome :)

murekhalir 04-09-2010 05:36 PM

interestin! going to see how i can utlize this.

vividbreeze 04-10-2010 01:26 AM

nice!

dankreiner 04-13-2010 03:23 PM

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

StarBuG 04-14-2010 07:35 AM

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.

dankreiner 05-10-2010 05:46 AM

hey, this was the mod i was talking about that i couldn't get to work, but the other one did...

dankreiner 05-10-2010 05:47 AM

still having the css problem, i couldn't figure out your instructions on my arcade and classifieds pages...

lillylissy 07-20-2010 03:18 PM

Thank you very much StarBuG! It works perfectly!


All times are GMT. The time now is 07:02 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.01109 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)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