![]() |
Adsense, different sizes for visitors to members ? under last post
I made this for our forum because our members didn?t like it when we added the big Adsense banner under last post, so I made this small hack where it shows smaller adverts for members and bigger ones to visitors.
What it does: Shows one size advert to visitors (Adsense, text links, banners or anything you want) Can be set to have more features that to adds if you no coding (or ask) Set to show for user groups Files: 1 Product file 1 Main template edit New template will need your ad?s adding Folder contains: product-google_adds_sizes.XML file Read me first.txt file (please read first) FAQ: Q: will this work in 3.6.0 A: Yes :D Q: Can I add more that two kinds of adverts? A: Yes you will need to add more code to the template Q: My ad's are not showing? A: Please make sure you add your user groups like 1, 2, 3, 4 with the spaces and not 1,2,3,4 This is the code you will need I have commented it. Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))"> Thank you |
Adding the adverts after the first post insted or as well please do the following
After first post ad's: ================================================ Template > postbit_legacy Find: Code:
<!-- / post #$post[postid] --> Code:
<!-- Start Google bottom --> Template > postbit Find: Code:
<!-- / post #$post[postid] --> Code:
<!-- Start Google bottom --> Thats it that is the codes needed for both post styles after the first post :cool: |
Very nice idea! :)
|
Thank you I have more Ideas for other things, I am just trying to think of best ways to do them lol, this was my first mod release :D
|
Post two I have added for the adverts to be able to go under the first post on every thread :D
|
Does this fall within the Adsense Terms of Service?
|
Yes, I have looked and there TOS doesnt say anything about changing the size of adverts :)
All it does is show the visitors a big banner and the members a small banner :) |
Great idea ;)
Installed |
Thanks mate :D
*Makes me feel good* |
hi there..
like ur idea...hope will use that.... can we share idea with u ? can u integrate goolgle adsense , miva & clickshor ? like google searc + miva search ? https://vborg.vbsupport.ru/showthread.php?t=118940 [high]* Zia kliks installed[/high] |
Quote:
|
:)
thnx mate. |
np Zia :D
|
MadKad this is a nice hack. Can you add the function that allow/not allow to show ads on a specific forum?
|
I can't get this to work on my board... I do have vb cpms installed as well, so would that be a problem?
I get the code Code:
<!-- Start Google bottom --> any ideas? |
Quote:
if so in your templates is there a template called google bottom? Quote:
|
Quote:
Quote:
i followed all the steps, edited all the code... and still nothing. now i am thinking there might be some variables that i need to declare global somewhere somehow or I dunno... |
Ok well please do the following
run database backup then go to manage products > Google Bottom > uninstall then download the fresh update I just uploaded and install it again, hopefully that should do it. make sure you Allow Overwrite when re-installing it :) please tell me if that works |
Quote:
it seems like the $google_bottom code isn't even recognized and doesn't get executed... let me look into the vb cmps and see if that might be a problem... |
i dont no much about vb cmps sorry it could be that :(
|
Thanks a ton for this hack! :)
|
Quote:
|
Hi there,
Great Modification and thank you for making it. One question: If I installed this, could I some how make this work with adbrite.com |
Quote:
Just add your code for your adverts where it tells you on the template :D |
Thank you very much, very well implemented...;)
|
Thank you :D
|
is there anyway i can make the ads just appear for visitors to the site and not to registered members. At the moment when i log out i can see the ads (great) but when i log in i just see the table area at the bottom of the threads with no content. Is it possible to have this table removed while i'm signed in?
Added a screen shot for clarity |
could you clarify this please
Quote:
At the moment i have installed your mod but my ads are not appearing to my members. |
Quote:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))"> Quote:
see the template Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))"> Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3))"> please also note if you are using adsence then the ad's might not show straght away as google adsnce spider has to have visited your page first for ad's to show :) |
Quote:
Code:
<!--######## start of bottom add's ########--> |
np :D
ok for showing just the adds to your visitors and not the table to your registerd users do this Code:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4, 5))"> Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5))"> that should do it for you just copy that big code as I have set it all for you |
cheers mate :)
works a charm |
np mate dont forget to click install :D
|
installed!
|
Thanks mate :D
|
Work for 3.6.0 ????
|
I havent tried but I dont see why not as there is no mager code used, if you try please tell us :)
|
Work for 3.6.0 ;)
|
great thanks for telling us :D
|
nice hack, had no problems installing it in 3.6.0
Thanks. |
All times are GMT. The time now is 10:09 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:
|