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, different sizes for visitors to members ? under last post Details »»
Adsense, different sizes for visitors to members ? under last post
Version: 1.00, by MadKad MadKad is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-24-2006 Last Update: 06-27-2006 Installs: 33
Uses Plugins Template Edits
Additional Files  
No support by the author.

I made this for our forum because our members didn?t like it when we added the big Adsense banner under last post, so I made this small hack where it shows smaller adverts for members and bigger ones to visitors.

What it does:
Shows one size advert to visitors (Adsense, text links, banners or anything you want)
Can be set to have more features that to adds if you no coding (or ask)
Set to show for user groups

Files:
1 Product file
1 Main template edit
New template will need your ad?s adding

Folder contains:
product-google_adds_sizes.XML file
Read me first.txt file (please read first)

FAQ:

Q: will this work in 3.6.0
A: Yes

Q: Can I add more that two kinds of adverts?
A: Yes you will need to add more code to the template

Q: My ad's are not showing?
A: Please make sure you add your user groups like 1, 2, 3, 4 with the spaces and not 1,2,3,4

This is the code you will need I have commented it.

Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))">
advert here
</if>
Supported at webmaster forum

Thank you

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 04-22-2007, 06:39 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I've unsuccessfully tried about 7 different locations for this within forumhome.

Where can I add this to forumhome so that it looks nice?

PHP Code:
<!-- Start Google bottom -->
$google_bottom
<!-- / End Google bottom --> 
Between What's going on? and logged in users seems to be the logical choice.

I can't seem to get the right placement, or it's simply not compatible with that location.

Thanks!
-Raymond
Reply With Quote
  #53  
Old 04-22-2007, 07:51 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well if you are getting it to change size for members and not members then have it where the add's are now, one at top and one at bottom. then smaller for the members
Reply With Quote
  #54  
Old 04-22-2007, 08:04 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The size is OK. I display the same link bar for anyone. I already have a leaderboard in the footer, so this mod is great for a generic link bar. It works fine for showthead and I added it to forumdisplay too. I simply can't figure out how to add it to forumhome. Make sense?

-Raymond
Reply With Quote
  #55  
Old 04-22-2007, 10:55 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are I see what site is it? the one in your sig?
Reply With Quote
  #56  
Old 04-22-2007, 11:10 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, the WNYPoker.com. As you can see I have it working OK on showthread and forumdisplay. I'd like to add that same block above the currently active users in the "what's going on?" on forumhome. Is it possible insert the simple $google_bottom in forumhome and get the desired result? If not, can you provide some guidance for a second template and creating a $google_forumhome ? Thanks!

-Raymond
Reply With Quote
  #57  
Old 04-23-2007, 09:26 AM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ok I just looked

in template FORUMHOME find:

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>


then above ad the code:

$google_forumhome

that should do the job spot on
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 06:53 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.03974 seconds
  • Memory Usage 2,268KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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