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)
-   -   Mini Mods - Random Side Banners Outside Main Body in Fixed Position (https://vborg.vbsupport.ru/showthread.php?t=290404)

Toorak Times 10-07-2015 07:46 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2556369)
Do you have a link to your site so I can take a look?

www.tooraktimes.com.au

CAG CheechDogg 10-07-2015 09:05 PM

Do you have it installed on a particular style?

Toorak Times 10-08-2015 02:46 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2556530)
Do you have it installed on a particular style?

No mate, a LOT of mods though

mangmel 01-20-2016 02:05 AM

thanks..............

RichieBoy67 01-20-2016 04:55 AM

Quote:

Originally Posted by Toorak Times (Post 2556582)
No mate, a LOT of mods though

I haven't looked into the entire issue but from a quick peek at your site I see a pretty severe horizontal scroll. Probably not noticeable with high res screens but noticeable on my laptop using 1920 resolution.

yjmalmsteen 04-19-2016 07:54 PM

Great mod, thanks!
But can i use it without rotating option?and how?
I have to use still images there.
Thanks

TheLastSuperman 04-20-2016 07:01 PM

Quote:

Originally Posted by yjmalmsteen (Post 2569277)
Great mod, thanks!
But can i use it without rotating option?and how?
I have to use still images there.
Thanks

You *should* be able to with some small changes...

So take this:
Code:

div.left-banner {
background:url(left_banner_rotate.php);
background-repeat: no-repeat;
display:block;
height:435px;
width:140px;
position:fixed;
left:5px;
top:50px;
}
div.right-banner {
background:url(right_banner_rotate.php);
background-repeat: no-repeat;
display:block;
height:435px;
width:140px;
position:fixed;
right:5px;
top:50px;
}

Change to:
Code:

div.left-banner {
background:#ffffff;
display:block;
height:435px;
width:140px;
position:fixed;
left:5px;
top:50px;
}
div.right-banner {
background:#ffffff;
display:block;
height:435px;
width:140px;
position:fixed;
right:5px;
top:50px;
}

*Now the rotating .php file is no longer the background and it's just a white background :D.

Now take this:
Code:

<div class="left-banner"></div>
<div class="right-banner"></div>

And change it, you must add in your ad/banner codes or anything you want shown inside the div tags, here is an example:
Code:

<div class="left-banner">
NEW CODE HERE IF ADS OR BANNERS INCLUDING Google Ads/Ebay Partnership Ads/Openx or Revive Ad Server codes go HERE.
</div>
<div class="right-banner">
<a href="www.vbulletin.org" target="_blank"><img src="images/mybannerimage.png" alt="My Banner Title" /></a>
</div>

The top you could paste ad/banner codes in between the div tags, on the bottom "right-banner" I simply showed a basic ahref tag wrapped around an image i.e. a clickable banner which is very simple to do, this is also an example of what you said is a "still image" but it's linked to a site ;).

To adjust width/height simply change the following lines:
Code:

height:435px;
width:140px;

To the new values i.e. if it's a 300x250 ad simply change those to that, otherwise you could use 100% value instead of 435px (if it's too big then the div wrapping this does not have height defined or rather it's not inherited etc).

Let me know if this works for you or what didn't work :cool:.

CAG CheechDogg 04-21-2016 03:07 AM

Thanks SP ..... just saw this .....

MarkFL 04-21-2016 03:15 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2569330)
Thanks SP ..... just saw this .....

I would be willing to automate the CSS and header template edits, and add some product settings to allow the user to define the size of the banners if you want. If you are interested, shoot me a PM with your email addy, and I will send you the revised product. :)

CAG CheechDogg 04-22-2016 11:38 PM

Quote:

Originally Posted by MarkFL (Post 2569331)
I would be willing to automate the CSS and header template edits, and add some product settings to allow the user to define the size of the banners if you want. If you are interested, shoot me a PM with your email addy, and I will send you the revised product. :)


Go ahead and handle business Mark ... release it for all to enjoy my Man ...


All times are GMT. The time now is 05:39 AM.

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.01153 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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