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)

y2ksw 03-26-2010 10:44 PM

Quote:

Originally Posted by dweber (Post 2009540)
I would like to add a place holder into a static HTML Widget box on the "Front Page" but am a newbie.

Could anyone give me a sample line of HTML code to insert the placeholder (@vbanners@) into?

Thanks in advance.

As in the help files ;)

<!--@vbbanners:0-->
<!--@vbbanners:1-->
<!--@vbbanners:2-->
...
<!--@vbbanners:9-->

dadams982 03-27-2010 01:39 AM

Quote:

Originally Posted by dadams982 (Post 2005637)
I watched your video and this seem quite easy. Anyone know where to edit a template to put a place holder to place two of them side by side between forum topics on forumhome?

Hope that made sense.

Can anybody lend a hand? Am I supposed to define two banners 1-2? or just one? And where would I put this to make this work?

dadams982 03-27-2010 01:43 AM

Quote:

Originally Posted by djbaxter (Post 1986922)
At the location where you want them to appear, try something like this:

Code:

<span align="center">
<!--@vbbanners:0@-->&nbsp;&nbsp;&nbsp;<!--@vbbanners:1@-->
</span>

assuming that you have set up banner 0 and banner 1 as the correct dimensions.

I haven't tryied to do this, mind you, partly because I upgraded to 4.02 and this add-on isn't yet upgraded for 4.02, but it's worth a try.

Definitley going to try this dj, do you know where to insert this to show up side by side between forums on the forumhome? Also, can I set more than two banners to rotate if I only use the 2 defined? A good representation of what I am trying to accomplish is on anabolicminds.com on forumhome

TruthElixirX 03-27-2010 02:05 AM

Quote:

Originally Posted by y2ksw (Post 2010832)
At line 57 in rbs_banner.php, you may comment out the if statement. In this case, the referers are not checked against the forum URL, and clicks should be counted. However, this opens a door to click fraud.

Worked! Thanks!

shahryar_neo 03-28-2010 02:27 PM

how can show banners between every X post ? for example set these :

1) show after last and first post of topic.
2) between posts .

I used vB 4 Advertisement management and I shifted to this mod and it's so better but cannot customize well for between posts .

66tiger 03-28-2010 02:42 PM

I have this installed on vB4.0.2 PL4 and I can get it to work in some places but not in others.

It seems to work correctly on the index page, but it doesn't work inside the forums.

For example, I added <!--@vbbanners:2@--> to the ad_global_header2 template, then set up a banner which I set to Position 2, and set it to display in all forums (nothing selected in the list of forums). The URL for the image is valid; I can enter it directly into my browser and it will display.

I can see the banner on the index page, but if I go to any forum it isn't shown. Can anyone help me to understand why it doesn't work as I expect it to?

y2ksw 03-28-2010 03:27 PM

Maybe ad_global_header2 isn't implemented in all templates, such as FORUMDISPLAY. There were or still are a few bugs reported regarding the banners in the header area.

If the "Forum Home" option is checked, it will show only there though.

66tiger 03-28-2010 05:18 PM

D'oh! The Forum Home setting was it. Thanks!

y2ksw 03-28-2010 08:57 PM

At least I got it right once :)

acekillerboy 03-29-2010 02:26 PM

i use CMPS how can i make that banners to appear only in CMPS portal and nowhere else on forum ? Thanks


All times are GMT. The time now is 06:15 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.02831 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)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