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
  #2  
Old 12-08-2005, 02:31 AM
Stifler Stifler is offline
 
Join Date: Jan 2005
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very awesome idea. thanks for fulfilling the request, and whoever came up with it. this should get a lotta click thru's
thanks!~
Reply With Quote
  #3  
Old 12-08-2005, 03:01 AM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea, and works great!!

*clicks install
Reply With Quote
  #4  
Old 12-08-2005, 08:58 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much
Reply With Quote
  #5  
Old 12-08-2005, 10:49 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want it to show for guest and resistered members and users awaiting email confirmation.

What would I change the conditional too, thanks

On a side note, what template is the one that would need to be modified to edit the bottom of the forum to put a banner there, as the navbar does the top, but i cant remember the other one.

Thanks if you can help me on these 2 questions.
Reply With Quote
  #6  
Old 12-08-2005, 11:35 AM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it may be against google's AUP to have 'sponsored link' in that right column.

just put a dash (-) in each column as you have with a forum link on forum home.
Reply With Quote
  #7  
Old 12-08-2005, 02:42 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK
I think it may be against google's AUP to have 'sponsored link' in that right column.

just put a dash (-) in each column as you have with a forum link on forum home.
Why would it be against Google TOS?
Reply With Quote
  #8  
Old 12-08-2005, 04:02 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's much better!
Reply With Quote
  #9  
Old 12-08-2005, 04:46 PM
bold bold is offline
 
Join Date: Oct 2004
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if mods can see your ad

replace
Code:
		<td class="alt1" align="center"></td>
		<td class="alt2" align="center"></td>
with

Code:
		<td class="alt1" align="center"></td>
		<td class="alt2" align="center"></td>
		<if condition="$show['inlinemod']"><td class="alt1" align="center"></td></if>
so you dont have a missing cell
Reply With Quote
  #10  
Old 12-08-2005, 05:28 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK
I think it may be against google's AUP to have 'sponsored link' in that right column.

just put a dash (-) in each column as you have with a forum link on forum home.
the phrase 'Sponsored link' is allowed.. as is 'Advertisement'

Quote:
Labeling Ads

Publishers may not label the ads with text other than "sponsored links" or "advertisements." This includes any text directly above our ads that could be confused with, or attempt to be associated with Google ads.
https://www.google.com/adsense/policies
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 03:15 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.06623 seconds
  • Memory Usage 2,308KB
  • Queries Executed 23 (?)
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_code
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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