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 01-30-2011 09:20 AM

Quote:

Originally Posted by PossumX (Post 2156277)
Anyway to use this as a rotation function in the Sidebar (Forum Block)? I've been playing around with it, and I can't quite figure out how to set a custom placement into a Forum Block.

Any thoughts?

Thanks !!

Il believe sidebars are generated with widgets (?). In this case it may be necessary to create a HTML or PHP widget with a banner placeholder. I can't tell though, it's a designer issue ... :)

morelia 01-31-2011 01:06 AM

Quick Question.....

which template should I be using to get a banner in the blank space between the navbar and the body??

thanks...

djbaxter 01-31-2011 10:34 AM

Quote:

Originally Posted by morelia (Post 2156742)
Quick Question.....

which template should I be using to get a banner in the blank space between the navbar and the body??

Admin CP > Advertising > Manage ads / Add New Ad > Global Below Navbar

Big-Pete 01-31-2011 02:56 PM

I can't get this to show up in a CMS widget, Do i need to use a static html widget? and do i just put @vbbanners:%d@ in it??

I have vbseo installed, I've changed the place holder as per the PDF but still can't get it to work.

morelia 01-31-2011 08:01 PM

Quote:

Originally Posted by djbaxter (Post 2156849)
Admin CP > Advertising > Manage ads / Add New Ad > Global Below Navbar

Thats included in the body.

I want to use the space between the body and navbar..

nhawk 02-03-2011 02:39 PM

Quote:

Originally Posted by morelia (Post 2157070)
Thats included in the body.

I want to use the space between the body and navbar..

I realize this is an older post but I see nobody has replied.

In Styles & Templates, select the navbar template for your style.

Look for this code..

Code:

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

Copy those two lines and then look for this code..

Code:

</div><!-- closing div for above_body -->

<div class="body_wrapper">

Then paste what you copied between the two lines above like this..

Code:

</div><!-- closing div for above_body -->

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

<div class="body_wrapper">

Then delete the original lines you copied. The ads will now be between the header and body of the forum.

ecky 02-03-2011 06:28 PM

I'm about to upgrade from 2.2.6. to 2.3.1.
Will all my settings and click counters be reset during the upgrade?

y2ksw 02-04-2011 12:27 PM

Quote:

Originally Posted by Big-Pete (Post 2156926)
I can't get this to show up in a CMS widget, Do i need to use a static html widget? and do i just put @vbbanners:%d@ in it??

I have vbseo installed, I've changed the place holder as per the PDF but still can't get it to work.

Probably this ... I suppose widgets are normally cached or use different rendering (no idea).

oddmud 02-08-2011 05:31 PM

I found out using the <!--@vbbanners:0@--> code will work in the vB Advertising program.

It didn't prior, but for some reason it is now working. I am using the BETA 4.1.2 MS. This may have something to do with it working properly in the advertisement section. It's much better when you don't have to edit code.

voglermc 02-09-2011 02:24 PM

how can I add a 10th vertical position?

y2ksw 02-10-2011 08:23 AM

Quote:

Originally Posted by voglermc (Post 2160573)
how can I add a 10th vertical position?

You have 10 banner types (positions) available. I have no plan to add more.

voglermc 02-10-2011 12:53 PM

Quote:

Originally Posted by y2ksw (Post 2160910)
You have 10 banner types (positions) available. I have no plan to add more.

Please look at this page:
http://www.detailingbliss.com/

I used the 9 vertical positions in the sidebar to track each banner. If I use 1 of those again I could possibly have a duplicate show. correct?

y2ksw 02-10-2011 02:25 PM

Quote:

Originally Posted by voglermc (Post 2160972)
Please look at this page:
http://www.detailingbliss.com/

I used the 9 vertical positions in the sidebar to track each banner. If I use 1 of those again I could possibly have a duplicate show. correct?

You may use for all of these banners a single position. If you have 9 banners to show, and 9 placeholders if the same position, all of them will appear. if you have less, then less and if you have more, they will rotate, showing all at an average medium. And they will also rotate "in place", giving each page a different order of each every time a page loads.

Typically, a 9 banner layout each below each other would look like:

<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@--><br /><br />
<!--@vbbanners:1@-->

No matter what, each banner can be click tracked accurately.

Of course, if you need each banner to stay in a certain place, then it does not make much sense to use this plugin and you are better off with a manual insertion of each of the banners in your templates ;)

cruiserheads 02-15-2011 05:16 PM

How do i insert the banners on the classified and gallery pages? ? ?

Thanks.

SoltanWorld 02-15-2011 10:12 PM

Installed Excellent

Just some ads like this

http://media.markethealth.com/banner...465&aid=422154

doesn't shown up. what's the problem?>

y2ksw 02-16-2011 08:21 AM

1 Attachment(s)
Quote:

Originally Posted by SoltanWorld (Post 2162969)
Installed Excellent

Just some ads like this

http://media.markethealth.com/banner...465&aid=422154

doesn't shown up. what's the problem?>

Attachment 126729
At my site they do ... please try a little harder :)

y2ksw 02-16-2011 08:26 AM

Quote:

Originally Posted by cruiserheads (Post 2162883)
How do i insert the banners on the classified and gallery pages? ? ?

Thanks.

If you use common templates to all pages, there you go. Such as ad_below_navbar. In all other cases, add a placeholder to the specific template at your wish.

SoltanWorld 02-16-2011 11:15 AM

i did but still nth happened what should i do?

robbiefritz 02-18-2011 04:23 PM

Works great, thanks!

wampforum 02-18-2011 06:13 PM

Ok I'm stumped!! I have been running this mod fine for months.
But now I have a problem. I currently run a single ad placement in the header just below the log in as well as the 2 default VB ads under navbar and footer.
What I wish to do is place a rotational ad into a cms widget. I can get the widget to work fine when using:
<!--@vbbanners:0@--> But adding banners to another list and using that instead won't work.
It seems I have the nth placeholder in options set to <!--@vbbanners:0@--> so it wont show anything else I assume?
Reading this thread it seems that should be <!--@vbbanners:%@--> instead but changing that makes the ads in the header disappear.
So It seems I can only show ads in <!--@vbbanners:0@--> with that same code as the nth placeholder.
What am I doing wrong? I use the <!--@vbbanners:0@--> code in the ad location template

Help?!!

djbaxter 02-20-2011 01:10 AM

I've had this add-on working beautifully from vBulletin 3.x right through to 4.12.

Hwever, I've just added my first Flash banner.

The placeholder for where I've entered the information for the Flash ad is in a centered div. For all of the static banners, this works perfectly.

But the Flash banner, although it displays fine, is left-aligned instead of centered.

Any idea? Is this something to do with the Flash wrapper?

===============

Updated: Apologies. This was my error.

I had a placeholder inserted in the ad template for this position prior to the addition of the "Advertising" feature in the Admin CP. When I updated to use the vBulletin Advertising locations, the older placeholder (which was not centered) got left behind in the original template. Removing the redundant placeholder fixed the problem.

Interestingly, when using regular image banners, this was not a problem. It was only when I tried to use the Flash wrapper that the olde redundant placeholder took precedence over the newer ACP Advertising positions.

irrimiri 02-21-2011 11:34 AM

I must be a dummy, but I don't often work in the admin.
Is there anyone who can simply point me into the right direction?
I can't see any banners on the online forum. Neither the banners that were installed with this mod.

All seems to work fine inside of the admin. But apparantly there is something I miss that I don't see in the installation instructions.
I cant' get the banners to show up.

Next to that I see one of the images you provide with the mod. But I can't find this page and have the feeling it's essential. Where do I look in the templates for this page? I am kinda lost here. *^^* I can't find the template.
https://vborg.vbsupport.ru/attachmen...4&d=1290115479

Kind Regards,

M.

oddmud 02-21-2011 02:34 PM

It says right in the top of the picture "ad_navbar_below" so, use your "search in templates" option in the AdminCP, and search for that. Enter in the information, and there ya go.

boodog 02-22-2011 11:24 AM

Working great, thank you. Can you tell us how to edit the email sent in the banner event notifications?

gpigate 02-22-2011 07:38 PM

can someone point me in the right direction? we just upgraded from 3.6 vb to 4.x vb and now I can not get the ads to work. I am sure it is because the code is now missing from the template, but when I add it back in they still do not show up.

do I need to upgrade my rbs to the latest version? if I do this, will I lose the banners I currently have in there?

...update I went ahead and upgraded to 2.3.1 and still can not get it to turn on. I have tried using the ad manager in vb, i have edited the ad_navbar_below template etc. nothing is working

Thanks in advance

gpigate 02-22-2011 08:43 PM

got it fixed... thanks

cruiserheads 02-23-2011 04:23 PM

Quote:

Originally Posted by y2ksw (Post 2163125)
If you use common templates to all pages, there you go. Such as ad_below_navbar. In all other cases, add a placeholder to the specific template at your wish.

could you please help me a litter bit more on this :( What i sould acctualy need to do :(

Sorry

munkeyboi 02-23-2011 09:04 PM

Great mod.
Working fine on 4.1.1 with a few tweaks.

Would suggest one thing.

A preview mode/button please :)

Thanks for the mod :D

nhawk 02-24-2011 07:43 PM

OK, I'm stumped. One of the flash banners I run is directly below the Notifications dropdown for PMs.

In order to allow the dropdown to go over the flash banner I modified the code and added wmode="transparent" as shown below...

Code:

$embed = '<embed src="' . $bburl . '/bas_wrapper.swf" FlashVars="banner=' . $image . '&jlink=' . $url . iif($rs['width'], '&bwidth=' . $rs['width']) . iif($rs['height'], '&bheight=' . $rs['height']) . '" wmode="transparent" loop="false" pluginspage="http://www.macromedia.com/go/get/flashplayer" type="application/x-shockwave-flash" ' . iif($rs['width'], ' width="' . $rs['width'] . '"') . iif($rs['height'], ' height="' . $rs['height'] . '"') . '></embed>';
That works very well with one problem. When I click on the flash banner to be taken to the link for it, many times I get 2 windows that open. One with the proper link and one with the banner by itself.

Any ideas how to fix this?

djbaxter 02-24-2011 09:23 PM

Quote:

Originally Posted by nhawk (Post 2166462)
OK, I'm stumped. One of the flash banners I run is directly below the Notifications dropdown for PMs.

In order to allow the dropdown to go over the flash banner I modified the code and added wmode="transparent" as shown below...

Code:

$embed = '<embed src="' . $bburl . '/bas_wrapper.swf" FlashVars="banner=' . $image . '&jlink=' . $url . iif($rs['width'], '&bwidth=' . $rs['width']) . iif($rs['height'], '&bheight=' . $rs['height']) . '" wmode="transparent" loop="false" pluginspage="http://www.macromedia.com/go/get/flashplayer" type="application/x-shockwave-flash" ' . iif($rs['width'], ' width="' . $rs['width'] . '"') . iif($rs['height'], ' height="' . $rs['height'] . '"') . '></embed>';
That works very well with one problem. When I click on the flash banner to be taken to the link for it, many times I get 2 windows that open. One with the proper link and one with the banner by itself.

Any ideas how to fix this?

I just finally got flash banners working on my forum but I was not able to use the embed ot object code. The only way it worked for me was to put the target link and the link to the flash banner in the two text fields:

Quote:

URL
If you are using an Image banner, please insert here the destination URL.

Image / Flash
If you define here a picture, it is shown together with the Name as a tooltip, and the URL as destination. For Flash banners, please insert here the swf file.
and then set all three check boxes below that to "Yes":

Quote:

Flash Banner = Yes
Please enable this option, if this banner is a flash (SWF) banner and you desire to use the inbuilt banner wrapper. Together with the wrapper you may also enable click tracking and other related features.

Flash Banner: object Tag = Yes
Please enable this option, if this banner is a flash (SWF) banner and you wish to use the object tag. It may be used alone or together with the embed tag. Please note that some browsers may require this tag in order to show a flash banner.

Flash Banner: embed Tag = Yes
Please enable this option, if this banner is a flash (SWF) banner and you wish to use the embed tag. It may be used alone or together with the object tag. Please note that some browsers may require this tag in order to show a flash banner.

Apolo. 02-24-2011 09:34 PM

Why don't you try to insert your Flash banner this way:

HTML Code:

<code>
<object height="60" width="468" type="application/x-shockwave-flash" data="path/to/banner.swf?clickTAG=http://urlgoes.here/"/>
<param name="WMode" value="transparent"/>
<param name="quality" value="high"/>
<param name="menu" value="false"/>
<param name="allowFullScreen" value="true"/>
<param name=play value=true>
<param name=loop value=true>
<param name="movie" value="path/to/banner.swf?clickTAG=http://urlgoes.here/"/>
<p>Alternative text goes here</p>
</object>
</code>


nhawk 02-25-2011 10:49 AM

Quote:

Originally Posted by djbaxter (Post 2166491)
I just finally got flash banners working on my forum but I was not able to use the embed ot object code. The only way it worked for me was to put the target link and the link to the flash banner in the two text fields:



and then set all three check boxes below that to "Yes":

I haven't had a problem displaying flash banners. That has always worked.

The problem comes when you have a banner in such a position that a menu needs to drop down over them. My modification of the code allows that. But, now when the banner is clicked sometimes two windows open. One with the actual proper link, another with the banner itself.

Quote:

Originally Posted by Apolo. (Post 2166498)
Why don't you try to insert your Flash banner this way:

HTML Code:

<code>
<object height="60" width="468" type="application/x-shockwave-flash" data="path/to/banner.swf?clickTAG=http://urlgoes.here/"/>
<param name="WMode" value="transparent"/>
<param name="quality" value="high"/>
<param name="menu" value="false"/>
<param name="allowFullScreen" value="true"/>
<param name=play value=true>
<param name=loop value=true>
<param name="movie" value="path/to/banner.swf?clickTAG=http://urlgoes.here/"/>
<p>Alternative text goes here</p>
</object>
</code>


The banner supplied by the client is not clicktag enabled.

Apolo. 02-25-2011 10:06 PM

Quote:

Originally Posted by nhawk (Post 2166671)
The banner supplied by the client is not clicktag enabled.

Then simply ignore the clickTAG part and have your client insert the destination link. Either way, the code I provided was just a suggestion.

univyang 02-27-2011 01:16 AM

I had installed Rotating Banner System. This system is working on Header 1, and Below Navbar, but not Above Content 1. I do not know why. Can anyone tell me? Thanks.

nhawk 02-28-2011 01:04 PM

Quote:

Originally Posted by univyang (Post 2167397)
I had installed Rotating Banner System. This system is working on Header 1, and Below Navbar, but not Above Content 1. I do not know why. Can anyone tell me? Thanks.

Do you have 3 banners defined?

If you only have 2 banners and they are already displayed in Header 1 and Below Navbar, the Above Content has nothing to display.

nhawk 02-28-2011 02:14 PM

1 Attachment(s)
For those having the same problem I was having with the flash banner itself loading in one window and the link for the banner in another, the attached swf fixes that problem.

In the original swf supplied with the Banner System, there were two items, one with an onClipEvent (mouseUp) and one with an on (release) event which are in effect the same thing, and this was causing two windows to open.

This swf eliminates the onClipEvent (mouseUp) for the banner container and leaves the on (release) for the button. That way click tracking continues to work.

Changes made to flash source:

REMOVED:
Code:

onClipEvent (mouseUp)
{
    getURL(_root.banner, "_blank");
}

LEFT INTACT:
Code:

on (release)
{
    getURL(_root.jlink, "_blank");
}


univyang 02-28-2011 06:50 PM

Quote:

Originally Posted by nhawk (Post 2167855)
Do you have 3 banners defined?

If you only have 2 banners and they are already displayed in Header 1 and Below Navbar, the Above Content has nothing to display.

Thanks. I have 8 banners defined. All of them are displayed in Header 1. Now How can I solve my problem?

nhawk 02-28-2011 08:23 PM

Quote:

Originally Posted by univyang (Post 2167967)
Thanks. I have 8 banners defined. All of them are displayed in Header 1. Now How can I solve my problem?

I'm sorry, I wasn't thinking and didn't realize you meant in the archive.

I just checked, and I have the same problem.

univyang 02-28-2011 11:08 PM

Quote:

Originally Posted by nhawk (Post 2167996)
I'm sorry, I wasn't thinking and didn't realize you meant in the archive.

I just checked, and I have the same problem.

How can we solve this problem? Thanks.

valdet 03-03-2011 05:21 PM

It's been a long time since I used this mod and with new changes and features I cannot get this to work on my vB 3.6.7 version.

I have tried every imaginable thing and the templates are returning only the raw code of placeholder name.

Here are the screenshots of my settings:

Banner Settings:
https://vborg.vbsupport.ru/external/2011/03/46.jpg

General settings:
https://vborg.vbsupport.ru/external/2011/03/47.jpg

and Template code on my navbar template
https://vborg.vbsupport.ru/external/2011/03/48.jpg

I have vBSEO and I used custom placeholder name to avoid HTML cleanup issue.

At beginning nothing was even showing up. Once I changed hook locations for plugin Banner Insertion from global_complete to parse_templates, only the raw placeholder code is shown and not the actual banner as in:
Code:

#reklama:0#
#reklama:1#

Can someone advise how to get around this problem and make it work with 3.6.7 version?

I am using image banner and need to have click tracking feature enabled.

Many thanks for your time.


All times are GMT. The time now is 02:36 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.03363 seconds
  • Memory Usage 1,868KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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