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

Reply
 
Thread Tools
Google Adsense Banner in Member Profile v1.0 Details »»
Google Adsense Banner in Member Profile v1.0
Version: 1.00, by kether1 kether1 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.0 Rating:
Released: 05-25-2008 Last Update: Never Installs: 40
Template Edits
 
No support by the author.

I have used so many wonderful modifications and template edits from this community, I am happy to share a simple one with you.

What does this template edit do?
  • This places a adsense banner or any other type advertisement above the tabs in your member profile page. See the image for more information.

How long does it take?
  • 2 minutes at the most if you have your adsense code ready.

I recommend using a banner ad (468 x 60) as pictured in the attached image. It just looks good. Try your own variations and have fun. I am aware that vB has put in markers for ads below the navbar, but because I use a custom skin, I was not able to use that ad location, so I had to do this template edit. I hope you find it useful.

Show Your Support

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

Comments
  #22  
Old 05-15-2009, 09:52 AM
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kether1 View Post
Hi Kevin,

Sorry, I just saw your request. You would just need to add the following code after what I tell you to look for in the download.
The user groups are noted by number.

Code:
<if condition="is_member_of($vbulletin->useinfo, 1)"></if>
This will check for secondary and primary groups in case you have both.

Please mark installed.

Thanks,
K
Hi mate... Thanks for the reply... I just tried what you said...
but it still shows.. I exempt Admins (ID 6) so that they cannot see ... lol but they still see?

Here is what I did:

Code:
<if condition="is_member_of($vbulletin->useinfo, 6)"></if>
Later I realised .. it may just show to ID 6 usergroup... but it is still showing it to all the groups..?
Reply With Quote
  #23  
Old 05-16-2009, 01:25 AM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Be sure the '/if' statement is placed at the end of the code.

Like this:
Code:
<if condition="is_member_of($vbulletin->useinfo, 6)"> THE ACTUAL CODE HERE</if>
This will show only to usergroup 6 in this instance.

K
Reply With Quote
  #24  
Old 04-14-2010, 03:40 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I tried your code, gave it about 15 minutes & no ads are showing yet.
Reply With Quote
  #25  
Old 07-23-2010, 01:14 AM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by extreme-gaming View Post
Hi, I tried your code, gave it about 15 minutes & no ads are showing yet.
Did you do this in vb 3 or vb 4? It is for vb 3.

I hope you got it working.
Reply With Quote
  #26  
Old 08-14-2010, 12:11 PM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it not be possible to use the already existing variables in vBulletin to just show the ad anywhere else you want?

I'm running 3.8.3 and have adsense integreation turned off atm, but there are vars in the templates for where to place the ads.
Reply With Quote
  #27  
Old 08-15-2010, 01:50 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could use the built in ad locations if you want, this mod just adds a new location that isn't in vbulletin by default. Personally I show an ad right below the navbar so I wouldn't use this, but if I didn't have an ad there I might,
Reply With Quote
  #28  
Old 08-15-2010, 11:52 AM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't mean using the default locations, I mean using the variables that already exist to display those ads, but placing them in different locations.
Reply With Quote
  #29  
Old 08-15-2010, 01:33 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well you could do that but that would also display the ad in the built in locations as well so you'd have to go back and remove the variables at the built in location if you didn't want to show the ad twice.

Basically this is just like making a new ad location template and adding it to display in your member profile.
Reply With Quote
  #30  
Old 08-15-2010, 07:51 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this please be ported to vb 4.x
Reply With Quote
  #31  
Old 08-15-2010, 08:34 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you look at the download .txt file? There's nothing to really port- just copy and paste your google adsense code into your MEMBERINFO template... move it to suit your needs.
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 11:06 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.04695 seconds
  • Memory Usage 2,307KB
  • 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
  • (2)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