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)

Pessimist 01-24-2012 01:17 PM

y2ksw

2 small fixes

HTML not valid (& -> &):
XML, line 351:
PHP Code:

            $url $bburl '/rbs_banner.php?id=' $rs['id'] . '&userid=' $rbs_userid

replace with&
PHP Code:

            $url $bburl '/rbs_banner.php?id=' $rs['id'] . '&userid=' $rbs_userid


Charset missed:
rbs_stats.php, add after line 90:
PHP Code:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 

Or better use as variable instead UTF-8 (value should be as language charset). Also, if language Russian and Charset set to windows-1251:
PHP Code:

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> 

I hope you understand what I mean :)

y2ksw 01-24-2012 03:16 PM

Quote:

Originally Posted by Pessimist (Post 2291729)
y2ksw

2 small fixes

HTML not valid (& -> &amp;):
XML, line 351:
PHP Code:

            $url $bburl '/rbs_banner.php?id=' $rs['id'] . '&userid=' $rbs_userid

replace with&
PHP Code:

            $url $bburl '/rbs_banner.php?id=' $rs['id'] . '&amp;userid=' $rbs_userid

Charset missed:
rbs_stats.php, add after line 90:
PHP Code:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 

Or better use as variable instead UTF-8 (value should be as language charset). Also, if language Russian and Charset set to windows-1251:
PHP Code:

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> 

I hope you understand what I mean :)

I've given up on all those fixes.

In some countries or browser settings the page validation fails. Also, the & and &amp; problem is much more complex than it looks. & works on all server configurations, while &amp; doesn't. I prefer to have it working all times.

Unless all standards are respected by all software developers, software bugs will persist. Hoping in such an event is utopic, but I still believe that it will happen one day ;)

mmalik4 01-25-2012 01:31 AM

Hello,
newbie here...
I am trying to work the rotating banner system. Installation is a success but having a hard time to make it work.
I have made 2 test flash banner namely
http://www.traderc.com/advertise.swf &
http://www.traderc.com/hobbyking.swf

My question here, what is the next step how should i make the banner work.. looking for next steps. Again, newbee..step by step would be great.Thanks

y2ksw 01-25-2012 09:12 PM

Quote:

Originally Posted by mmalik4 (Post 2292019)
Hello,
newbie here...
I am trying to work the rotating banner system. Installation is a success but having a hard time to make it work.
I have made 2 test flash banner namely
http://www.traderc.com/advertise.swf &
http://www.traderc.com/hobbyking.swf

My question here, what is the next step how should i make the banner work.. looking for next steps. Again, newbee..step by step would be great.Thanks

Enable the flash wrapper, specify in Image/Flash your swf (as above), in URL the landing page and don't forget the sizes and at least one option: embed or object or both :)

Toorak Times 01-29-2012 02:00 PM

I haven't set it up yet, but thank you very much. so many options...

dsantana 01-30-2012 04:19 AM

I just installed VB about a week ago and installed your mod right away... Couldn't get it to go at first because of my lack of VB knowledge but after looking at it for a few hours today and reading the supplied pdf I finally figured it out!!! Whew...

Thanks a ton for this excellent mod!!!

Andyrew 01-31-2012 05:43 PM

Why can I not use half of the ad templates in vb, I have added a banner in two templates but nothing shows up if I use any other remaining ad location templates.

y2ksw 02-01-2012 12:07 AM

Quote:

Originally Posted by Andyrew (Post 2294679)
Why can I not use half of the ad templates in vb, I have added a banner in two templates but nothing shows up if I use any other remaining ad location templates.

Try to add more banners or just duplicate the one you have. On a single page, each banner is shown at most for a single instance.

mmalik4 02-04-2012 10:04 AM

I cant still work it out any step by step instructions



Quote:

Originally Posted by mmalik4 (Post 2292019)
Hello,
newbie here...
I am trying to work the rotating banner system. Installation is a success but having a hard time to make it work.
I have made 2 test flash banner namely
http://www.traderc.com/advertise.swf &
http://www.traderc.com/hobbyking.swf

My question here, what is the next step how should i make the banner work.. looking for next steps. Again, newbee..step by step would be great.Thanks


Videx 02-04-2012 01:19 PM

Quote:

Originally Posted by mmalik4 (Post 2296047)
I cant still work it out any step by step instructions

Consider just using static banners or animated gifs until you can figure out the flash stuff. Once you get those working then you should be halfway there.


All times are GMT. The time now is 12:07 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.02639 seconds
  • Memory Usage 1,763KB
  • 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_php_printable
  • (5)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