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

Quote:
Originally Posted by bold
if mods can see your ad
<snip>
so you dont have a missing cell
haha.. thanks. i completely forgot to add that when i made this.
the thread has been updated.

Quote:
Originally Posted by hornstar1337
I want it to show for guest and resistered members and users awaiting email confirmation.

What would I change the conditional too, thanks
change:
PHP Code:
<if condition="$show['guest']"
to:
PHP Code:
<if condition="is_member_of($bbuserinfo, 1,2,3)"
I have changed the modification to use is_member_of instead as it will be easier for those who want to use this on various usergroups.


Quote:
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.
I believe you are referring to the footer template.

however, it is not advisable to put adsense in the navbar or footer templates unless you have a conditional set to hide the ads on non-content-based pages (such as newthread, your user control panel, etc). if you are showing the ads in non-content pages you are violating the Adsense guidelines.
Reply With Quote
  #13  
Old 12-08-2005, 07:23 PM
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Posts: 661
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has this been confirmed to work with "click for quick reply"?

This happened to be an issue with AJAX when using adsense and "click for quick reply" Quick reply would not work.
Reply With Quote
  #14  
Old 12-08-2005, 09:05 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtremeoff-road
Has this been confirmed to work with "click for quick reply"?

This happened to be an issue with AJAX when using adsense and "click for quick reply" Quick reply would not work.
this template mod does not show on showthread.
Reply With Quote
  #15  
Old 12-11-2005, 07:23 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moparx
haha.. thanks. i completely forgot to add that when i made this.
the thread has been updated.



change:
PHP Code:
<if condition="$show['guest']"
to:
PHP Code:
<if condition="is_member_of($bbuserinfo, 1,2,3)"
I have changed the modification to use is_member_of instead as it will be easier for those who want to use this on various usergroups.



I believe you are referring to the footer template.

however, it is not advisable to put adsense in the navbar or footer templates unless you have a conditional set to hide the ads on non-content-based pages (such as newthread, your user control panel, etc). if you are showing the ads in non-content pages you are violating the Adsense guidelines.


Thankyou, and I may need to lookinto that conditional, as i Have a few adds that I put in my navbar that show on everypage, i may need to edit that before any of my advertisers find out ^^ thanks for the info
Reply With Quote
  #16  
Old 12-11-2005, 12:06 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestion
Would it be possible to also show this banner as last thread in a search result?

I think that would also be a nice place for a banner
Reply With Quote
  #17  
Old 12-11-2005, 12:22 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, installed! Is it possible to display this not at the end of the forumdisplay listing, but at the beginning? What would the resulting code look like then?

I believe the CTR would increase that way.
Reply With Quote
  #18  
Old 12-11-2005, 12:35 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But most likely your members would hate it
Reply With Quote
  #19  
Old 12-11-2005, 01:18 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG
But most likely your members would hate it

Members would not get to see it, I have it set for unregistered or unconfirmed members only.
Reply With Quote
  #20  
Old 12-11-2005, 11:52 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ferreo
Very nice, installed! Is it possible to display this not at the end of the forumdisplay listing, but at the beginning? What would the resulting code look like then?

I believe the CTR would increase that way.

add the code after the following:
PHP Code:
</tr>
</if>
<if 
condition="$show['threads']"
Reply With Quote
  #21  
Old 12-12-2005, 12:35 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moparx
add the code after the following:
PHP Code:
</tr>
</if>
<if 
condition="$show['threads']"

Fantastic, thank you Moparx!
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 05:56 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.04404 seconds
  • Memory Usage 2,321KB
  • 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
  • (8)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
  • (3)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