PDA

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


kether1
05-25-2008, 10:00 PM
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
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
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
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
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
05-02-2009, 09:39 PM
So this is just another place to show our google ads?

kether1
05-02-2009, 09:46 PM
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
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
05-16-2009, 01:25 AM
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
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
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
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
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.