Hi
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 preview
Here 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:
#ContentAdverts{
width:220px;
float:left;
margin-right:15px;
}
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.
Enjoy
SP
Tags: , Insert, , , Paragraph, , Paragraph, Paragraph, Adverts, Adverts inside Blogs, Forum", Insert Adverts in Content after the First Paragraph, Paragraph, Paragraph", inside
Permalink Reply by Macandy Agha on March 12, 2013 at 12:35am Try using it on my site, it doesn't display, and may i ask, can members insert their own ads lets say in their blog posts or forum posts with this. Does it also work for comments. Thanks
Permalink Reply by Imran Baloch on May 24, 2013 at 11:12am nice I am surely going to try this tip. It looks great.
Permalink Reply by amrit B on May 26, 2013 at 5:38am Hi SP. Thanks for ur great tips. Do you know how to put similar codes in photo and video section and in profile section?
Rowald replied to Monica Diaz's discussion 'How are you using member categories in Ning 3.0?'
caro commented on kid k's group 'Ning French Networks'
caro commented on kid k's group 'Ning French Networks'
caro commented on kid k's group 'Ning French Networks'
Thiago Santos de Moraes replied to Elshara Silverheart's discussion 'More Feature Requests'
Troy Marquis replied to Andrew Sanderson's discussion 'Video chat for ning network'© 2013 Created by Ning.
