vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - PS - Ads In Profile (Right Side Block) (https://vborg.vbsupport.ru/showthread.php?t=174640)

PaulSonny 03-30-2008 10:00 PM

PS - Ads In Profile (Right Side Block)
 
vBulletin 3.7 Version

Demo: Click Here.

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

Quote:

Originally Posted by snunhuck (Post 1478731)
Very Useful ,Thanks :)

Thanks, please remember to click install.

Quote:

Originally Posted by bigtime (Post 1478835)
Works great! Thanks!

www.Defend.net/deluxeforums/

Thanks for your comments.

Quote:

Originally Posted by Hasann (Post 1478884)
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.

Quote:

Originally Posted by bam-met (Post 1478892)
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

Quote:

Originally Posted by cosy (Post 1479299)
will be nice if user can add own code :)

Quote:

Originally Posted by cosy (Post 1479469)
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

Quote:

Originally Posted by cosy (Post 1479549)
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

Quote:

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

Quote:

Originally Posted by Awjvail (Post 1506510)
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.

Quote:

Originally Posted by TheBlackPoet (Post 1507534)
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.

Quote:

Originally Posted by Mum (Post 1514057)
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.

Quote:

Originally Posted by Tom_S (Post 1516640)
Thanks Paul. Another nice mod. ;)

Thanks Tom, much appreciated.

Quote:

Originally Posted by redraider (Post 1518690)
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".

Code:

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

Quote:

Originally Posted by John Stone (Post 1524627)
Extremely well done, thank you! :)

Quote:

Originally Posted by Shaliza (Post 1528556)
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.


All times are GMT. The time now is 06:05 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.01242 seconds
  • Memory Usage 1,827KB
  • 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
  • (1)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete