Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense, different sizes for visitors to members Details »»
Adsense, different sizes for visitors to members
Version: 1.00, by MadKad MadKad is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 10-07-2006 Last Update: 10-13-2006 Installs: 21
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

More good news
This mod also adds the adverts to the bottom of the read pm page just under the PM msg :up:


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
  #12  
Old 10-31-2006, 04:45 AM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please can you show me the website?

also you template on the google adds
Reply With Quote
  #13  
Old 11-07-2006, 07:24 AM
Milez Milez is offline
 
Join Date: Jan 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone modify this to display the ads after a post randomly. There is a 3.5 hack that did this very well.
Reply With Quote
  #14  
Old 01-01-2007, 09:44 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you can show me the 3.5 hack that did that then I might be able to get a little better idea on how they did it, but I would think there is alot of work to be done to get this to do it
Reply With Quote
  #15  
Old 01-13-2007, 06:12 PM
TheFrienzNet's Avatar
TheFrienzNet TheFrienzNet is offline
 
Join Date: Jan 2007
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You sure it doesn't violates the Google ToS?

If not, then I think i'll use it.

Thanks.
Reply With Quote
  #16  
Old 01-13-2007, 08:02 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheFrienzNet View Post
You sure it doesn't violates the Google ToS?

If not, then I think i'll use it.

Thanks.
No it doesnt , ifact it cant, if you have it set to show big ad's to visitors then small or none to members there is no way it can
Reply With Quote
  #17  
Old 01-15-2007, 01:56 AM
fxs158 fxs158 is offline
 
Join Date: May 2003
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MadKad View Post
Screen shots here



and here



Adding the adverts after the first post insted or as well please do the following


After first post ad's:
================================================

Template > postbit_legacy

Find: the very bottom of code in template

After add:
Code:
<!-- Start Google bottom -->
<if condition="!$GLOBALS['FIRSTPOSTID']">
<br />
$google_bottom
</if> 
<!-- / End Google bottom -->
=================================================

Template > postbit

Find: the very bottom of code in template

After add:
Code:
<!-- Start Google bottom -->
<if condition="!$GLOBALS['FIRSTPOSTID']">
<br />
$google_bottom
</if> 
<!-- / End Google bottom -->
=================================================

Thats it that is the codes needed for both post styles after the first post

Tried doing this but it has yet to show after firs post, did anything change on 3.6.4 that affects this?
Reply With Quote
  #18  
Old 01-15-2007, 05:20 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please could you post the code for your postbit_legacy and postbit templates, so I can see what these look like
Reply With Quote
  #19  
Old 01-15-2007, 09:14 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant even import...

Maybe im not doing this right...

VB 3.6.4...

I go to styles and templates in admin cp...
Click download/upload style...

Import style xml file (browse to your xml file on my computer)
select merge INTO the style I want.
select ignore style version.

Click import and I get...

"invalid file specified"
Reply With Quote
  #20  
Old 01-16-2007, 10:52 PM
ZzZ_ZzZ ZzZ_ZzZ is offline
 
Join Date: Sep 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thaks
Reply With Quote
  #21  
Old 01-21-2007, 03:44 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nocturnix View Post
I cant even import...

Maybe im not doing this right...

VB 3.6.4...

I go to styles and templates in admin cp...
Click download/upload style...

Import style xml file (browse to your xml file on my computer)
select merge INTO the style I want.
select ignore style version.

Click import and I get...

"invalid file specified"
This isn't a style, it's a product.
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 03:58 PM.


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.06340 seconds
  • Memory Usage 2,308KB
  • 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_code
  • (3)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
  • (2)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