![]() |
Google Adsense (or other) in a Block like an Individual Profile comment
1 Attachment(s)
This simple hack enables you to add an advertising block to every member's profile page , this block looks just like other comments posted to the user's profile and is an encouraging way to force visitors clicking on it !
It's a pretty simple template edit. I promise if there will be a need , i'll prepare it as a plugin , with no template edit ! Installation: 1-upload the "upload" folder (1 image file) 2-only one template edit : vbulletin>Styles & Templates>Style Manager>edit templates>Member Info Templates>memberinfo_block_visitormessaging : Find : Code:
{vb:raw block_data.messagebits} Code:
<li class="postbit postbit-lite postcontainer<vb:if condition="!$message['avatarurl']"> noavatar</vb:if>" id="vmessage_{vb:raw message.vmid}"> DONE :) thnx goes to Leo Brazil for this thread , giving me this idea to have that option in profile pages also ! |
Great mod. Thanks for sharing :)
Is there any way to have the sponsored links show even when a member does not have any visitor messages on the members page? |
I'm not sure if the TOS has changed since I received an email warning against this but.. disguising your Adsense ads to appear to be anything other than ads (ie: a Post from a member of the site) is something they frown upon, and can result in your account and all its earnings being killed off.
*edit* The way around it, from memory, was to totally strip back the postbit that you are using for the Google post, so it looks nothing like all the rest. To hide it like you are suggesting is totally against the TOU. |
Just checked https://www.google.com/support/adsen...n&answer=48182 :
Quote:
|
Quote:
as you can see we are not trying to mislead visitors , we have mentioned following phrase : SPONSORED ADS that tells visitors it's not a normal link also the avatar we are using should confirm that google is the owner of links next to it , not the website owner & we are not trying to change the format of ads , we are not changing adsense codes . :p |
Quote:
yes , in same template find line below : Code:
<vb:if condition="$block_data['messagebits']"> and find line below : Code:
</vb:if> Code:
<vb:if condition="$show['quickcomment']"> |
The idea and mod, both of them are pretty sick. But I wish it wouldn break any adsense TOS or TAC(Terms and Conditions).
|
1 Attachment(s)
I have added a google avatar, and I can't possibly see how this should break any adsense TOS / TAC
https://vborg.vbsupport.ru/ I've attached the avatar if anyone else wants to use it |
Why dont you confirm with Adsense, and then let us know. so everyone can use it.
|
Thanks for this.
By the way, I believe by mistake you left a link to your customized avatar in the code. |
In addition is there anyway we can change the date to automatically state the current day?
|
Quote:
Quote:
change 03-08-2010 to any desired date or text (ie Today's Sponsored Links) Quote:
|
Quote:
|
while i go to insert this code i replace some content of memberinfo_block_visitormessaging : template code so the victor massage not appear any more if any one can help by copy the content of template memberinfo_block_visitormessaging and past it here
vbulletin>Styles & Templates>Style Manager>edit templates>Member Info Templates>memberinfo_block_visitormessaging : |
y don't u click on "[Show Default]" khalled?
btw if u r not able 2 do that here is the default code : Code:
<vb:if condition="$show['quickcomment'] AND $show['post_visitor_message']"> |
Quote:
|
thanks nice one :)
|
cool i like it
|
All times are GMT. The time now is 02:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|