PDA

View Full Version : Profile Enhancements - Google Adsense Banner in Member Profile v1.0


kether1
26 May 2008, 07:54
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
26 May 2008, 07:56
Reserved.

piloto-43
26 May 2008, 18:41
:O thanx a lot!

avsunforum
26 May 2008, 19:21
Thanks very much

kether1
26 May 2008, 21:50
Glad to share! I hope it brings in some cash for you both!

Thanks,
K

redraider
28 May 2008, 01:42
can u make the plugin so that we dont have to do a template edit?

kether1
28 May 2008, 01:51
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
03 Jun 2008, 23:37
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
05 Sep 2008, 11:25
thanks, i have add the code.

t.uzuner
07 Sep 2008, 03:04
reserved

KevinGupta
16 Apr 2009, 12:58
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™
22 Apr 2009, 18:19
thanks alot

tonyswifey
28 Apr 2009, 18:43
Thanx!

kether1
02 May 2009, 22:28
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.

<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
02 May 2009, 22:50
So each member can display their own google adsense in their profile? Thats awesome!

kether1
02 May 2009, 22:54
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:

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

Hope I answered your question.

Thanks,
K

TNCclubman
02 May 2009, 23:39
So this is just another place to show our google ads?

kether1
02 May 2009, 23:46
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
03 May 2009, 13:05
thanks :)

kether1
08 May 2009, 04:32
If you use the mod, please click the install.

Thanks!
K

KevinGupta
15 May 2009, 11:52
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.

<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:


<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
16 May 2009, 03:25
Be sure the '/if' statement is placed at the end of the code.

Like this:
<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
14 Apr 2010, 17:40
Hi, I tried your code, gave it about 15 minutes & no ads are showing yet.

kether1
23 Jul 2010, 03:14
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
14 Aug 2010, 14:11
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
15 Aug 2010, 03:50
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
15 Aug 2010, 13:52
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
15 Aug 2010, 15:33
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
15 Aug 2010, 21:51
Can this please be ported to vb 4.x

BirdOPrey5
15 Aug 2010, 22:34
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
23 Aug 2010, 17:57
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
23 Aug 2010, 18:01
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
23 Aug 2010, 18:22
My mistake this is not the mod I was looking for.