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
  #22  
Old 06-29-2006, 05:58 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a ton for this hack!
Reply With Quote
  #23  
Old 06-29-2006, 06:04 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Cloud
Thanks a ton for this hack!
no thank you for liking it :banana:
Reply With Quote
  #24  
Old 06-30-2006, 06:28 PM
Blue-Inc Blue-Inc is offline
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

Great Modification and thank you for making it.

One question:

If I installed this, could I some how make this work with adbrite.com
Reply With Quote
  #25  
Old 06-30-2006, 07:13 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blue-Inc
Hi there,

Great Modification and thank you for making it.

One question:

If I installed this, could I some how make this work with adbrite.com
Yer you can add any adverts you want, also you can add more adverts to show for different groups.

Just add your code for your adverts where it tells you on the template
Reply With Quote
  #26  
Old 07-08-2006, 07:46 AM
webset32 webset32 is offline
 
Join Date: May 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much, very well implemented...
Reply With Quote
  #27  
Old 07-09-2006, 07:45 AM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #28  
Old 07-16-2006, 02:38 PM
rollo tamasi rollo tamasi is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway i can make the ads just appear for visitors to the site and not to registered members. At the moment when i log out i can see the ads (great) but when i log in i just see the table area at the bottom of the threads with no content. Is it possible to have this table removed while i'm signed in?

Added a screen shot for clarity
Reply With Quote
  #29  
Old 07-16-2006, 07:38 PM
rollo tamasi rollo tamasi is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you clarify this please
Quote:
To change who sees what please add the user groups by doing the following

Find:
Usergroups

and replace with your registerd user groups like this = 3,6,9,10,4
where do i modify the usergroups? I'm using VB 3.5.4
At the moment i have installed your mod but my ads are not appearing to my members.
Reply With Quote
  #30  
Old 07-17-2006, 10:59 AM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rollo tamasi
is there anyway i can make the ads just appear for visitors to the site and not to registered members. At the moment when i log out i can see the ads (great) but when i log in i just see the table area at the bottom of the threads with no content. Is it possible to have this table removed while i'm signed in?

Added a screen shot for clarity
if you want to do that just place all the new code that is in side your template in the middle of this

Code:
 <if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))">
all code here
</if>

Quote:
Originally Posted by rollo tamasi
could you clarify this please


where do i modify the usergroups? I'm using VB 3.5.4
At the moment i have installed your mod but my ads are not appearing to my members.

see the template

Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))">
all code here
</if>
that code where you placed your adds in the middle, you need to add the user groups where it says usergroupshere like the visitors as defoult are 1 so others will be 2 etc etc add them like

Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3))">
all code here
</if>
and it should work, any problems please say

please also note if you are using adsence then the ad's might not show straght away as google adsnce spider has to have visited your page first for ad's to show
Reply With Quote
  #31  
Old 07-17-2006, 11:25 AM
rollo tamasi rollo tamasi is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MadKad
and it should work, any problems please say
sorry about this MadKad but i can't seem to get the correct combination code wise. This is what i'm using at the moment, i can see adverts when i log out but not when i log in.

Code:
<!--######## start of bottom add's ########-->

<div style="padding:0px 0px $stylevar[cellpadding]px 0px"> 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center"> 
<tr> 
    <td class="thead" style="font-weight:normal" align="left">Advertisements</td> 
</tr>
<tr>
    <td align="center" class="alt1">
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5))">
<script type="text/javascript"><!--
google_ad_client = "pub-7213854248425086";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
//--></script>
<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if> 

<!-- Ad End --> 
<!-- User ad's end -->
</div>
</if>
</td>
</tr>
</table>

</div> 
<!--####### end of bottom add's #######-->
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:47 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.04386 seconds
  • Memory Usage 2,317KB
  • 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
  • (5)bbcode_code
  • (6)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