![]() |
Adsense as a poster on your forums
So I've been playing around a bit with my new vb board, and figured out how to make it appear as if the "advertiser" has the second post on every page.
You can play around with the code some more to change some of the messages from the ones I have on there (i.e. posts: location:, etc) For kicks, I have the "online" icon set to say "Google is online", so change this tag if you want it to say something else. This was designed for "legacy". I do not know if it works for the new forum layout You can also ad a custom ad "Avatar" as well. Just replace the "<!-- IF YOU WANT TO GIVE THE AD AN AVATAR, BUT IT HERE -->" with the code for the avatar. Add this code to the END of your postbit_legacy template PHP Code:
|
I like that!! Thanks
|
you need to remove 'Keep the site running'. You are not allowed to have any text which asks or suggests to your members or guests to click adsense ads.
|
Thanks.
I replaced it with "Sponsored posting" but you could make it whatever you want. |
This is cool.
|
Thanks. It probably took me about 5 hours (off an on) to go through and figure out what did what. I'm pretty happy with it, though. I can do the same for the posbit normal rather than legacy if enough want it done, though no promises on how long it will take.. lol
|
Great! I'll be using this!
|
The "avatar" spot that I included under the "poster name" is a great place to put something like the google firefox referal icon, ...
|
lol, this is pretty cool, like it :)
might be installing this soon... |
Quote:
|
thanks for saving me the work! i see this someone where was gonna make it :P very nice dude!
|
thanks! does this have support for horizontal user info view also?
|
wasn't this created long time ago? I have seen few sites with it before
|
looks great mate..
|
Quote:
Quote:
|
nice research kall. ahhhhh... the fine print. the fine print always bites you in the arse.
|
Quote:
|
can you make it show like this one?? say if you got a big thread, make it show more then once?
https://vborg.vbsupport.ru/showthread.php?t=106596 |
I'm confused. What fine print does this violate?
Smirky, the same if conditionals that Moparx used will work in the one I did as well. The real difference between the two is that mine is designed to LOOk like an actual post, where his is more of an inserted banner. It's just a matter of which style you want to use. |
thank you nice hack
|
If someone can explain to me what it is about my code that violates google TOS, I will change it so that's it's "legal".
I just don't know what the problem is yet.. Thanks. |
has anyone tried installing it on 3.5.4?
|
Quote:
|
I haven't upgraded to 3.5.4 yet, but I will hopefully tonight or tomorrow. When I do so, I"ll post if it works on 3.5.4 or not. The only thing that might cause a problem is if the variable names changed. If so, I'll have a new version up in a couple of days time.
I am also thinking about making it so that the "post time" for the add shows up as the same time as the first post, and adding the code to cause it to NOT display if there are fewer than 5 posts for a page or something like that.... (I know someone did something like that somehwere---I just have to find it). |
Quote:
Quote:
|
Quote:
p.s works ok on 3.5.4 |
Installed!!
Question: can a conditional be put in so that it does not insert for certain membergroups??? Like an <if> statement or something.... obviously you see i'm not a coder in any way. |
Quote:
PHP Code:
PHP Code:
|
Quote:
They emailed me to advise that presenting the ads in such a way as to make it appear the Google Adsense was a Poster was, in itself, a violation of the TOU. No 'click here' or anything to be seen, just EXACTLY what you have done here. It is against the TOU to make the adsense appear to be a poster. |
Well, if it's against the Google TOU, then don't use it. I will email them to see what they say about it. I read the TOS and didn't see how it violated it, but I could have missed something.
However, I'm sure it could be used for other advertisement purposes... if you use other providers, or the like. |
it isnt agaisnt it, google can bann you with out contacting you, tell you, and replying to your future emails, theres nothing you can do, google adsense is crap full stop, i use this for other adsense sites, far more better. :)
|
What sites would you recommend that are far better?
|
Moparx...what would the if statement be in order to have it check for how many replies are on that page? i.e. so that it shows if you have more than 5 replies on a page rather than more than 5 replies total?
|
Quote:
|
Quote:
PHP Code:
|
smirky, it is NOT porn. So what are the sites?
Moparx.. That conditional sets it for 5 posts or more in the whole thread. I want to do it as 5 posts or more per page. In other words, if the thread has 1 2 3 or 4 posts, no ad is shown, but at 5 or more, then and add is shown. If a thread shows 20 posts per page and there are 21 pages, then page 2 shows 1 posts and 1 add...but I don't want it to show the ad UNTIL there are 5 posts on page 2.... and the same for each subsequent page... Does this have to be done as some kind of formula such as: (last thread number shown on current page) mod (total replies shown per page) >=5 If so, then what are those variables stored as? |
I installed this and it worked fine, but my pages seemed to hang a little before they loaded.So have uninstalled it....
|
Quote:
|
theodonnells, try changing the ad type you are displaying, play around with image vs links vs text and see if any give you faster loading time?
|
i inserted mine and if the quick reply click icon is enabled
the 3rd post qr icon doesnt seem to work.. |
All times are GMT. The time now is 05:47 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:
|