This is a simple yet potentially lucrative tip to insert Google Adsense or Yahoo/Bing Ads (or anything really) after the first paragraph (defined by <p> tags) in all content in forum or blog posts (including member posts).
ADS IN BLOGS:
Click to enlarge previewHere is the script to insert adverts under the first paragraph in BLOG POSTS. The red script will need to be replaced with your own Google Adsense or Yahoo/Bing ads script.
Put it in your custom code box:
ADS IN FORUM POSTS - same as above but use this code and change the red script.
I have tested this pretty thoroughly and only come across a couple of instances where the ads weren't where I expected them to be. 95% of the time they are after the first paragraph, assuming that the html generated in the content has the correct <P>tags.
If your ads are not going to fill the width of the page, for example if they are 200px wide, and you want the following paragraph to wrap around the advert then add this css to your advanced css section:
If you want to remove the 'Continued after the jump wording then delete <p style="font-weight:bold;">Continued after the jump ....</p></br> from the code above.
Play around with it and see how you get along.
I have no way of testing yet <!-- Insert Ads INSIDE Forum Posts by SweetPotato --> since I am moving my PLus Site into a Mini, in order to make the Mini a PLUS Site and get rid of the old one. I do not planned to spend twice.
I will let you know how it looks <!-- Insert Ads INSIDE Forum Posts by SweetPotato --> in the new site.
The Mini will change into PLUS when I reach 140 and 2 days before invoicing on the old I will get rid of it.
SP, I tried it out and it is working great. Would you know how to append an ad to the bottom of a video? For example, in the space you would use to add descriptive material about a video?
hey that is a very nice tip!
please do have a code that makes advert on forum/blog appearing at the bottom of the first post rather than after the first paragraph?
thanks for the link
when i placed the code as it is on the page - i got the text in in the right position but when i replaced the text with adsense code (to have advert appearing ) it didnt work :S
thanks but that is only for forums - i want the code for blog posts
oh thanks a lot!!! that was very nice of you!
i placed both forum and blog codes in my custom code page
Blog google adverts are appearing okay but forum google adverts only appear if i remove the code for the Blog - seems there is a conflict
anyone else encountered this problem?
Thanks a lot SweetPotato, working fine on Blogs and Discussions.
I want to use the same on pages too as my network is content based and pages are most important. Please suggest........