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)

hohleweg 02-16-2010 05:58 PM

hi
i have e new style
what must i do to see the rbs in the new style
in my standard style i see the rbs
thanks
jo

y2ksw 02-16-2010 06:48 PM

Quote:

Originally Posted by hohleweg (Post 1983935)
hi
i have e new style
what must i do to see the rbs in the new style
in my standard style i see the rbs
thanks
jo

You will have to change the same templates you have changed in the other style(s). If you search for vbbanners in your styles, you'll find out quickly which they are :)

meissenation 02-17-2010 01:10 PM

Throws an error code in VB 4.0.2:
Fatal error: Call to undefined function rbs_url_sanity() in \includes\functions.php(6783) : eval()'d code on line 108

Line 6783 is the call to the global_complete template hook.

Golzarion 02-17-2010 01:30 PM

Nice ! I will test it .

djbaxter 02-17-2010 03:17 PM

This needs to be updated for vBulletin 4.02. While it will still work in the forum, it breaks the CMS.

See http://www.vbulletin.com/forum/showt...o-4.02-upgrade

djbaxter 02-17-2010 03:19 PM

Quote:

Originally Posted by meissenation (Post 1984583)
Throws an error code in VB 4.0.2:
Fatal error: Call to undefined function rbs_url_sanity() in \includes\functions.php(6783) : eval()'d code on line 108

Line 6783 is the call to the global_complete template hook.

Yes. See my post above. In my case, I didn't see the error message initially because it was being suppressed by vBSEO - it appeared when I disabled vBSEO temporarily in my search for the blank CMS problem.

hohleweg 02-17-2010 06:52 PM

Hi
Thanks
Now i found it!
Jo

Skyrider 02-17-2010 07:06 PM

I just installed it :s
Quote:

$f = intval($vbulletin->GPC['forumid']); $ids = array(); $qids = array(); $SQL = "SELECT * FROM " . TABLE_PREFIX . "rbs_banners WHERE enabled=1 AND startdate<=" . TIMENOW . " AND enddate>=" . TIMENOW . " AND IF(forumhome, $f=0, IF(forumids='', 1, FIND_IN_SET('$f', forumids))) AND IF(maximpressions>0, impressions0 AND clicksdb->query_read($SQL); while($rs = $vbulletin->db->fetch_array($rss)) { // Handle primary and secondary usergroups if($rs['usergroups']) { // Field defined $usergroups = explode(',', $rs['usergroups']); if(!is_member_of($vbulletin->userinfo, $usergroups)) { // Not member of these groups, skip continue; } } $ids["$rs[position]"][] = $rs; } $vbulletin->db->free_result($rss); // Set target to new page if not local to forum $bburl = $vbulletin->options['bburl']; if(!$rbs_target = $vbulletin->options['rbs_target']) { $rbs_target = '_blank'; } // For each banner position $rbs_n_placeholder = $vbulletin->options['rbs_n_placeholder']; $phs = array(); foreach($ids AS $key => $idx) { $ph = @sprintf($rbs_n_placeholder, $key); $len = strlen($ph); $phs[] = $ph; // Shuffle (mix) the ads randomly shuffle($idx); // Check for available replacements foreach($idx as $rs) { if(!$npos = strpos(strtolower($output), strtolower($ph))) { break; } // Replace next placeholder $html = ''; $embed = ''; $image = rbs_url_sanity($rs['image']); $name = htmlspecialchars($rs['name']); if($rs['clicktrack']) { $url = $bburl . '/rbs_banner.php?id=' . $rs['id']; } else { $url = rbs_url_sanity($rs['url']); } if($rs['flash']) { if($rs['embed']) { $embed = '

steve71 02-17-2010 11:52 PM

I just did a fresh install then placed <!--@vbbanners:%d@--> in the navbar_below as in the video tutorial but the google test banner is not showing. I copied <!--@vbbanners:%d@--> from the box in rotating banners/options.

??????????

djbaxter 02-18-2010 12:14 AM

Quote:

Originally Posted by steve71 (Post 1985146)
I just did a fresh install then placed <!--@vbbanners:%d@--> in the navbar_below as in the video tutorial but the google test banner is not showing. I copied <!--@vbbanners:%d@--> from the box in rotating banners/options.

??????????

What version of vBulletin?


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