vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Adsense Integration as second post - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?t=249052)

StarBuG 10-10-2010 05:58 PM

Header and Graphics are designed for my site, the rest I did myself ;)

XiTCLUB 10-25-2010 07:30 PM

not working in 4.0.7

StarBuG 10-25-2010 08:02 PM

Of course it works, I run it since 4.0.1 unchanged.

Did you view it when logged in? If so you might have missed that it only shows to guests ;)

xbrian88 10-25-2010 08:06 PM

not working in 4.0.8

StarBuG 10-25-2010 08:32 PM

Ohhhh people. Please read my replies before you say it is not working!

IT WORKS.

I run it on all my forums (4.0.8) and never changed it!

It is only viewable for guests.

If you don't want that remove the guest condition!

FReeSTER 10-26-2010 04:37 AM

Quote:

Originally Posted by StarBuG (Post 2108109)
use: <vb:if condition="!is_member_of($bbuserinfo, X,Y,Z)">

where X,Y,Z are the usergroups you don't want to show the ads to.

where do I add this code please?

StarBuG 10-26-2010 04:07 PM

change the first line to:

Code:

<vb:if condition="$post['isfirstshown'] AND !is_member_of($bbuserinfo, X,Y,Z)">

FReeSTER 10-26-2010 06:19 PM

What code I need to show to all usergroups. I did put
<vb:if condition="$post['isfirstshown'] AND $show['member']">

but is not showing up for all user groups as I will like thanks

StarBuG 10-26-2010 06:57 PM

just remove AND $show['member']

FReeSTER 10-26-2010 06:58 PM

Quote:

Originally Posted by StarBuG (Post 2114492)
change the first line to:

Code:

<vb:if condition="$post['isfirstshown'] AND !is_member_of($bbuserinfo, X,Y,Z)">

Thank you so much it worked:)


All times are GMT. The time now is 03:41 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.01080 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)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