![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||
Google AdSense (or other) after post...
![]() Developer Last Online: Apr 2013 ![]() ![]() ![]() This modification is in the archives.
I found this cod on vublletin.org and did some customization, I found this very useful and good place for ads.
Show a banner/ad after first (or somewhere else) post, show it to guests | register users | users with less then X posts... This is what I have: - It will show ad/banner after first post on every page (instead of just the first page) but only to guests. Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> Edit postbit or postbit_legacy (depending on which layout you are using) Find:
After ad:
Here is how it will look like: demo ads Here are several other conditions you can use in the above code to show the banner in different places. Simply replace the first "if" statement. ...after the first post on every page (instead of just the first page):
...after the first post, but only for guests:
...after the first post, but only if the thread has at least 2 replies (so you never see a banner and only 1 post):
...after the first post, but only in specific forums (where X,Y,Z is a comma list of forumids):
...after every X posts (replace X with a number):
...after the last post on every page:
...between the last and second to last post on every page (need to move the above code to the very top of the template instead of the bottom, then use the same condition as above):
Please click to "Mark as Installed" Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Show Thread Enhancements Google Adsense / Adbrite Ads Based on Length of First Post | Neutral Singh | vBulletin 3.6 Add-ons | 38 | 08 Aug 2007 18:41 |
Comments |
#2
|
||||
|
||||
Nice one! Thank you.
![]()
__________________
No members have liked this post.
|
#3
|
|||
|
|||
If anyone use some custom code and want to share it let me know and I'll include it in first post.
No members have liked this post.
|
#4
|
||||
|
||||
how is this different then the other 8 billion ones already out there?
No members have liked this post.
|
#5
|
|||
|
|||
I don't know, this is something I was looking for and didn't found so I add it here, if there is thread same as this one, feel free to delete it (anyone who can)
No members have liked this post.
|
#6
|
||||
|
||||
Does vBAd management have something like this... doesn't it?
No members have liked this post.
|
#7
|
|||
|
|||
VBAd doesn't work for me, so I'm editing my templates for inserting ads
No members have liked this post.
|
#8
|
||||
|
||||
Can you add a screenshot ?
No members have liked this post.
|
#9
|
|||
|
|||
added! (it's only visible to guests).
No members have liked this post.
|
#10
|
|||
|
|||
added very handy tips
No members have liked this post.
|
#11
|
||||||||
|
||||||||
If you are displaying ads only to guests you can replace this code:
with this one:
Red part of cod should be replaced with link to a topic where you can explain that if some one register he will see "ads free" forum! No members have liked this post.
|
#12
|
|||
|
|||
thanks..
installed. No members have liked this post.
|
#13
|
|||
|
|||
very nice, thanks.
No members have liked this post.
|
#14
|
|||
|
|||
How would you make it visible only to certain usergroups?
I'd like to make it not visible to admins, mods, and donors. No members have liked this post.
|
#15
|
||||
|
||||
You can try this:
Where X, Y and Z are the IDs of admin, mods and donors. Try it and let me know did it work. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:56.