vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Adsense as second post. 2 Sizes - Big for guests, small for members (https://vborg.vbsupport.ru/showthread.php?t=136743)

insolentmuse 02-11-2007 06:44 AM

How should this be modified for Legacy? I'm using a skin that doesn't have the new postbit option :(

StarBuG 02-11-2007 10:37 AM

@roger.kore: I have not installed the hack you mentioned but from the quick look I see no reason why it should not work.

@insolentmuse: I have published the postbit_legacy Version here: https://vborg.vbsupport.ru/showthread.php?t=139093

StarBuG

jeffcoll 02-11-2007 03:06 PM

Exactly what I wanted and so easy to install. It took just a couple of minutes.

I like how it encourages visitors to join and avoid the advertising.

insolentmuse 02-11-2007 04:13 PM

Quote:

Originally Posted by StarBuG (Post 1179801)
@roger.kore: I have not installed the hack you mentioned but from the quick look I see no reason why it should not work.

@insolentmuse: I have published the postbit_legacy Version here: https://vborg.vbsupport.ru/showthread.php?t=139093

StarBuG


Thank you, I guess I need to learn how to search better. :eek:

Alien 02-11-2007 11:49 PM

How would I adjust this, so that even registered members (like guests) will see an ad on the second post of EVERY page. I'd still like registered members to only see the thin display as you have it.

We have a 'premium user' class that we'll show zero ads for.

Thank you so much!

StarBuG 02-12-2007 05:46 AM

Quote:

Originally Posted by insolentmuse (Post 1179982)
Thank you, I guess I need to learn how to search better. :eek:

No.
I published it because you were the first to ask ;)

insolentmuse 02-12-2007 06:46 AM

Quote:

Originally Posted by StarBuG (Post 1180416)
No.
I published it because you were the first to ask ;)

Oh good, then I'm not completely incompetent.

It works great, btw :) Thanks!

Alien 02-13-2007 09:33 AM

No matter what I do with all of your suggestions, I can't exclude a usergroup no matter which method I use...

Can anyone confirm a method that works perfectly?

StarBuG 02-13-2007 07:42 PM

<if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $GLOBALS['qrfirstpostid'] AND ($show[member]) AND $bbuserinfo['usergroupid'] != 'X'">

This means... if user is a registered member and NOT a member of usergroup X then show the advertising.

StarBuG

Alien 02-13-2007 11:08 PM

That code would seem not to work with any users who don't have the usergroup as top level.

How would I get this:

<if condition="is_member_of($bbuserinfo,14)">

...to work inside of YOUR conditional? :) Usergroup 14 above is my "Premium" group, but I don't put members in their as their MAIN group.

Wrapping the whole conditional I just stated around the "ads for members" section of your code will NOT work. There is a conflict somehow contained in your if if I put my if before it (which has worked before when I simply put the google ads at the top of the showthread before I tried your mod).. Any suggestions? :)


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