vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Profile Enhancements - Google Adsense Banner in Member Profile v1.0 (https://vborg.vbsupport.ru/showthread.php?t=180522)

kether1 05-25-2008 10:00 PM

Google Adsense Banner in Member Profile v1.0
 
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.

kether1 05-26-2008 05:56 AM

Reserved.

piloto-43 05-26-2008 04:41 PM

:O thanx a lot!

avsunforum 05-26-2008 05:21 PM

Thanks very much

kether1 05-26-2008 07:50 PM

Glad to share! I hope it brings in some cash for you both!

Thanks,
K

redraider 05-27-2008 11:42 PM

can u make the plugin so that we dont have to do a template edit?

kether1 05-27-2008 11:51 PM

Quote:

Originally Posted by redraider (Post 1533546)
can u make the plugin so that we dont have to do a template edit?

I would love to do that, but have never done it before. For now, it will have to be a template edit. I will look into making a plugin though. I think that would be fun.

Thanks,
Kether

kether1 06-03-2008 09:37 PM

I have been reading about how to make a plugin, but have not been successful yet. Don't give up on me. I really hope to learn how to do it. For the time, I think this will have to be a template edit unless someone else has time to help with the plugin.

Regards,
Kether

Markets Where 09-05-2008 09:25 AM

thanks, i have add the code.

t.uzuner 09-07-2008 01:04 AM

reserved

KevinGupta 04-16-2009 10:58 AM

Can we just have it for some usergroups we want to show it to and not ALL?

Please please let me know how can I do it... IT would be HIGHLY appreciated...

Thanks!

Alexey? 04-22-2009 04:19 PM

thanks alot

tonyswifey 04-28-2009 04:43 PM

Thanx!

kether1 05-02-2009 08:28 PM

Quote:

Originally Posted by KevinGupta (Post 1792355)
Can we just have it for some usergroups we want to show it to and not ALL?

Please please let me know how can I do it... IT would be HIGHLY appreciated...

Thanks!

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

TNCclubman 05-02-2009 08:50 PM

So each member can display their own google adsense in their profile? Thats awesome!

kether1 05-02-2009 08:54 PM

Quote:

Originally Posted by TNCclubman (Post 1803269)
So each member can display their own google adsense in their profile? Thats awesome!

Not exactly. This requires a template edit. Your members do not have access to edit your templates. This mod allows the site owner to display an advertisement as show in the attached image. The bit of code above will allow you to specify which usergroup sees the ad.

For instance if you only want visitors to your site (not members) to see the ad use this code:

Code:

<if condition="$show['guest']"></if>
The ad code goes between the 'If' statements.

Hope I answered your question.

Thanks,
K

TNCclubman 05-02-2009 09:39 PM

So this is just another place to show our google ads?

kether1 05-02-2009 09:46 PM

Quote:

Originally Posted by TNCclubman (Post 1803293)
So this is just another place to show our google ads?

Yes, if you like. Of course, you could put just about anything else that you want in that space. :)

Peace,
K

marshal_ramdev 05-03-2009 11:05 AM

thanks :)

kether1 05-08-2009 02:32 AM

If you use the mod, please click the install.

Thanks!
K

KevinGupta 05-15-2009 09:52 AM

Quote:

Originally Posted by kether1 (Post 1803259)
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..?

kether1 05-16-2009 01:25 AM

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

final kaoss 04-14-2010 03:40 PM

Hi, I tried your code, gave it about 15 minutes & no ads are showing yet.

kether1 07-23-2010 01:14 AM

Quote:

Originally Posted by extreme-gaming (Post 2021209)
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.

BigJohnny 08-14-2010 12:11 PM

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.

BirdOPrey5 08-15-2010 01:50 AM

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,

BigJohnny 08-15-2010 11:52 AM

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.

BirdOPrey5 08-15-2010 01:33 PM

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.

bada_bing 08-15-2010 07:51 PM

Can this please be ported to vb 4.x

BirdOPrey5 08-15-2010 08:34 PM

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.

bada_bing 08-23-2010 03:57 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2084456)
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.

There is more then the template changes there is an .xml that needs to be changes aslo

BirdOPrey5 08-23-2010 04:01 PM

Quote:

Originally Posted by bada_bing (Post 2088389)
There is more then the template changes there is an .xml that needs to be changes aslo

I don't know what mod you're looking at but in the top post of this one is only a text file download, no XML. :confused:

And the text file doesn't mention any XML edits, only a template edit.

bada_bing 08-23-2010 04:22 PM

My mistake this is not the mod I was looking for.


All times are GMT. The time now is 04:31 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.01763 seconds
  • Memory Usage 1,779KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete