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 05-24-2009 07:07 AM

Quote:

Originally Posted by 1adam12 (Post 1815761)
Is there a bit of code that could be part of the swf that could be used to tell that the click has happened to RBS?

You may include a call to http://www.domain.tld/.../rbs_banner.php?id=N to your SWF in order to notify a click, where N is the numerical ID of the banner. Of course, this requires to recompile the SWF. After clicking this link, it will redirect to the URL specified in Manage Banners.

It actually sounds like a good solution :)

djbaxter 05-24-2009 02:05 PM

Database error after upgrade when selecting either Horizontal Banner List or Vertical Banner List in Admin CP:

Code:

SELECT id, name, enabled, impressions, clicks, m_expired
    FROM rbs_banners
    WHERE vertical=1
    ORDER BY id;

MySQL Error  : Unknown column 'vertical' in 'where clause'


y2ksw 05-24-2009 03:02 PM

Quote:

Originally Posted by djbaxter (Post 1816270)
Database error after upgrade when selecting either Horizontal Banner List or Vertical Banner List in Admin CP:

Code:

SELECT id, name, enabled, impressions, clicks, m_expired
    FROM rbs_banners
    WHERE vertical=1
    ORDER BY id;
 
MySQL Error  : Unknown column 'vertical' in 'where clause'


Thanks.

Fixed in 2.2.1

1adam12 05-26-2009 02:47 PM

Quote:

Originally Posted by y2ksw (Post 1816148)
You may include a call to http://www.domain.tld/.../rbs_banner.php?id=N to your SWF in order to notify a click, where N is the numerical ID of the banner. Of course, this requires to recompile the SWF. After clicking this link, it will redirect to the URL specified in Manage Banners.

It actually sounds like a good solution :)

Nice! That's great. I'll have the flash monkey person try that and report back.

1adam12 05-27-2009 01:23 PM

Quote:

Originally Posted by y2ksw (Post 1816148)
You may include a call to http://www.domain.tld/.../rbs_banner.php?id=N to your SWF in order to notify a click, where N is the numerical ID of the banner. Of course, this requires to recompile the SWF. After clicking this link, it will redirect to the URL specified in Manage Banners.

It actually sounds like a good solution :)

It works! You should probably add this to your documentation. Thanks for the quick help!

all-in 05-27-2009 02:35 PM

How can you find out how many banners can be used at the present time? Also how can you increase that amount? I found this, but not sure if it means anything @vbbanners_vertical@<p> . Thanks

djbaxter 05-27-2009 02:43 PM

Quote:

Originally Posted by all-in (Post 1818138)
How can you find out how many banners can be used at the present time? Also how can you increase that amount? I found this, but not sure if it means anything @vbbanners_vertical@<p> . Thanks

You could read the thread... :)

all-in 05-27-2009 05:21 PM

Really...you dont say....lol. I did read the thread, but must have overlooked that part. Thanks for the help.

y2ksw 05-27-2009 05:56 PM

Quote:

Originally Posted by 1adam12 (Post 1818095)
It works! You should probably add this to your documentation. Thanks for the quick help!

You are welcome :)

y2ksw 05-27-2009 06:03 PM

Quote:

Originally Posted by all-in (Post 1818138)
How can you find out how many banners can be used at the present time? Also how can you increase that amount? I found this, but not sure if it means anything @vbbanners_vertical@<p> . Thanks

With version 2.1.x the limit is bound to 2 different locations, with 2.2.x the limit is bound to 10 different locations, and the number of visible items in your database.

Thus you may have as many banners on a single page as you wish, as long as no banner has to be loaded more than once, because the banner system will show each entry not more than once on a single page.

In other words, if you wish to show 100 banners at each page, you need at least 100 entries capable to show up, and of course, 100 placeholders in your template.


All times are GMT. The time now is 04:21 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.01919 seconds
  • Memory Usage 1,746KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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