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 below the last thread (https://vborg.vbsupport.ru/showthread.php?t=102466)

Moparx 12-07-2005 10:00 PM

Adsense below the last thread
 
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> 


Stifler 12-08-2005 02:31 AM

very awesome idea. thanks for fulfilling the request, and whoever came up with it. this should get a lotta click thru's
thanks!~

The Chief 12-08-2005 03:01 AM

great idea, and works great!!

*clicks install :)

StarBuG 12-08-2005 08:58 AM

Thank you so much ;)

Hornstar 12-08-2005 10:49 AM

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.

rob30UK 12-08-2005 11:35 AM

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.

StarBuG 12-08-2005 02:42 PM

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?

Snake 12-08-2005 04:02 PM

That's much better!

bold 12-08-2005 04:46 PM

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

Moparx 12-08-2005 05:28 PM

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


All times are GMT. The time now is 10:06 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.01377 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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