vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

echamberlain 01-12-2007 01:11 AM

Quote:

Originally Posted by RedTyger (Post 1155582)
Just taken a look at search_results_postbit and I agree. I'll add it to the next version. I didn't include any search templates because of Google's TOS, but of course that doesn't apply to everyone so...

Styling is unlikely to ever be done via the AdminCP. it's very unwieldy, especially since there's no way to hook CSS into the forum's existing stylesheet. And more to the point there's so many ways people might want to format, I could never cover them all. The options would be huge! It's likely to be template edits all the way.

Navbar you can already do if you need. Just change the template edit to $GLOBALS[$header_advertisement] (I think it is, it's discussed earlier in the thread for vBCMPS) and add it to the navbar template instead of the header template. But the thought does occur that I could add perhaps two "miscellanous" adcode sections which can be placed anywhere at all in case someone wants a header template and a navbar template, for instance.

Yeah, when I was making the template changes it occured to me that it problably doesn't make sense to put the formatting in the AdminCP.

Some Miscellaneous sections would be nice. I was redoing my Navbar anyway, I just hard coded the phpAdsNew code in the Navbar. We have ads in both the header and the Navbar (http://forum.voxilla.com/).

I'm not using the left and right columns, so I guess I could retask one of those for the Navbar. The reason we started using your mod was to move the ads into the thread and post bit area. We had a wide skyscraper, but we didn't like the wasted space below the ad right column.

I still need to do some tweaking, like sending the ad post position information back to phpAdsNew, so we can track which ad positions work best.

The mod was easy to install and works great.

wildo69 01-12-2007 03:46 AM

sorry if this is a repeat question, but with 17 pages its hard to sort through

here is what i want to do
display header and footer ads to all users
display thread/forum/post ads to all users except premium members

i see i can set users that see ads by user and group, but i only see this at a global option, not per ad type/location, am i missing it? or is it not there

thanks, great mod BTW.. :)

RedTyger 01-12-2007 08:35 AM

It is there, it's why all the ads are templated. Surround the ads with a template conditional.

<if condition="!is_member_of($bbuserinfo, 1,2,3)">
$threadbit_adcode
</if>

Change 123 to the Usergroup IDs of your premium member usergroups.

RedTyger 01-12-2007 08:48 AM

Quote:

Originally Posted by ESADCG (Post 1156199)
I am having an issue.
If I enter a user ID in the "Do NOT display advertisements for UserIDs:"
It turns off ads on the entire forum for everyone.

I can confirm that, it'll be fixed for the next version.

SportsZone 01-12-2007 09:54 AM

Has anyone got Google Adsense Ads to work yet? If so, how?

Thanks :)

SportsZone 01-12-2007 02:12 PM

A possible bug I found. If you copy and paste the Google Adsense code into the static header/footer box and save it, the ad WILL show up. However, if you put the same code into the rotation banner box with another banners code, the Google Adsense ads don't show correctly. The other banner shows fine.

wildo69 01-12-2007 03:37 PM

Quote:

Originally Posted by SportsZone (Post 1156906)
Has anyone got Google Adsense Ads to work yet? If so, how?

Thanks :)

i am using them fine in the static code field

FWIW i am also using PHPAdsNew injection code in the static field as well and its working great too

wildo69 01-12-2007 03:39 PM

Quote:

Originally Posted by RedTyger (Post 1156863)
It is there, it's why all the ads are templated. Surround the ads with a template conditional.

<if condition="!is_member_of($bbuserinfo, 1,2,3)">
$threadbit_adcode
</if>

Change 123 to the Usergroup IDs of your premium member usergroups.

great,
so if i make that change in the "postbit_advertisement" using what you posted above, that will accomplish the goal.

i had a feeling it was something like that, thanks for the great support, one of the fastest i have received here, and polite.. thanks

Deska 01-12-2007 03:45 PM

Thank you for this hack.
My client love it :D

project-Buckfas 01-12-2007 05:05 PM

I wonder how I done without this now.... Excellent mod


All times are GMT. The time now is 04:22 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.02865 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
  • (4)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