vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adsense after first post (https://vborg.vbsupport.ru/showthread.php?t=96249)

dre 11-20-2005 09:42 AM

is this availablefor 3.5.1?

MissKalunji 11-20-2005 10:27 AM

Quote:

Originally Posted by dre
is this availablefor 3.5.1?


this is for 3.5 see in wich thread it is?

theodonnells 11-20-2005 01:45 PM

Quote:

Originally Posted by amykhar
What's more fun and challenging - because of ajax issues, is adsense in the last post. ;) That really gets the ad right where the reader's eyes are.

http://www.eaforums.com/forums/364919-post1.html

Find:
Code:

<!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->

Add above:
Code:

                <if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">


<span id="google" style="float:left;margin:2px;" width="340" height="290" align="center" valign="top">
put banner code here
</span></if>


I tried this code but it puts an ad in the first post and a blank space in the last post ...Any ideas..

romow 11-21-2005 12:47 AM

no, when a thread gets really big with lots of replies, and there are lots of users browing a forum, that makes a difference.

Quote:

Originally Posted by pelican
actually it is just comparing of variables, the check whether to display or not is negligible. it is when the banner is display that will takes time because you are retrieving info from a 3rd party.


Mencius 11-26-2005 08:01 AM

Can somebody post a screenshot of this haack???

ConqSoft 12-01-2005 10:04 PM

Any idea how to make it show after the 1st post of EVERY page instead of just the first one?

Thanks

MissKalunji 12-01-2005 11:51 PM

Quote:

Originally Posted by ConqSoft
Any idea how to make it show after the 1st post of EVERY page instead of just the first one?

Thanks

thats what it does

ConqSoft 12-01-2005 11:57 PM

Oops. Actually, I thought I was replying to another hack that didn't. Now I see that this one does. ;)

romow 12-03-2005 06:19 AM

As this thread gets bigger with many updates, it's kinda difficult to find out what the most up-to-date and error-free version for this mod is.
Can someone post the clean version?
Is the one posted in the original thread most up-to-date?

MissKalunji 12-03-2005 11:26 AM

Quote:

Originally Posted by romow
As this thread gets bigger with many updates, it's kinda difficult to find out what the most up-to-date and error-free version for this mod is.
Can someone post the clean version?
Is the one posted in the original thread most up-to-date?

here u go
Quote:

<if condition="!$GLOBALS['FIRSTPOSTID']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center">
---------- google advertisement -----------------
</td> </tr>
</table> </div>
$spacer_close
</if>


All times are GMT. The time now is 11:17 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.01382 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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