Version: 1.00, by Keyser520
Developer Last Online: May 2009
Version: 3.5.3
Rating:
Released: 02-21-2006
Last Update: Never
Installs: 85
No support by the author.
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
<div class="smallfont"><div class="smallfont">Sponsored posting</div></div>
<div class="smallfont">
<br />
<!-- IF YOU WANT TO GIVE THE AD AN AVATAR, BUT IT HERE -->
</div>
<!-- icon and title -->
<div class="smallfont">
<if condition="$post['title']"><strong>Sponsored...</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
<!-- message -->
<div align="center">
<!--PUT YOUR ADSENSE CODE HERE -->
</div>
<!-- / message -->
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).
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.
It is fine now since you changed the wording that was used earlier
Quote:
Originally Posted by Keyser520
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).
The link to one of my templates in this thread has the code to do it if you want to use it.
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.
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.
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.
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.
Have you asked Google if presenting the ads in this way violates their TOS?
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.