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)

kiawah75 03-16-2010 12:51 PM

Quote:

Originally Posted by y2ksw (Post 1822648)
  1. right
  2. you will need to insert a placeholder in your templates, e.g. open ad_navbar_below, and insert: <div align="center"><!--@vbbanners:0@--></div><br /> in order to show all banners which belong to position 0.
  3. You are fine with the latest version.

I have two banners that I would like to place in rotation. I have placed them in position "0" in the ad_navbar_below section of the website. When I activate both of them they both show up at once rather than rotating them. I tried adding another <!--@vbbanners:0@--> in the style sheet based upon some other posts and that does not seem to work. Any suggestions would be appreciated. I am using 4.02 Patch 1. Thanks.

y2ksw 03-16-2010 02:17 PM

Quote:

Originally Posted by kiawah75 (Post 2004778)
I have two banners that I would like to place in rotation. I have placed them in position "0" in the ad_navbar_below section of the website. When I activate both of them they both show up at once rather than rotating them. I tried adding another <!--@vbbanners:0@--> in the style sheet based upon some other posts and that does not seem to work. Any suggestions would be appreciated. I am using 4.02 Patch 1. Thanks.

If you have only 2 banners in your database, of course they will never rotate, if you also show them both on a page :)

In order to make banners rotate, you should have more banners (with the same criteria) in your database than the highest number of banners you ever will show on a single page, unless you accept that in certain moments or pages no rotating is fine.

This product chooses from a number of banners, which fit the rules to show up, shuffles and then picks one for each placeholder. Thus, if there are 2 banners and 2 placeholders, all of them are shown.

kiawah75 03-16-2010 02:57 PM

Quote:

Originally Posted by y2ksw (Post 2004820)
If you have only 2 banners in your database, of course they will never rotate, if you also show them both on a page :)

In order to make banners rotate, you should have more banners (with the same criteria) in your database than the highest number of banners you ever will show on a single page, unless you accept that in certain moments or pages no rotating is fine.

This product chooses from a number of banners, which fit the rules to show up, shuffles and then picks one for each placeholder. Thus, if there are 2 banners and 2 placeholders, all of them are shown.

Sorry in advance for the follow up question - I am sure I am missing the obvious. I want to have two different banners rotate in the same location and have them each show up 50% of the time - is that not possible? For example each time the page is refreshed the new banner would show up. Thanks in advance for your help.

Videx 03-16-2010 03:53 PM

Quote:

Originally Posted by kiawah75 (Post 2004834)
I want to have two different banners rotate in the same location and have them each show up 50% of the time - is that not possible?

Yes, that is what this mod does by default. Stop messing with it and that's what will happen.

Note that at least one other mod (chatbox) cuts off the 'navbar below' ad location.

y2ksw 03-16-2010 05:59 PM

Quote:

Originally Posted by kiawah75 (Post 2004834)
Sorry in advance for the follow up question - I am sure I am missing the obvious. I want to have two different banners rotate in the same location and have them each show up 50% of the time - is that not possible? For example each time the page is refreshed the new banner would show up. Thanks in advance for your help.

Just use 1 placeholder on your pages and the 2 banners in your database will alternate each other with about 50% of the time.

While I am at it, if you have for example 1 unique banner and 2 identical banners in your database, you may move the weight to one side. The unique banner will get 33% and the other two 66%, which looks like, as if one banner appears more often.

kiawah75 03-16-2010 06:15 PM

Quote:

Originally Posted by y2ksw (Post 2004931)
Just use 1 placeholder on your pages and the 2 banners in your database will alternate each other with about 50% of the time.

While I am at it, if you have for example 1 unique banner and 2 identical banners in your database, you may move the weight to one side. The unique banner will get 33% and the other two 66%, which looks like, as if one banner appears more often.

Thanks for your help, I am still having the problem. I am going to reinstall the mod and hopefully that will clear up the problem.

rEd86 03-16-2010 10:12 PM

Greetings.

It would appear that only users that are primary users of the "Administrators" group have access to this tool. Users that are in the Administrators group, but as an "Additional Usergroups" don't have access. Is this a bug or a feature? :)

Thanks!

--Ed

HRCHOSTING 03-17-2010 01:58 AM

Banner not showing on content.php page (main cms page)

Have I dont something wrong on the install or is this feature not available?

dadams982 03-17-2010 03:50 PM

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.

Overbr 03-19-2010 01:56 PM

Hello ! Thanks your help-me ! (sorry my englhish OK)

Look, this, i?m inserting in POSTBIT_LEGACY an the codig.

Quote:


<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
<div class="postbit">
<h3 class="posthead">&nbsp; &nbsp;Publicidade</h3>
<div class="postbody"><br />
</div>
<!--@vbbanners:0@-->
<br />
<br />
</div>
</vb:if>
but when done this way he does not show the banners. Please, if you forgot to do some procedure? I'm sorry if already been answered in almost 50 pages.
I read up to 40 and could not do anything that would help me.
I use VB 4.0.2 OK.
Thanks in advance for any help and tip possible. I really need to make this mod work

Antonio Pereira 03-22-2010 04:19 PM

Its possible to use VBSEO - Clean HTML ?

Wen Clean HTML off is terrible for SEO.

Best Regards

djbaxter 03-22-2010 04:35 PM

Quote:

Originally Posted by Antonio Pereira (Post 2008212)
Its possible to use VBSEO - Clean HTML ?

Wen Clean HTML off is terrible for SEO.

No, that's incorrect. All "Clean HTML" does is remove white space from the code, which makes the code easier to read. Search engine spiders have no problem jumping over spaces and it isn't going to affect indexing or ranking on any search engine.

Theda 03-22-2010 10:13 PM

would this work for just the main logo banner at the top of forums? or is ad-specific?

Antonio Pereira 03-23-2010 06:48 AM

Quote:

Originally Posted by djbaxter (Post 2008222)
No, that's incorrect. All "Clean HTML" does is remove white space from the code, which makes the code easier to read. Search engine spiders have no problem jumping over spaces and it isn't going to affect indexing or ranking on any search engine.

Cleanup HTML code?
Quote:

Select 'Yes' to remove unnecessary whitespace characters and HTML comments from the source code of your forum pages.
This increases the C2C (Content to Code) ratio and reduces page sizes, resulting in a net performance increase and reduction in bandwidth required.
So you are tell-me increasing C2C is not important to google:confused:

Best Regards

djbaxter 03-23-2010 12:10 PM

Quote:

Originally Posted by Antonio Pereira (Post 2008617)
So you are tell-me increasing C2C is not important to google:confused:

Yes, that's what I'm telling you. The effect of applying that is negligible at best.

dweber 03-24-2010 05:59 PM

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.

mobe00 03-26-2010 12:07 PM

1 Attachment(s)
is it possible to add the options to change the wmode parameters in flash banners <param name="wmode" value="opaque" />

If i add an flash banner with rotating banner system the flash will lay over the vbulletin drop down menus etc. See the attached picture. I had to use the built in ad management in vbulletin and add the flash code manually to get it working correctly.

this is the flash code that displays it correctly

Code:

<div>
                        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="728" height="90" id="myFlashContent">
                                <param name="movie" value="banner.swf" />
                                <param name="wmode" value="opaque" />
                                <!--[if !IE]>-->
                                <object type="application/x-shockwave-flash" data="http://www.mydomain.com/images/ads/banner.swf" width="720" height="240">
                                        <param name="wmode" value="transparent" />
                                </object>
                        </object>
                </div>

Edit: wrong wmode on the attached picture..it should be opaque and not transparent

TruthElixirX 03-26-2010 10:06 PM

Quote:

Originally Posted by TruthElixirX (Post 1994104)
For some reason when I use the click tracking function, it does not count clicks from banners on vBadvanced pages. Any ideas? It works everywhere else.

Any body?

y2ksw 03-26-2010 10:41 PM

Quote:

Originally Posted by mobe00 (Post 2010502)
is it possible to add the options to change the wmode parameters in flash banners <param name="wmode" value="opaque" />

If i add an flash banner with rotating banner system the flash will lay over the vbulletin drop down menus etc. See the attached picture. I had to use the built in ad management in vbulletin and add the flash code manually to get it working correctly.

this is the flash code that displays it correctly

Code:

<div>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="728" height="90" id="myFlashContent">
                <param name="movie" value="banner.swf" />
                <param name="wmode" value="opaque" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="http://www.mydomain.com/images/ads/banner.swf" width="720" height="240">
                    <param name="wmode" value="transparent" />
                </object>
            </object>
        </div>

Edit: wrong wmode on the attached picture..it should be opaque and not transparent

I'm sorry, I can't fix problems with the embedded flash. My flash wrapper embeds arbitrary flash images in order to allow to change the destination URL and eventually enable click tracking. If this doesn't work for you, you still can use your code inside a rotating banner in the Text field, but also would habe to code the flash accordingly to point or to the click tracker, or to your final URL.

y2ksw 03-26-2010 10:43 PM

Quote:

Originally Posted by TruthElixirX (Post 2010813)
Any body?

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.

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

stinger2 03-29-2010 09:53 PM

hi y2ksw

works great......is there any way to exclude vbadvanced from showing the banners?

y2ksw 03-30-2010 09:29 AM

Quote:

Originally Posted by acekillerboy (Post 2012283)
i use CMPS how can i make that banners to appear only in CMPS portal and nowhere else on forum ? Thanks

If you use vBAdvanced, you may add placeholders to the vbAdvanced templates only. Other CMS which don't use vBulletin as engine, are not supported.

y2ksw 03-30-2010 09:38 AM

Quote:

Originally Posted by stinger2 (Post 2012514)
hi y2ksw


works great......is there any way to exclude vbadvanced from showing the banners?

If you explicitly select the forums, vBAdvanced will be excluded. Another solution is to choose templates which aren't propagated to vBAdvanced.

acekillerboy 03-30-2010 12:15 PM

Quote:

Originally Posted by y2ksw (Post 2012769)
If you use vBAdvanced, you may add placeholders to the vbAdvanced templates only. Other CMS which don't use vBulletin as engine, are not supported.

Thank for your answer .Yes i`m using Vbadvanced can you please say me exactly what i have to do since i`m newbie with coding.

Should i place
<!--@vbbanners@--> ? where exactly?

Many thanks !!!

shahryar_neo 03-30-2010 02:10 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2011637&postcount=705" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=705</a>

Developer's help need :d

y2ksw 03-30-2010 04:29 PM

Quote:

Originally Posted by shahryar_neo (Post 2012888)

You will have to ask an HTML / Style expert for this issue. Then, when you know how to show an 'X' between your posts, you may also replace that X with a banner placeholder :)

y2ksw 03-30-2010 04:32 PM

Quote:

Originally Posted by acekillerboy (Post 2012828)
Thank for your answer .Yes i`m using Vbadvanced can you please say me exactly what i have to do since i`m newbie with coding.

Should i place
<!--@vbbanners@--> ? where exactly?

Many thanks !!!

As replied in PM.

Please don't send me PM's if you also ask here. Also, public questions are likely to be replied more quickly ;)

stinger2 03-31-2010 10:05 AM

Quote:

Originally Posted by y2ksw (Post 2012775)
If you explicitly select the forums, vBAdvanced will be excluded. Another solution is to choose templates which aren't propagated to vBAdvanced.

thank you very much for the fast response

if i select the whole forums....forum home will NOT be included....if i chose the forum home...it will exclude the other forums

i just want to exclude the portal from showing the ads...

do you have any tip to do this

regards

S2

y2ksw 03-31-2010 11:47 AM

Quote:

Originally Posted by stinger2 (Post 2013364)
thank you very much for the fast response

if i select the whole forums....forum home will NOT be included....if i chose the forum home...it will exclude the other forums

i just want to exclude the portal from showing the ads...

do you have any tip to do this

regards

S2

If this is a general rule and you are happy with changing the code a bit, you may add (hook: global_complete, "Banner Insertion"), on the very top:

Code:

if(THIS_SCRIPT == 'adv_index')
{

and, on the very bottom:
Code:

}
This way, the plugin code will run only when the portal pages are shown. However, it also keeps the placeholders unchanged in other pages, which may have undesireable side effects, if they are not in the HTML comment format. True vBAdvanced support would require more coding.

If some more users are interested in an additional feature for vBAdvanced support, this is the time to ask :)

Bacon Butty 04-01-2010 01:04 PM

Looks great. Is there any chance the placeholder can be placed after the first post in every thread, like;

https://vborg.vbsupport.ru/

... as detailed here


All times are GMT. The time now is 06:56 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.07515 seconds
  • Memory Usage 1,861KB
  • 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
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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