Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

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
  #42  
Old 02-22-2006, 04:15 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Keyser520
I did what you said, but the ads are not showing up anywhere. Here is my FORUMDISPLAY code
you added the code before </if> instead of after. If you fix that and it should work for you

Quote:
Originally Posted by Keyser520
also Where would I insert the code if I wanted to have it show after the LAST POST in a thread but BEFORE the footer?
depends on where you want it... you can put your adense code in two places
if you want it before the display options put it here:
PHP Code:
</table>
<!-- / 
controls below thread list -->
INSERT ADSENSE HERE 
if you want it RIGHT before the footer put it here:
PHP Code:
<!-- / forum rules forum jump -->
INSERT HERE
$footer 
Quote:
Originally Posted by Unexplained
I tend to agree with some of the other posters, the code simply doesn't work.
The code works perfectly on every single board i use it on (all using vb3.5.x). Thus, I am inclined to believe you did something wrong instead.

If you have nothing further to had have a nice day, however.. if you seek assistance in getting it working on you own forum I will gladly help you.
Reply With Quote
  #43  
Old 02-22-2006, 06:45 PM
Keyser520 Keyser520 is offline
 
Join Date: Feb 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I modified the code slightly so that there are items in every field. The ones that usual say numbers now have "---" in them.

PHP Code:
<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7)">  
          <
tr
           <
td class="alt1"
             <
img src="$stylevar[imgdir_statusicon]/thread_moved.gif" alt="" border="" /> 
           </
td
           <
td class="alt2"><img src="images/icons/icon1.gif" alt="" border="0" /></td

            <
td class="alt1"
            <
div

            <
script type="text/javascript"><!--
            
google_ad_client "pub-8436755030314590";
            
google_ad_width 468;
            
google_ad_height 15;
            
google_ad_format "468x15_0ads_al_s";
            
google_ad_channel ="";
            
google_color_border "B4D0DC";
            
google_color_bg "ECF8FF";
            
google_color_link "0000CC";
            
google_color_url "008000";
            
google_color_text "6F6F6F";
            
//--></script>
            
<script type="text/javascript"
             
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </
script>

 
            </
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> 
Any idea on how to make this show up as the second spot rather than as the last one?
Reply With Quote
  #44  
Old 02-23-2006, 12:22 AM
tbaleno tbaleno is offline
 
Join Date: Feb 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just signed up with gooogle adsense. When I put this code in I see nothing except the icon and the "sponsored"
Reply With Quote
  #45  
Old 02-23-2006, 03:49 AM
Unexplained.tv Unexplained.tv is offline
 
Join Date: Oct 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I tried it, and I did it 100% exactly as stated in the code in the first post- I never saw anything. Not trying to bring down the mod- I just found it not working.... I went with the random generated code instead.

Quote:
Originally Posted by Moparx
you added the code before </if> instead of after. If you fix that and it should work for you



depends on where you want it... you can put your adense code in two places
if you want it before the display options put it here:
PHP Code:
</table>
<!-- / 
controls below thread list -->
INSERT ADSENSE HERE 
if you want it RIGHT before the footer put it here:
PHP Code:
<!-- / forum rules forum jump -->
INSERT HERE
$footer 

The code works perfectly on every single board i use it on (all using vb3.5.x). Thus, I am inclined to believe you did something wrong instead.

If you have nothing further to had have a nice day, however.. if you seek assistance in getting it working on you own forum I will gladly help you.
Reply With Quote
  #46  
Old 02-23-2006, 04:18 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbaleno
I just signed up with gooogle adsense. When I put this code in I see nothing except the icon and the "sponsored"
Are you using an ad blocker?

Quote:
Originally Posted by Unexplained
When I tried it, and I did it 100% exactly as stated in the code in the first post- I never saw anything. Not trying to bring down the mod- I just found it not working.... I went with the random generated code instead.
There is no random placement code released for the forumdisplay (if thats what you mean) that I am aware of. Are you sure you aren't thinking of the random placement in the postbit mod?
Reply With Quote
  #47  
Old 02-23-2006, 04:51 AM
tbaleno tbaleno is offline
 
Join Date: Feb 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moparx
Are you using an ad blocker?
Apparantly I was Thanks. Mystery solved.
Reply With Quote
  #48  
Old 03-08-2006, 03:30 AM
SIINSI SIINSI is offline
 
Join Date: Mar 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm pretty sure Adsense can be used on a search results page, care to post the code you were speaking of?

Thanks!

Miguel
Reply With Quote
  #49  
Old 03-08-2006, 06:23 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SIINSI
I'm pretty sure Adsense can be used on a search results page, care to post the code you were speaking of?

Thanks!

Miguel
someone else made it before I released mine.
i believe it is in the 'other modifications' forum
Reply With Quote
  #50  
Old 03-23-2006, 06:54 AM
simonlorentsen simonlorentsen is offline
 
Join Date: Mar 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am looking to have this come up as always the second post in all threads, how can i get this to work ?

appreciate any help
Reply With Quote
  #51  
Old 05-01-2006, 12:31 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

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 11:41 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.07721 seconds
  • Memory Usage 2,344KB
  • 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
  • (7)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
  • (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