Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense after first post Details »»
Adsense after first post
Version: 1.00, by artonex artonex is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-13-2005 Last Update: Never Installs: 236
Template Edits
 
No support by the author.

Hey guys i think many of you will find this very usefull

With the template edit you can display adsense or banner after every 1st post. i have chosen to use my amazon affilite code.

Add this to the bottom of your postbit template.

Demo

PHP Code:
<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">
        <
adsense code here>
</if>
    </
td>
</
tr>
</
table>

</
div>
$spacer_close

</if> 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 10-25-2005, 05:35 PM
banshee banshee is offline
 
Join Date: Feb 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used the code a the very top of every page. Worked for me.
Reply With Quote
  #83  
Old 10-25-2005, 09:45 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by banshee
I used the code a the very top of every page. Worked for me.
It will work....if your using Internet Explorer or something mostly IE compatibly such as Avant Browser or AOL Explorer browser.

If you or any members of your forum use FireFox it causes the browser to hang after using the quick reply.
Reply With Quote
  #84  
Old 10-25-2005, 09:53 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slapyo
i've been going through this thread but can't seem to find code that works. :/ i see a bunch of different versions posted up.

i'm just looking to place 1 ad after the first post.
https://vborg.vbsupport.ru/showpost....9&postcount=78
There are several diffrent versions but mine is the only proper fix to prevent any hangs in FireFox.

My fix will actually show the ads under the first post of EVERY page and not just the first page.
Reply With Quote
  #85  
Old 10-25-2005, 10:41 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xplorer4x4
https://vborg.vbsupport.ru/showpost....9&postcount=78
There are several diffrent versions but mine is the only proper fix to prevent any hangs in FireFox.

My fix will actually show the ads under the first post of EVERY page and not just the first page.
Sweet thanks .... I'd say most use IE but a few here and there use FF.

So just take the code from the top of the page and then replace the IF statement with the one in your post?
Reply With Quote
  #86  
Old 10-25-2005, 11:01 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^Your right IE still leads the market but....

Quote:
As of the end of September, Mozilla's Firefox web browser is getting closer to the 10% margin. As reported on October 1st, 2005, Firefox is now used by 9.2% of internet users across the globe, while Microsoft's Internet Explorer is still leading with an astonishing 78%.
Credit: Wired.com
We have to keep in mind that while MOST use IE FireFox is quickly catching on and we have to take FireFox users into consideration. If you haven;t tried FireFox yet I highly suggest doing so. It is by far the better safer broswer. Plus you have to love the tab system. It can be found at http://www.mozilla.org/products/firefox/

Or I recomend avant, which takes most of the FireFox featuers but is built around IE for the most part making it more compatible then FireFox.
www.avant.com

If you don;t like them, you can always uninstall and go back to IE.

Quote:
So just take the code from the top of the page and then replace the IF statement with the one in your post?
Yep, just replace the <if> statment and your good to go.
Reply With Quote
  #87  
Old 10-25-2005, 11:33 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup yup ... I use both browsers.
Reply With Quote
  #88  
Old 10-26-2005, 03:19 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What code amy? This one?
Quote:
Originally Posted by amykhar
Marco, my code fixes the quick reply problem.
Reply With Quote
  #89  
Old 10-26-2005, 03:48 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hrm, i have a width of 760 and i use the 728x90 width and it sticks out the sides. :/ gonna have to work on it. ended up using a smaller sized ad.
Reply With Quote
  #90  
Old 10-26-2005, 03:56 AM
DanLai's Avatar
DanLai DanLai is offline
 
Join Date: Sep 2005
Location: Hong Kong
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem, when i click on the #1 link on top-right corner, the single post interface shows up.

and the adsense looks ugly:

http://talkmusic.org/showpost.php?p=3310&postcount=1

How to fix it??
Reply With Quote
  #91  
Old 10-26-2005, 08:10 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TonysDesigns
What code amy? This one?
Does that version support postbit legacy style?

Tony you can use this code if you would like to display the ads between the second to last and last posts on a page.
PHP Code:
<if condition="$post[postcount] % $vboptions[maxposts] == $vboptions[maxposts] - 1"
Quote:
Originally Posted by DanLai
I have a problem, when i click on the #1 link on top-right corner, the single post interface shows up.

and the adsense looks ugly:http://talkmusic.org/showpost.php?p=3310&postcount=1
How to fix it??
Sorry DanLai I cfan;t help, but I wouldn't really worry about it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05647 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete