![]() |
Adsense, different sizes for visitors to members
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 More good news This mod also adds the adverts to the bottom of the read pm page just under the PM msg :up: 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 |
Screen shots here
https://vborg.vbsupport.ru/external/2007/01/13.jpg and here https://vborg.vbsupport.ru/external/2007/01/13.jpg Adding the adverts after the first post insted or as well please do the following After first post ad's: ================================================ Template > postbit_legacy Find: the very bottom of code in template After add: Code:
<!-- Start Google bottom --> Template > postbit Find: the very bottom of code in template After add: Code:
<!-- Start Google bottom --> Thats it that is the codes needed for both post styles after the first post :cool: |
Hi ive added this and it looks quite good!
However, the ads move so that there under the last post... is it possible for me to make it so that they stay after the 1st post?! Thanks JoRd |
Hi I have edited the secound post that will tell you how to do this :)
dont forget to click install :) |
I can't seem to find
Code:
<!-- / post #$post[postid] --> |
did you use the find box and click find?
|
Of course. Doesn't seem to exist in my unmodified, original vB template either. (3.6.2) Hmm. Mod works fine otherwise, just want it after the first post too, still investigating, I might be doing something no0bishly wrong.
|
oooops :( looks like that code isnt there in the new version!!
I will now look for a different cod efor you sorry about this :( |
ok I have changed the secound post and it all words :)
sorry about the problem also I have updated the files, to upgrade just uplaod the new version and tick overwrite then all should change apart from the template you have allready installed :) |
nice mod. everything works but under first post it won't show the add the under the last one it shows but not first help dude
|
please can you show me the website?
also you template on the google adds :) |
Can anyone modify this to display the ads after a post randomly. There is a 3.5 hack that did this very well.
|
if you can show me the 3.5 hack that did that then I might be able to get a little better idea on how they did it, but I would think there is alot of work to be done to get this to do it :)
|
You sure it doesn't violates the Google ToS?
If not, then I think i'll use it. Thanks. |
Quote:
|
Quote:
Tried doing this but it has yet to show after firs post, did anything change on 3.6.4 that affects this? |
please could you post the code for your postbit_legacy and postbit templates, so I can see what these look like :)
|
I cant even import...
Maybe im not doing this right... VB 3.6.4... I go to styles and templates in admin cp... Click download/upload style... Import style xml file (browse to your xml file on my computer) select merge INTO the style I want. select ignore style version. Click import and I get... "invalid file specified" |
thaks :)
|
Quote:
|
by the way this works on the latest version as well :D
|
Very nice, thank you! Installs.
Any suggest for qualifying the display of the banner based on post count within the thread? I run one of the other adsense add-on's which places an add after the first post. If there is only one post in thread the banners are doubled up and a bit much. Thanks for any suggestions. South Fork |
Quote:
I know what you meen but at this time I dont think there is, well not that I know of :( sorry |
Not working with 3.6.8
|
Is there an update for 3.6.8 yet?? I really liked this.
|
The Adsense under the first post dosnĀ“t work for me also :-)
Any hints? I am using vb 3.6.8 Greetz and thx! |
All times are GMT. The time now is 06:07 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|