PDA

View Full Version : Profile Enhancements - PS - Ads In Profile (Right Side Block)


PaulSonny
03-30-2008, 10:00 PM
vBulletin 3.7 Version
Demo: Click Here (http://www.tech-talk.co.uk/forum/members/paul.html).

About This Hack: This will add a right side block to your profile and display your Google Ads.

Features:
Google Ads in Profile (As Shown in Screenshots)
Usergroup Permissions
Ability to turn modification ON/OFF
Ability to turn ATCS ON/OFF
Ability to Edit ATCS Settings
Ability to enter your own Google Adsense Code

Installation Information: 3 Plugins, 1 Additional Template.

To install just unzip the download below and import into vBulletin using the ACP Product Manager, further and full instructions are included.

After Installation Instructions: THIS MUST BE DONE

Please update your Settings via the via the Admin CP >> vBulletin Options >> Google Ads in Profile.

Please post your comments or suggestions for this hack. I read ALL posts.

Please remember to click Mark As Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=174640) if you use this modification.
If you use this plug-in, and find it useful, please support us by nominating us for Mod Of The Month (MOTM) in the top right corner of this thread, or feel free to donate.
You will get an email when a new version is released.

History:

Version 1.00:
Initial version for vBulletin 3.7.
Version 2.00:
Usergroup Option
Usergroup Permissions Added
Plugins Updated

snunhuck
03-31-2008, 12:38 AM
Very Useful ,Thanks :)

bigtime
03-31-2008, 04:38 AM
Works great! Thanks!

www.Defend.net/deluxeforums/

Hasann
03-31-2008, 06:22 AM
Does every user can add his/her own google adsense to own profiles?

bam-met
03-31-2008, 06:51 AM
This is a really great idea. I have a blank block show up - not sure what I'm doing wrong. :eek:

PaulSonny
03-31-2008, 07:45 AM
Very Useful ,Thanks :)

Thanks, please remember to click install.

Works great! Thanks!

www.Defend.net/deluxeforums/

Thanks for your comments.

Does every user can add his/her own google adsense to own profiles?

No, you need to update the Settings via the Admin CP >> vBulletin Options >> Google Ads in Profile.

This is a really great idea. I have a blank block show up - not sure what I'm doing wrong. :eek:

Again please make sure you have updated the settings via the Admin CP >> vBulletin Options >> Google Ads in Profile. Once you have updated the settings, it will take a little while for the Ads to show while Google Adsense Spider scans your forum.

Thanks, Paul.

Jase2
03-31-2008, 02:44 PM
Thanks for this Paul, much appreciated.

Regards Jason :)

cosy
03-31-2008, 06:24 PM
will be nice if user can add own code :)

PaulSonny
03-31-2008, 07:30 PM
The User can add their own code, via the Admin CP under:

Admin CP >> vBulletin Options >> Google Ads in Profile.

As shown in the screenshot.

Thanks, Paul.

Edit: After reading Jase2 comment below I understand what you mean now and I agree with Jase2, why would you want to allow users to enter their own code?

Thanks, Paul.

Jase2
03-31-2008, 08:28 PM
I wouldn't like to give me users the ability to add their own code :p ....

Paul, did you get that PM I sent you?

Regards Jason :)

cosy
03-31-2008, 09:43 PM
easy i got almost 40% of user whit firefox and most of them got adb/noscript and my ads get blocked if a user wanna show hes ad he have to allow adsense/or what u use scripts

PaulSonny
03-31-2008, 09:48 PM
will be nice if user can add own code :)

easy i got almost 40% of user whit firefox and most of them got adb/noscript and my ads get blocked if a user wanna show hes ad he have to allow adsense/or what u use scripts

Yes but does that not then defeat the object of placing advertisements on your website, you will gain no Ad revenue from this.

I can probably create a variation if you would like were members can enter their own Google Adsense code?

Thanks, Paul.

cosy
03-31-2008, 11:31 PM
got a idea a random ad showed on profile
lets say 50% show ads that webmaster put and the other 50% random show from members
and if that 50% can be variable = win

PaulSonny
04-01-2008, 12:34 AM
got a idea a random ad showed on profile
lets say 50% show ads that webmaster put and the other 50% random show from members
and if that 50% can be variable = win

I am sorry but I am unable to do this. Sounds lik you are trying to make something simple complicated.

Thanks, Paul.

Zaiaku
04-01-2008, 03:17 PM
I like this. Thanks!

Jase2
04-01-2008, 03:34 PM
Working fine on RC2!

Regards Jason :)

farah
04-05-2008, 11:08 PM
think

http://www.mtjre.com/vb/member.php?u=1

Jase2
04-06-2008, 11:12 AM
Why you posting a link to your forums? SPAM!

Guest210212002
04-06-2008, 01:40 PM
I think he's trying to ask a question, because he's linking a profile page that we can't see w/o a login.

Anyhow, usergroup permissions would be great for this.

bilgicc
04-06-2008, 10:11 PM
Thanks a lot. I'm using this block ;)

crkgb
04-09-2008, 08:14 AM
Hello

What should the manual install look like, cause I can't get it to work. ATCS works fine but I need a different order.

I tried 2 settongs

<div id="sidebar_container">
<!-- sidebar -->
$template_hook[profile_right_first]
$blocks[stats_mini]
$blocks[ads]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[youtube]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
$template_hook[profile_right_last]
<!-- / sidebar -->
</div>

and

<div id="sidebar_container">
<!-- sidebar -->
$template_hook[profile_right_first]
$blocks[stats_mini]
$blocks_ads
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[youtube]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
$template_hook[profile_right_last]
<!-- / sidebar -->
</div>

PaulSonny
04-09-2008, 09:30 AM
For a manual template edit you need to use $blocks_ads, as per the instructions.

Will work on implementing some Usergroup controls.

Thanks, Paul.

rapidphim
04-17-2008, 03:10 AM
how about working on RC3?

GoTTi
05-01-2008, 11:15 PM
installed. waiting for the ads to load...
we can put any advertising code in this correct? doesnt have to be google adsense right?

Awjvail
05-03-2008, 06:11 AM
It doesn't seem to work for me.

I've put in my publisher number thing, and it seems as though it is a large ad (wide and short), and not the square you show in the screenshot. "/* 728x90, created 2/22/08 */"

TheBlackPoet
05-04-2008, 12:52 AM
maybe its just me..., but google adsense makes a site looks less reputable.... I mean really.., who ever clicks on that shit anyway??? while i love google analytics... and praise its "free-ness" the only real winner of google adsense is google.... are the pennies you MIGHT get, worth the quality of your site???

imo..

Mum
05-09-2008, 06:27 PM
Can you use an ad code that isn't google in that spot, or does it have to be google?

Tom_S
05-12-2008, 12:17 AM
Thanks Paul. Another nice mod. ;)

redraider
05-13-2008, 08:02 PM
pardon my ignorance. ... but what is ATCS :(

what am i missing

PaulSonny
05-18-2008, 07:42 AM
Firstly I'd like to apologise for taking so long to reply, I have been tide up in developing other modifications.

It doesn't seem to work for me.

I've put in my publisher number thing, and it seems as though it is a large ad (wide and short), and not the square you show in the screenshot. "/* 728x90, created 2/22/08 */"

It sounds to me like you have created the wrong size ad. I think you need to go back to your Google account and create a new ad with the correct dimensions.

maybe its just me..., but google adsense makes a site looks less reputable.... I mean really.., who ever clicks on that shit anyway??? while i love google analytics... and praise its "free-ness" the only real winner of google adsense is google.... are the pennies you MIGHT get, worth the quality of your site???

imo..

That is your opinion. I think if Ads are placed in the right place then they can be quite useful, but Ads placed everywhere on the site I agree makes it look messy and unprofessional.

Can you use an ad code that isn't google in that spot, or does it have to be google?

I believe you can put any Ad code in, not just restricted to Google Ads.

Thanks Paul. Another nice mod. ;)

Thanks Tom, much appreciated.

pardon my ignorance. ... but what is ATCS :(

what am i missing

ATCS - this means that all the template edits are automatic, there is no need to do manual template edits.

Thanks, Paul.

netzrate
05-18-2008, 09:45 AM
Nice Hack!
Thank you!!

dancue
05-18-2008, 01:31 PM
Installed. Great so far.

would like to have certain usergroups not see the ads.

dancue
05-18-2008, 01:43 PM
Would this work? I edited the plugin "Google Ads for Member Profile".

if ($vbulletin->options['ads'] == '1')
if (is_member_of($vbulletin->userinfo,1 ,2 ,3, 4, 5, 6, 7, 8, 10))
{
$google_code = $vbulletin->options['google_ad_code'];
}

PaulSonny
05-18-2008, 04:02 PM
I will upgrade later today with usergroup permissions.

Apart from not displaying ads in profile, what other Usergroup Options would you like? I cant really think of any but you might be able to?

Would you prefer a bitfield so it appears in the Usergroup Edit Otions menu or under vbulletin options?

Thanks, Paul.

kether1
05-19-2008, 12:04 AM
Paul, this looks great. I am waiting on the upgrade with the usergroup permissions. That will be fantastic. Thanks so much for sharing this with everyone.

Thanks
K.

dancue
05-19-2008, 04:02 AM
So far everything else looks good. I don't think I would need any more options out of this.

I mean, I could go into asking for ajax refresh ads, or rotate ads...but I won't. ;)

PaulSonny
05-19-2008, 10:33 AM
Version 2 Released.

I have released Version 2 which allows you to specify which usergroups should see the Ads in the Profiles.

Thanks, Paul.

John Stone
05-19-2008, 11:10 AM
Extremely well done, thank you! :)

Shaliza
05-23-2008, 02:54 AM
Genius idea. I didn't want to install it until you added the usergroup feature. Fantastic.

PaulSonny
05-23-2008, 03:41 PM
Extremely well done, thank you! :)

Genius idea. I didn't want to install it until you added the usergroup feature. Fantastic.

Thanks for comments.

Dont forgot to post any suggestions, no matter how small, if I can do it, ill implement it.

Thanks, Paul.

piloto-43
05-23-2008, 07:41 PM
nice idea! is great this mod, easy and nice .. again.

thanks!

jscieza
05-24-2008, 02:11 AM
Hi Paul,

What happen if I left blank the Allowed Usergroups field? This means that no any user will be able to add their own AdSense and only will be displayed the AdSense that I define in Google Ad Code?

Another question: you have said that a user can add their own AdSense by going to the AdminCP... I don't understand, it means that users need to have access privileges to the ACP if they wants to add their own Google AdSense code?

Thank you!

Jonathan.

PaulSonny
05-24-2008, 06:49 AM
Hi Paul,

What happen if I left blank the Allowed Usergroups field? This means that no any user will be able to add their own AdSense and only will be displayed the AdSense that I define in Google Ad Code?

Another question: you have said that a user can add their own AdSense by going to the AdminCP... I don't understand, it means that users need to have access privileges to the ACP if they wants to add their own Google AdSense code?

Thank you!

Jonathan.

Hi Jonathan,

I believe that if you leave the allowed usergroups field blank then it wouldnt display the Ads Block in the profile at all.

The allowed usergroups is only to define which usergroups see the Ads, for example if you have a VIP Ad Free group, you can set it so it doesnt display to that usergroup.

Users are not able to add their own Google Ads code, I think I should re-word the original post, you have the ability to add your Google Ads code.

Sorry for any confusion.

Thanks, Paul.

Jhonnyf
05-24-2008, 12:31 PM
Interesting, but for that, we can put the member info as public.......

PaulSonny
05-24-2008, 12:42 PM
Interesting, but for that, we can put the member info as public.......

Im confused, what do you mean?

Thanks, Paul.

Jhonnyf
05-24-2008, 04:07 PM
Im confused, what do you mean?

Thanks, Paul.
so that guests can see the page, especially spiders and thus create relevant advertising

jscieza
05-24-2008, 09:26 PM
Hi Jonathan,

I believe that if you leave the allowed usergroups field blank then it wouldnt display the Ads Block in the profile at all.

The allowed usergroups is only to define which usergroups see the Ads, for example if you have a VIP Ad Free group, you can set it so it doesnt display to that usergroup.

Users are not able to add their own Google Ads code, I think I should re-word the original post, you have the ability to add your Google Ads code.

Sorry for any confusion.

Thanks, Paul.

Now it's much clear. Thank you for your clarification :)

Greek76
05-27-2008, 03:10 PM
So how long is it suppose to take to show google adsense? Its been almost 20 minutes and nothing is showing. I have the permissions set so that only guests and administrators can see but no add is showing. I entered code for 200 x 200.

Mum
05-27-2008, 07:49 PM
Installed :)

Is there any way to exclude one group from seeing them (secondary group)

PaulSonny
05-28-2008, 06:10 PM
So how long is it suppose to take to show google adsense? Its been almost 20 minutes and nothing is showing. I have the permissions set so that only guests and administrators can see but no add is showing. I entered code for 200 x 200.

Can you see a Profile Sponsors Block?

Installed :)

Is there any way to exclude one group from seeing them (secondary group)

I believe you should be able to hide it by not entering their usergroup ID.

Thanks, Paul.

Mum
05-28-2008, 06:22 PM
That doesn't work, it only seems to work for primary groups, but i need to hide it from supporters who are a secondary group.

bada_bing
06-16-2008, 07:31 PM
Anyone know how I can get this to work for vb 3.5.x ?

PaulSonny
06-28-2008, 03:28 PM
I'm afraid this will not work with 3.5.X because it uses the new 3.7 Profile Templates.

Thanks, Paul.

bada_bing
06-28-2008, 03:41 PM
Awe that stinks:(

YuOr
07-16-2008, 12:20 PM
great mode! installed!
Can you please tell me how i can move this block below friends and recent visitor blocks?
thanks

BucWiLd
07-17-2008, 02:45 AM
ty, installed just waiting for my adsense response...so let me get this straight im the only one who can add an ad right?

YuOr
07-18-2008, 04:18 AM
by the way it works great with amazon widget

jambo_1969
09-10-2008, 04:59 AM
Awesome - Just what I needed for my new Amazon Aff code :)

PaulSonny
09-10-2008, 05:29 AM
I'm glad you like it.

Thanks, Paul.

Goomzee
09-12-2008, 08:06 AM
nice great

mholtum
09-13-2008, 11:05 AM
Odd, The add box shows up great, but the actual add does not.

PaulSonny
09-13-2008, 08:25 PM
nice great

Thanks for the comments.

Odd, The add box shows up great, but the actual add does not.

Have you added your Ad Code via the AdminCP under vBulletin Options?

Thanks, Paul.

mholtum
09-13-2008, 11:26 PM
I did, it actually works great.. Just took longer than usual for the add content to display.

Thanks

PaulSonny
09-14-2008, 06:39 AM
Ah right ok, glad you managed to get it working.

Thanks, Paul.

Brandon Sheley
09-14-2008, 07:14 AM
nice mod, might be adding this one to the forums :)

shlomot
09-16-2008, 12:05 PM
Thank you for providing us for such a easy to administer container on user profile.

I would like to use your MOD as a container for applications other than ad display. However, the block title "Profile Sponsor" is not phrased.

Can you phrase it please on your next release? My use of your friendly block will be to set links to member's personality reports as you can see here (http://www.topsynergy.net/members/topsynergy.html).

Thanks again and a lot :)

P.S. I'd really appreciate your advice on how to send a dynamic query parameter from your block with username or userID of the member whose profile is being visited.

bada_bing
09-16-2008, 03:03 PM
Has anyone figured out how to get this to work with vb 3.5.x.. The creator of this mod initially said he would look into this but never got any results.

Thank You...

karlm
09-16-2008, 05:50 PM
Suggestion, if I may...

The ACP option should be for 'excluded groups'.

On my forum, I have some 30 usergroups and I now have to add every group to the ACP except the one single group.

shlomot
09-17-2008, 10:04 AM
Not necessarily , because most likely your 23 newest groups are secondary groups to the primary ones: admin, moderator, registered, etc.

Suggestion, if I may...

The ACP option should be for 'excluded groups'.

On my forum, I have some 30 usergroups and I now have to add every group to the ACP except the one single group.

PaulSonny
09-17-2008, 12:22 PM
Thank you for providing us for such a easy to administer container on user profile.

I would like to use your MOD as a container for applications other than ad display. However, the block title "Profile Sponsor" is not phrased.

Can you phrase it please on your next release? My use of your friendly block will be to set links to member's personality reports as you can see here (http://www.topsynergy.net/members/topsynergy.html).

Thanks again and a lot :)

P.S. I'd really appreciate your advice on how to send a dynamic query parameter from your block with username or userID of the member whose profile is being visited.

I will release an updated version when I get home from work which will have the word "Profile Sponsor" phrased.

With regards to your other query, I would try to use a plugin. If you wish to add me to MSN I will talk with you more about this - also will be available to help.

Has anyone figured out how to get this to work with vb 3.5.x.. The creator of this mod initially said he would look into this but never got any results.

Thank You...

I asked you to send me account details for your forum so I could develop a solution as I do not have a vBulletin 3.5.X installation set up. I never received any details.

Suggestion, if I may...

The ACP option should be for 'excluded groups'.

On my forum, I have some 30 usergroups and I now have to add every group to the ACP except the one single group.

I will attempt to create a replica of this modification but instead of entering usergroups to show the Profile Sponsor block to, I will change it so you excluse groups.

I hope this helps.

Thanks, Paul.

shadowdancer36
09-29-2008, 03:02 PM
Great job! *INSTALLED*

bada_bing
09-29-2008, 05:36 PM
I will release an updated version when I get home from work which will have the word "Profile Sponsor" phrased.

With regards to your other query, I would try to use a plugin. If you wish to add me to MSN I will talk with you more about this - also will be available to help.



I asked you to send me account details for your forum so I could develop a solution as I do not have a vBulletin 3.5.X installation set up. I never received any details.



I will attempt to create a replica of this modification but instead of entering usergroups to show the Profile Sponsor block to, I will change it so you excluse groups.

I hope this helps.

Thanks, Paul.



Paul,

I understand you needed access but I just dont normally give full admin access to my site and I did explain via PM that I can send you what ever files you want to look at.... is this accesptible?

PaulSonny
09-30-2008, 08:16 AM
Paul,

I understand you needed access but I just dont normally give full admin access to my site and I did explain via PM that I can send you what ever files you want to look at.... is this accesptible?

Im afraid not as I would need access to templates.

Thanks, Paul.

raj_singh
10-07-2008, 09:41 AM
I like this. Thanks!

bongwater
10-20-2008, 12:39 PM
installed, works great on 3.8.0 beta 1

soner
10-21-2008, 08:12 AM
yeah thanks paul

spiegelj
10-23-2008, 12:12 AM
nice mod but i notice the block was collapsable wich isn't good if you want users to have to look at the add so i removed this section of code from the memberinfo_block_ads Template

<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('google_ads')"><img id="collapseimg_google_ads" src="$stylevar[imgdir_button]/collapse_generic.gif" alt="" border="0" /></a>

PaulSonny
10-29-2008, 11:44 AM
I will update the mod to make this an option - thanks for pointing it out :)

THanks, Paul.

realmr
10-30-2008, 08:59 AM
does this add the default ads or members can display their google ads ? i.e members publisher ids where the revenue is shared by user and admin ?

PaulSonny
10-30-2008, 01:32 PM
This modification allows the administrator to add their own google ads or any other ads code to display ads to their members.

It does not allow users to submit their own google code.

Thanks, Paul.

KeyTraderz
10-30-2008, 04:16 PM
i have 2 problems wen i install please check!!

I do not have the google ads block in Admin panel:
http://img401.imageshack.us/img401/4562/untitled2tm1.png

and I am not able to remove this either:
http://img183.imageshack.us/img183/655/untitledjq9.png

please reply ASAP

ArnyVee
11-11-2008, 02:05 AM
I've added this one. Works nicely on my test board using a non-Google affiliate program. Thanks! :D

GlamRockTalk
11-20-2008, 01:30 PM
This mod ROCKS! :D

Thanks PaulSonny

C138 Kaysone
12-18-2008, 10:49 PM
Its not working for me at all

luket79
01-17-2009, 09:27 PM
Works fine in 3.8, also thanks for the drop down removal hack.

giorgioarmani
10-19-2009, 03:32 PM
Just installed.

Glad to see this working smoothly in 3.8.4!

Ideal advert size is 200x200...

jaderollie
10-20-2009, 01:48 PM
great mod, and well knocked bandie thanks ;)

masterweb
11-03-2009, 07:11 PM
yeah thanks paul

Thanks a million dude, installed :D

MagicThemeParks
12-31-2009, 08:19 PM
If I want to display Google and other ads in the spot, is there a way to rotate them?

bada_bing
08-24-2010, 01:10 AM
will this be updated for vb 4.x

Xexiu
04-09-2013, 04:40 PM
Not working on 3.8.7.

I tried it too on localhost on a fresh install, and its not showing the block. I would love having this mod installed!