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)

x YNWA x 03-24-2011 11:01 PM

How do I get something like this so it is after the LAST post and not the first? The thing is, I already have an advert just below the footer, so you can see that advert and the one below the first post if the first post is not too long. So I would prefer it to be just above the quick reply bar but cannot seem to be able to do it.

JHUMON 09-18-2011 09:22 AM

dosent work on vb 4.1.6

Furcal15 10-01-2011 01:42 AM

4.1.6 users, all you need to do is enter this code at the end of postbit/postbit legacy. It's only one code, not two.

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>


matt94gt 10-01-2011 08:11 PM

Quote:

Originally Posted by Furcal15 (Post 2251809)
4.1.6 users, all you need to do is enter this code at the end of postbit/postbit legacy. It's only one code, not two.

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>



That is all I have to do to have this mod work on 4.1.6? I have to do it per each theme? Where do I put the adsense code?

Thanks

matt94gt 12-11-2011 03:28 AM

No one?

Scyther 12-11-2011 10:44 AM

nice one...marked installed...

drdoc 01-25-2012 08:04 AM

I am trying to place space for ad after 1st post so tried following code
In the "postbit" or "postbit_legacy", add to the end:

<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>

When i try to save am getting the below error..why?

You may not use the function parsePhrase()!!!
With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
and() or() xor() in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of() construct_phrase() iif()

drdoc 01-25-2012 08:06 AM

and when am trying with 2nd method as said by developer am not able to see any changes

nd method, in the "ad_showthread_firstpost" template, add:

Code:

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

My verison is 4.1.7 but am trying this for testing over VB DEMO 4.1.8

PALAZAN 02-02-2012 02:31 AM

Ok this mite be a silly qestion but any way to not show this to a special group on my forums , say i want everyone to see the ads but admins is there a way to do this?

gnrx 04-06-2012 01:14 PM

Quote:

Originally Posted by Diablotic (Post 2000327)
How to add adsense after last post in the thread?

Figured it out: http://www.vbulletin.com/forum/showthread.php?t=157022

I have the same question, its possible configured for appears like a post, or if its not possible, its possible configured with space after banner? I add a code < br > but not works.

Thanks and regards!


All times are GMT. The time now is 01:44 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.01115 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
  • (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