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)

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.


All times are GMT. The time now is 11:03 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.03321 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)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
  • (6)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