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)

cbehan 03-06-2011 04:03 AM

"Manage Ads" has managed to insert the code into the correct templates.

ad_global_below_navbar

<div id="ad_global_below_navbar"><vb:if condition="!is_member_of($bbuserinfo, 28)"><div style="text-align:center"><!--@vbbanners:0@--></div><vb:if condition="$adsshown[] = 1"></vb:if></vb:if></div>

It sounds to me like there's an issue with the product....or more likely my understanding/setup.

boodog 03-06-2011 12:11 PM

Does anyone have any info on the email that this sends to customers when a banner expires? I assume that it does send one, but I don't see where it can be edited. Any info?

y2ksw 03-07-2011 07:37 AM

Quote:

Originally Posted by valdet (Post 2169182)
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:


General settings:


and Template code on my navbar template


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.

You can't change the hook location. global_complete is the place where all happens, thus changing the hook will not work.

y2ksw 03-07-2011 07:46 AM

Quote:

Originally Posted by cbehan (Post 2170040)
"Manage Ads" has managed to insert the code into the correct templates.

ad_global_below_navbar

<div id="ad_global_below_navbar"><vb:if condition="!is_member_of($bbuserinfo, 28)"><div style="text-align:center"><!--@vbbanners:0@--></div><vb:if condition="$adsshown[] = 1"></vb:if></vb:if></div>


It sounds to me like there's an issue with the product....or more likely my understanding/setup.

You can choose usergroups from the banner settings. Cleanup:

<div id="ad_global_below_navbar"><div style="text-align:center"><!--@vbbanners:0@--></div></div>

A better way is to put the banner into the template ad_navbar_below and cleanup even more, because ad_global_below_navbar is shown only at certain additionel conditions. The combination of both makes it difficult to understand what makes the banner show.

<div align="center"><!--@vbbanners:0@--></div>

y2ksw 03-07-2011 07:50 AM

Quote:

Originally Posted by boodog (Post 2170125)
Does anyone have any info on the email that this sends to customers when a banner expires? I assume that it does send one, but I don't see where it can be edited. Any info?

You may change the email text in your phrases/translations. Please search for phrase variable rbs_expired_banner.

cbehan 03-08-2011 02:47 AM

Quote:

Originally Posted by y2ksw (Post 2170491)
You can choose usergroups from the banner settings. Cleanup:

<div id="ad_global_below_navbar"><div style="text-align:center"><!--@vbbanners:0@--></div></div>

A better way is to put the banner into the template ad_navbar_below and cleanup even more, because ad_global_below_navbar is shown only at certain additionel conditions. The combination of both makes it difficult to understand what makes the banner show.

<div align="center"><!--@vbbanners:0@--></div>

I tried this too and I still get nothing on any page of my site.

I should mention I'm running the full suite if that makes a difference.

Also, the reason I wanted to use the built-in ad management for usergroup management is because I have 20 usergroups on my site, one of which is for subscribers who pay to not view ads....and via the built-in ad management the "exclusion" can be controlled on a location by location basis, not on each banner like in your product.

To manage it on your product, I need to put a list of 19 usergroup numbers in each and every banner I place on the site.

It's not that I can't do that...it just seems ineffecient from a management as well as coding standpoint.

y2ksw 03-08-2011 08:15 AM

Quote:

Originally Posted by cbehan (Post 2170789)
I tried this too and I still get nothing on any page of my site.

I should mention I'm running the full suite if that makes a difference.

Also, the reason I wanted to use the built-in ad management for usergroup management is because I have 20 usergroups on my site, one of which is for subscribers who pay to not view ads....and via the built-in ad management the "exclusion" can be controlled on a location by location basis, not on each banner like in your product.

To manage it on your product, I need to put a list of 19 usergroup numbers in each and every banner I place on the site.

It's not that I can't do that...it just seems ineffecient from a management as well as coding standpoint.

Please try to use a different template just to see if it generally works. It makes no difference to the vbulletin version or suite, we use it on all versions from 3.6.5 onwards and for sure on all 3.8.x and 4.x.x versions.

It may be an additional feature about user group exclusions, though. Not much code to add and a little change in the queries :)

cbehan 03-08-2011 01:39 PM

Quote:

Originally Posted by y2ksw (Post 2170837)
Please try to use a different template just to see if it generally works. It makes no difference to the vbulletin version or suite, we use it on all versions from 3.6.5 onwards and for sure on all 3.8.x and 4.x.x versions.

It may be an additional feature about user group exclusions, though. Not much code to add and a little change in the queries :)

First off, thank you very much for all the help.

Here's what I've tried.
I moved to the default template with no customizations and placed <div align="center"><!--@vbbanners:0@--></div> directly into ad_navbar_below, but still got nothing.

I think reinstalled the product overwriting the previous install, and I'm still getting nothing.

I'm at a loss.

y2ksw 03-08-2011 03:22 PM

Quote:

Originally Posted by cbehan (Post 2170923)
First off, thank you very much for all the help.

Here's what I've tried.
I moved to the default template with no customizations and placed <div align="center"><!--@vbbanners:0@--></div> directly into ad_navbar_below, but still got nothing.

I think reinstalled the product overwriting the previous install, and I'm still getting nothing.

I'm at a loss.

In the default template, the rendered page source shows still one or more <!--@vbbanners:0@-->, or is it all gone?

cbehan 03-08-2011 04:59 PM

Quote:

Originally Posted by y2ksw (Post 2170956)
In the default template, the rendered page source shows still one or more <!--@vbbanners:0@-->, or is it all gone?

In both templates, the code is inserted into the template, but on the rendered source it's nowhere to be found.


All times are GMT. The time now is 08:24 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.02518 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
  • (1)bbcode_code_printable
  • (8)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