![]() |
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
|
All times are GMT. The time now is 05: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:
|