vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

Internetcafe 11-28-2010 07:12 PM

Doesn't seem to work on 4.0.8 :-
Quote:

Please upload the files that came with the product before installing or upgrading!
Missing files:
All files have been uploaded !?

CybaGirl 11-29-2010 01:50 AM

Quote:

Originally Posted by giorgioarmani (Post 1640159)
So its installed.. Where do I place "@vbbanners@" so it shows top right?

If anyone else is wondering how to do this and if what you are trying to achieve is shown in this image.

https://vborg.vbsupport.ru/external/2010/11/5.jpg

This is what I did to make it look like this.

1. Log in to your admin panel.

2. Click on styles and templates.

3. Click on style manager.

4. Select the template you wish to modify and from the drop down box on the right select Edit Templates.

5. Double click on Ad Location Templates so that this menu expands.

6. Scroll down till you see ad_header_end and double click on it.

7. In the empty big box enter in the following.

Code:

<br><br><br>
<div align="center"><table>
<tr>
    <td><!--@vbbanners:0@--></td>
</tr>
</table>
</div>

Of course changing <!--@vbbanners:0@--> to what ever banner number you want to display in this area.

For example if you want to display Position 2 banners in this area change the 0 to a 2 so that it looks like this.

<!--@vbbanners:2@-->

Oh yes and if you are not using a large forum logo like we are. You may have to switch where it says <div align="center"> in the code above to say <div align="right"> .


Anyway hope this helps others who would like to place their banners in this area.

:D

Parture 11-30-2010 08:36 AM

How do we get the images to rotate each time the page is refreshed? I have added 3 images but only one ever shows up.

Oh, problem solved, for some reson the starting dates of the other banners were later in the day.

andreamarucci 12-02-2010 09:14 AM

1 Attachment(s)
Quote:

Originally Posted by CybaGirl (Post 2126975)
5. Double click on Ad Location Templates so that this menu expands.

6. Scroll down till you see ad_header_end and double click on it.

There's no ad_header_end. I've 4.0.8pl2 and these are the templates

Attachment 124078

CybaGirl 12-02-2010 10:11 AM

Hi Andreamarucci,

I have just tested the code in the ad_global_header1 and it seems to work exactly the same as if it was placed in the ad_header_end

I haven't upgraded our forum to version 4.0.8 pl2 yet. So I guess this is where I will need to place this code when I do :).

andreamarucci 12-02-2010 10:20 AM

Tried and it works in the header1 or header2 position...

andreamarucci 12-02-2010 11:04 AM

Another question. Is it possible to rotate the banner based on time? I've seen that the banner change when you change page. It's not possible to make it change every x seconds?

CybaGirl 12-02-2010 11:32 AM

Quote:

Originally Posted by andreamarucci (Post 2128301)
Another question. Is it possible to rotate the banner based on time? I've seen that the banner change when you change page. It's not possible to make it change every x seconds?


I read it was possible in one of the replies in one of the previous pages. But I cannot remember which page I read it on now.

It has something to do with using the meta refresh tag.

Probably your best bet is to start from page 1 and read all the pages. As I am sure I read about this on one of the previous pages. Plus if my memory serves me right someone is kind enough to provide a working example on how you can achieve this.

nando.dominios 12-08-2010 09:52 AM

Please, replace output url "&" with "&amp;" in the next relase for a valid urls. Good work, thanks.

http://www.htmlhelp.com/tools/valida...blems.html#amp

y2ksw 12-09-2010 06:52 AM

Quote:

Originally Posted by andreamarucci (Post 2128301)
Another question. Is it possible to rotate the banner based on time? I've seen that the banner change when you change page. It's not possible to make it change every x seconds?

https://vborg.vbsupport.ru/showpost....&postcount=989


All times are GMT. The time now is 11:05 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.03091 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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