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)
-   -   Show Thread Enhancements - Google Adsense after first post (or other advertisements) (https://vborg.vbsupport.ru/showthread.php?t=231857)

Sgroove 03-19-2010 06:06 PM

Hi, nice mod.
I was wondering if this mod will work if I want to insert a Search Engine between the first and second post.

sadiq6210 03-21-2010 03:10 AM

Thanks

ZuFett 03-21-2010 01:40 PM

Thanks, thats great!

But one Question:
How i show it only my Guests?

fayax 03-25-2010 07:36 AM

Quote:

Originally Posted by meonet (Post 2005514)
standard vbulletin 4.0.2 already have this function so i can think that this modification it's not more needed.

Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Ad Location Templates -> ad_showthread_firstpost



Thanks. Worked like a charm in 4.01 also.

thinkfast 04-01-2010 07:02 PM

hello sir i just want to ask one question

how to make the ads not show to super moderator like at advertisement option

Display this ad if...
User does not belong to usergroup Super Moderator

wacnstac 04-01-2010 07:29 PM

What happens when you use a replacement variable to place the advertisement and a user uses quick reply (AJAX) to make the post that forces this ad unit? I have had problems with this in the past.

bugzy 04-02-2010 08:05 PM

Quote:

Originally Posted by thinkfast (Post 2014236)
hello sir i just want to ask one question

how to make the ads not show to super moderator like at advertisement option

Display this ad if...
User does not belong to usergroup Super Moderator

I'm surprised no mod has come out similar to the one for 3.8 that allows full control of ads

thinkfast 04-12-2010 11:09 PM

Quote:

Originally Posted by thinkfast (Post 2014236)
hello sir i just want to ask one question

how to make the ads not show to super moderator like at advertisement option

Display this ad if...
User does not belong to usergroup Super Moderator

found some my self

just add this before and after the code

Code:

<vb:if condition="!is_member_of($bbuserinfo, 5)">

code

<vb:if condition="$adsshown[] = 9"></vb:if></vb:if>

cheers ;)

thinkfast 04-12-2010 11:25 PM

Quote:

Originally Posted by ZuFett (Post 2007552)
Thanks, thats great!

But one Question:
How i show it only my Guests?

if you has create ads through advertisement at admin cp then you should see the code

example. if you has create ads with show only for guest at below navbar then you will find <vb:if code at

Style Manager --->>> edit template --->>> Ad Location Templates --->>> ad_global_below_navbar

and take the code and attach before and after the code that you attach at ad_showthread_firstpost
Code:

<vb:if condition="!is_member_of($bbuserinfo, 5)"> 

your ads code


<vb:if condition="$adsshown[] = 9"></vb:if></vb:if>

it's work for me

i hope this is helpful, sorry for my bad English :p

marshal_ramdev 04-21-2010 04:38 AM

thank you .......


All times are GMT. The time now is 02:41 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.01292 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)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