![]() |
Adsense Inside the Post
This little template modification allows you to put an Ad inside the post with Text wrapped around the Ad.
See Screenshot. In postbit template replace Code:
<!-- message --> Code:
<!-- message -->
v 1.0.1 :Ads displayed after the first post on every page (instead of just the first page) Tip: To remove quote button for guests. Replace Code:
<if condition="$post['replylink'] Code:
<if condition="$post['replylink'] AND $show['member']"> |
Nice ;) instal
|
Hi, this looks cool. Will adsense show up only in 1st post (thread start) or in all posts? Because I would not like it to show up in all posts. Also, I think that googles rules say that no more than 3 ads per page.
|
Quote:
|
so this actually shows up in the users posts and not in a post of its own?
|
This is a nice modification, but you will run into problems when you or someone at your site uses the "quote" option.
It will screw things up, watch. |
Quote:
Quote:
|
Quote:
|
I See...
|
Quote:
|
For some reason, the ad is only showing in the first post and not the last. I have 2 questions...
1) How can I get this to show in the last post? Update: Ahhh....Google states: "Please place only one link unit on any content page. This number does not affect the current limit of 3 regular ad units on any page - you may still place up to 3 regular ad units in addition to a single link unit on any content page" U 2) If I wanted it to show in every post, what changes are necessary. Answered my own question...there's a limit of 3 Thanks! |
It works great, but QUOTES and IMGs generate undesirable results. I had to uninstall because of this. :(
-- Edit: I'm guessing the only way this mod would work would be if it checks to see if the post contains a quote or an img. If neither of those elements are present, then the adsense code would appear. |
Is there a way to limit the ads to show only if there are greater than X words on that post?
|
Great hack and just in time - have been talking to a Google Adsense rep about optimizing my site, the rectangle in the first post is their top suggestion. And for guests only, this is perfect.
Stupid question: How do I modify it so that the ad is only displayed in the first post and not the last? [installed] |
nice to see u here unitedpanjab :)
looks promising modification.. will use it..if the adsense only shown in last post & shown to every one..& without any conflict along with [quote] & [img] tags..seems it will generate more clicks... clicks install to get future notification/update... |
Did anyone check whether this works with Yahoo Publishers Network YPN?
|
I don't see why it should not work.
|
great hack.
how to put it at the top of the message? The ads is on the middle of the first message, I'd like to put it at the top. Adding vAlign=top ? |
It was a simple install, but it's not working... any ideas? I know that's vauge, but it's just not working?!?
Here is what I have Code:
<!-- / icon and title --> |
no news yet ???
|
Thanks for an excellent mod.
I would like to disable the ad in the last post. What do I need to do?? |
I found this hack and thought it was pretty cool but for my needs, I dont use AdSense so I wanted to be able to put pre-defined, targeted ad tags from AdvertPRO (or AdCycle or PHP AdsNew etc) onto each forum. In other words, if the forum topic is electronics, I only want electronics based ads on those pages, and if the topic of the forum is Cooking, i only want cooking ads to show up. Google Adsense does that automatically by scanning for words on the page but my ad system doesnt
What I did was create a 300x250 ad placement for each form and then i made a large series of if/else commands and it in my postbit (in my case the postbit_legcy). It says "if its this forum, show the corresponding ad". Here is the code for ya'll to check out and use if you want. It's a modified version of unitedpunjab's "Adsense Inside the Post". I always give credit where credi is due! Here be the code. Of course fill in your own ad code that corrsponds with what ads you want to show up in each forum. It's very important that you have the correct number if </if> tags at the end, one for each "if/else". Mine has 17 of em (I only show 4 here). Anyone think this will cause major problems or load issues? <!-- message --> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==1)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #1 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> <else /> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==2)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #2 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> <else /> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==3)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #3 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> <else /> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==4)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #4 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> </if> </if> </if> </if> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> |
Thanks you 2 (guy above me and mod author!
|
Here is a nifty tip to increase your CTR while using this modification.
This ad placement is good to blend in with the post content, but it also, when someone or you make a post, try not to place any links inside the post. For example, instead of using http://www.yoursite.com or www.yoursite.com , just use yoursite.com. This way, the only links available for someone to click on are links to Google Adsense, YPN, or whatever publishing program you use. Keep in mind that you are not forcing others to click your links, you are simply eliminating other "clickable" links while making your publisher links the only "clickable" links inside the post. This is a great modification, thanks. |
I would like to show the ads to guests and registered users (sponsors will not see ads). What would I alter in the code to show ads to registered users as well?
[INSTALLED] |
Replace
Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])"> Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))"> |
Thanks for the quick reply. Your suggestion would have the ads viewable by all visitors regardless of their usergroup. I would like to specify an additional usergroup (guests & registered).
Can you suggest the code? |
Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,XX)"> |
Quote:
For more than one usergroup I would separate by commas? i.e. Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,2,7,12)"> |
will not see the ads..
replace Code:
!is_member_of($bbuserinfo,2,7,12) Code:
is_member_of($bbuserinfo,2,7,12) |
I understand your directions and have used the following:
Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,10,11,12,14)"> Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,12)"> |
My baad.. I did not provide clear direction to the user that was testing for me and they were looking at an ad in the header and reporting that it was still visible. The last code I posted is working well and I am now testing the multiple usergroup version. I will report once it is tested.
Very sorry for the confusion an inconvenience. |
Your posted code suggestions work perfectly. Thank you for your help and again please accept my apologies for the confusion.
|
has a fix for images and quotes been made? I would love to use this but almost all my first posts consist of images being a gaming forum. We heavly use images and quotes
|
I changed the placement of this mod when I applied it. (link to example) With the ad placed under the post, instead of beside it, I have not experienced an [img] or [quote] problem.
|
s.s pha jee
i want to use this mod as adsance in all posts |
Quote:
Adsense doesn't allow more than three Ads on a page,So that wont work. |
but still on soem sites i have seen this they have adsance in header like 2 sets and adsance in posts also
may be they are more smarter kid then me |
nice :) Thanx man :)
|
If this is targeted for guests what about adding text under the ad such as "Register today to remove this ad!" with the Register being a link to the forums registration page?
-Raymond |
All times are GMT. The time now is 06:15 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:
|