The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Adsense Integration as second post - StarBuG optimized blending Details »» | |||||||||||||||||||||||||||
Adsense Integration as second post - StarBuG optimized blending
Developer Last Online: Nov 2022
Introduction:
I am StarBuG, a clinical Physician for Children, and I am running several health Forums to support patients with medical questions. During the many years I am running my Forums I constantly worked on optimizing my Advertising integrations to maximize my earnings and the user experience using my forums. The click through rates for my Adsense integrations are good to very good for forums and may increase due to further optimizations so mark this mod as installed if you use it to make sure you always use the best optimized version of my adsense integration. What this mod does: This mod adds a Google Adsense large rectangle after the first post of each thread. It is blended to look like a regular post in your thread without violating Google adsense TOS. Make sure you use the same colors you use on your forum to optimize blending! This mod shows the AD only to GUESTS! If you want to show it to your members as well remove the " AND $show['guest']" condition!. Installation instructions: in the template postbit_legacy find: Code:
{vb:raw template_hook.postbit_end} Code:
<vb:if condition="$post['isfirstshown'] AND $show['guest']"> <ul> <li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}"> <!-- see bottom of postbit.css for .userinfo .popupmenu styles --> <div class="posthead"> <img title="Alt" src="./images/statusicon/post_old.png" alt="Alt" border="0" /><span class="date"> <a href="http://www.DOMAIN.COM/register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></div> <div class="postdetails"> <div class="userinfo"> <div class="username_container"> <br /> <span style="font-weight:bold;font-size:14px;margin-left:0px;color:#000000;">Advertising</span><br /><br /> <img src="http://www.DOMAIN.COM/images/logo_ads.png" width="90px" height="90px" alt="advertising" title="advertising" /> <dl class="userinfo_extra"> <dd>Forumname.com</dd> <dd>has no influence</dd> <dd>on advertisings</dd> <dd>that are displayed by</dd> <dd>Google Adsense</dd> </dl> </div> </div> <div class="postbody"> <br /> <!- Your Google Adsense Code for a 336x280px large rectangle --> <div class="cleardiv"></div> </div> </div> <div class="postfoot"> <div class="textcontrols floatcontainer"> <span class="postcontrols"> </span> </div> </div> <hr /> </li> </ul> </vb:if> Make sure you change all lines marked RED to fit your forum. For better blending I use my Websites Logo as "Avatar" to make it look more like a post. For the same reason I added the "we have no influence..." part below the "Avatar". You can remove the whole "userinfo_extra" part if you don't like the text. Screenshot: More of my Adsense Integrations:
Patientenfragen.net - we have the answers Of course feedback is welcome and if you have suggestions to further improve CTR please let me know! StarBuG Google isn't paying you enough money! Discover WHY! Show Your Support
|
Comments |
#32
|
||||
|
||||
Of course it did
vB Conditions are easy once you understand them |
#33
|
|||
|
|||
Thank you mate, great mod and the best support.
Any ideas how can I do to add this mod to show per every 5 posts instead of the second post only? |
#34
|
||||
|
||||
Thanks super man
|
#35
|
|||
|
|||
As always, that works like a charm
|
#36
|
|||
|
|||
installed works great... thank you
|
#37
|
||||
|
||||
Interesting, tagged.
|
#38
|
|||
|
|||
working on 4.1.7
|
#39
|
|||
|
|||
thanks for that.
is there a chance to get it centered ? |
#40
|
|||
|
|||
Just modified my 4.1.10. I've improved the design of the "post" so it looks like a real one - with Google's avatar, a user called "Google AdSense" with rank "Ads from Google". It even has registration date and location
If anybody's interested - send me a PM, because most probably I won't follow this thread. |
#41
|
|||
|
|||
I think it's easier to publish the code here then answer each PM individually.
As an attachment you can find a screenshot of the platform where I made the modification. You can see working example (in Bulgarian, unfortunately) on this page. The installation process remains the same, except of the code: Code:
<vb:if condition="$post['isfirstshown'] AND $show['guest']"> <ul> <li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}"> <!-- see bottom of postbit.css for .userinfo .popupmenu styles --> <div class="posthead"> <span class="postdate old"><span class="date"><a href="register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></span><span class="nodecontrols">#0</span> </div> <div class="postdetails"> <div class="userinfo"> <div class="username_container"> <div class="popupmenu memberaction"> <a class="username online popupctrl" href="register.php" title="Register now and stop seeing ads!"><strong>Google AdSense</strong> </a> </div> <img class="inlineimg onlinestatus" src="images/statusicon_custom/user-online.png" alt="Google is online" border="0" title="Google is online"> </div> <span class="usertitle">Advertising from Google</span> <a class="postuseravatar" title="Google is online"><img src="images/google.png" alt="Advertising from Google" title="Advertising from Google" /></a> <hr> <dl class="userinfo_extra"> <dt>Joined in</dt> <dd>Dec 2007</dd> <dt>Address</dt> <dd>Google.com</dd> </dl> </div> <div class="postbody"> <br /> <!- Your Google Adsense Code with any size --> <div class="cleardiv"></div> </div> </div> <div class="postfoot"> <div class="textcontrols floatcontainer"> <span class="postcontrols"> </span> </div> </div> <hr /> </li> </ul> </vb:if> The code in red you may change/adapt to your needs. Good luck! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|