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

Quote:
Originally Posted by StarBuG
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
Honestly, I am not sure if you would be allowed to add adsense to the search results (Its not allowed on the actual search page.. but one would think its allowed on the results).
Let me know if you find out because I have the code ready to post for you if it's allowed.
Reply With Quote
  #23  
Old 12-13-2005, 01:22 AM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it to work at all.
Reply With Quote
  #24  
Old 12-13-2005, 01:47 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djmini
I can't get it to work at all.
did you follow the instructions exactly and set the proper usergroups you wanted?
Reply With Quote
  #25  
Old 12-13-2005, 02:41 AM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

apologies
<--newbie

is_member_of _Usergroup or (USERGROUP, 1,2)?

+<if+condition="is_member_of($bbuserinfo,+1,2)">
Reply With Quote
  #26  
Old 12-13-2005, 03:16 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djmini
apologies
<--newbie

is_member_of _Usergroup or (USERGROUP, 1,2)?

+<if+condition="is_member_of($bbuserinfo,+1,2)">
just like this:
PHP Code:
<if condition="is_member_of($bbuserinfo, x,y)"
x & y are the numerical ids that correspond with your user groups.
Reply With Quote
  #27  
Old 12-20-2005, 10:13 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have gone to remove this and i got this error

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected '\"', expecting ']' in /home/hrportal/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 475

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #28  
Old 12-21-2005, 12:11 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that means you left part of a conditional in the code. go through the template & make sure that <if condition="is_member_of($bbuserinfo, x,y)"> and </if> were properly removed.
Reply With Quote
  #29  
Old 01-06-2006, 04:02 PM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I make it so the google ads show up after so many threads?
Reply With Quote
  #30  
Old 01-09-2006, 09:06 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

How would i do this so that when the size of the window gets made bigger or smaller the imagig changes size to match please, as this is making the forum too wide????

Regards

Bashy
Reply With Quote
  #31  
Old 01-10-2006, 11:27 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Hi

How would i do this so that when the size of the window gets made bigger or smaller the imagig changes size to match please, as this is making the forum too wide????

Regards

Bashy
if the ad unit you are currently using is too big, i suggest using a smaller one such as the 234x60 half banner
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 08:50 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.05488 seconds
  • Memory Usage 2,316KB
  • 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
  • (4)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