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 below the last thread Details »»
Adsense below the last thread
Version: 1.01, by Moparx Moparx is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-07-2005 Last Update: 12-07-2005 Installs: 91
 
No support by the author.

I made this to fill a request. This is designed to use the 234x60 Half Banner or 468 x 60 Banner.
At the moment it is set to display for guests and unconfirmed accounts only. You can change this by changing the is_member_of line.

1. Edit your FORUMDISPLAY Template and find:

PHP Code:
    <!-- end show no threads message -->
</if> 
2. BELOW that add the following:
PHP Code:
 <if condition="is_member_of($bbuserinfo, 1,2)"
<
tr>
    <
td class="alt1">
        <
img src="$stylevar[imgdir_statusicon]/thread_moved.gif" alt="" border="" />
    </
td>
        <
td class="alt2">&nbsp;</td>

    <
td class="alt1">
        <
div>
        
INSERT ADSENSE HERE
        
</div>        
    </
td>
    
    <
td class="alt2 smallfont" align="center">Sponsored Link</td>

        <
td class="alt1" align="center"></td>
        <
td class="alt2" align="center"></td>
         <if 
condition="$show['inlinemod']"><td class="alt1" align="center"></td></if>

</
tr>
</if> 

Show Your Support

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

Comments
  #52  
Old 05-01-2006, 04:20 PM
hozmay's Avatar
hozmay hozmay is offline
 
Join Date: Mar 2006
Location: turkey - istanbul
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you brother
Reply With Quote
  #53  
Old 05-01-2006, 06:00 PM
Steven Gibbons's Avatar
Steven Gibbons Steven Gibbons is offline
 
Join Date: Apr 2006
Location: Tadley
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this mod, im sure to install it, i have a mod similar to this on my forums.
Reply With Quote
  #54  
Old 05-01-2006, 08:05 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
Is it possible to display the Ad after the Nth thread?

That would blend in much better.

And what about always displaying the current date instead of --- ?
Is that possible?

Help is appreciated
Edit the threadbit template.

At the top add:
PHP Code:
<if condition="$GLOBALS[threadcount] == X AND in_array(THIS_SCRIPT, array('forumdisplay')) AND is_member_of($bbuserinfo, 1,2)">
<if 
condition="$GLOBALS[threadcount]++"></if>
<
tr>
    <
td class="alt1">
        <
img src="$stylevar[imgdir_statusicon]/thread_moved.gif" alt="" border="" />
    </
td>
        <
td class="alt2">&nbsp;</td>

    <
td class="alt1">
        <
div>
        
INSERT ADSENSE HERE
        
</div>        
    </
td>
    
    <
td class="alt2 smallfont" align="center">Sponsored Link</td>

        <
td class="alt1" align="center"></td>
        <
td class="alt2" align="center"></td>
         <if 
condition="$show['inlinemod']"><td class="alt1" align="center"></td></if>

</
tr
<else />

    <if 
condition="$GLOBALS[threadcount]++"></if>


</if> 
Change X to the numerical value that you want
Reply With Quote
  #55  
Old 05-01-2006, 09:15 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much.

If anyone is interested in how I implemented (slightly modified) it here you go:

http://www.hiphop-battles.com/forum/...splay.php?f=10



StarBuG

ps: I contacted google if the implementation is within their guidlines. I will post their answer here after I recive it
Reply With Quote
  #56  
Old 05-02-2006, 06:53 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh one more thing.

Would it also be possible to display the ad at a random location like a random number between 1-15 or so?

This would make it even better blended in and users could not get accustom to the location (banner blindness)

ps: Google answered and the placing was ok
Reply With Quote
  #57  
Old 05-04-2006, 03:03 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya, ill work on something for you.. should be pretty easy to do with a plugin
Reply With Quote
  #58  
Old 05-13-2006, 07:18 AM
doozyj doozyj is offline
 
Join Date: Apr 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
Thank you very much.

If anyone is interested in how I implemented (slightly modified) it here you go:

http://www.hiphop-battles.com/forum/...splay.php?f=10



StarBuG

ps: I contacted google if the implementation is within their guidlines. I will post their answer here after I recive it
Could you give me the code you used to insert it in. Sorry I am not to savvy with this.
Reply With Quote
  #59  
Old 05-13-2006, 02:41 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doozyj
Could you give me the code you used to insert it in. Sorry I am not to savvy with this.
the code was in the post above his.
Reply With Quote
  #60  
Old 05-14-2006, 10:32 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is the random placement progressing?
Reply With Quote
  #61  
Old 06-13-2006, 02:24 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is great.....however, is there anyway we can get rid of the other 2 <td> after it says "sponsered links"....??

Peace
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 02:46 PM.


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.13033 seconds
  • Memory Usage 2,328KB
  • 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
  • (3)bbcode_php
  • (3)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
  • (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