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)

Allan 12-31-2009 10:00 PM

Google Adsense after first post (or other advertisements)
 
1 Attachment(s)
With this mod, you can add an advertisement as Google Adsence or other advertisements.
  • In the "postbit" or "postbit_legacy", add to the end:
Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="attachments">
        <div style="width: 100%; text-align: center">
      Your text here
      </div>
</div>
</vb:if>

  • 2nd method, in the "ad_showthread_firstpost" template, add:
Code:

  <div class="attachments">
        <div style="width: 100%; text-align: center">
Your text here      
        </div>
  </div>

PS: I use class "attachments", it's just for the fun ^^

Cableguy69 01-02-2010 01:14 AM

Nice mod thanks.

RDX1 01-02-2010 01:14 AM

Nice work, was hoping it was like the 3.8 mod. ;)

https://vborg.vbsupport.ru/showthread.php?t=194817

Alecsmith 01-02-2010 05:59 AM

Tagged for future :)

fayax 01-02-2010 06:05 AM

Quote:

Originally Posted by RDX1 (Post 1944523)
Nice work, was hoping it was like the 3.8 mod. ;)

https://vborg.vbsupport.ru/showthread.php?t=194817


Yup I could like that too?

will it be made like that eventually?

ninjashoes 01-03-2010 07:25 PM

How would I exclude this from certain forums and also show to guests only?

fayax 01-04-2010 05:01 AM

hmm.. I mustve done something wrong. Couldnt get it to work. Not voted anyway.

Krysalid 01-05-2010 10:12 AM

Merci Allan .. ;)

KevinGupta 01-05-2010 07:25 PM

ok 2 questions...

1) In "Your Text Here" field do you put in the HTML version for the advertisement? If Yes, how do you do it? (Sorry, I am not good at coding at all)

2) How can I exclude it from certain usergroups? I need this, importantly

:) Waiting for your reply now :D

haluk 01-05-2010 07:54 PM

How Can I add an ad after second or third posts ?

Is there a way ?


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