Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

NC for Hire

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:

<!-- Insert Ads INSIDE Blog Posts by SweetPotato -->
<div id="ad_after_jump" style="display:none;">
<!-- Advert Script START -->
<script id="mNCC" language="javascript">  medianet_width='200';  medianet_height= '200';  medianet_crid='45454545';  </script>  <script id="mNSC" src="http://contextual.media.net/nmedianet.js?cid=4545454" language="javascript"></script>
<!-- Advert Code END -->
</div><script type="text/javascript">if (typeof(x$) != 'undefined') {  x$('.xg_widget_profiles_blog_show .postbody .xg_user_generated').find('p').eq(0).after('<p style="font-weight:bold;">Continued after the jump ....</p></br><div id="ContentAdverts"></div>');    var inject_SPadverts = document.getElementById('ad_after_jump');    var SPadverts = document.getElementById('ContentAdverts');    SPadverts.innerHTML = inject_SPadverts.innerHTML; }</script>

 

ADS IN FORUM POSTS - same as above but use this code and change the red script.

<!-- Insert Ads INSIDE Forum Posts by SweetPotato -->
<div id="ad_after_jump" style="display:none;">
<!-- Advert Script START -->
<script id="mNCC" language="javascript"> medianet_width='200'; medianet_height= '200'; medianet_crid='54565767'; </script> <script id="mNSC" src="http://contextual.media.net/nmedianet.js?cid=84534343" language="javascript"></script>
<!-- Advert Code END -->
</div><script type="text/javascript">if (typeof(x$) != 'undefined') { x$('.xg_widget_forum_topic_show .description .xg_user_generated').find('p').eq(0).after('<p style="font-weight:bold;">Continued after the jump ....</p></br><div id="ContentAdverts"></div>'); var inject_SPadverts = document.getElementById('ad_after_jump'); var SPadverts = document.getElementById('ContentAdverts'); SPadverts.innerHTML = inject_SPadverts.innerHTML; }</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

More tips

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Replies

  • gud
  • NC for Hire

    This week seems to be getting better. We can say tips week. Another great tip. Keep it up SP.

  • Great tip SP. Am curious if i added a picture on the first right side of the blog right next to the first pragraph, wont this code interfere with it. I mean wont the Ad show on the first main/ front page of the network?

    I am surely going to try this tip. It looks great.
    • NC for Hire
      It depends if the image is in the first set of para tags. My advice would be to include the image in the first paragraph aligned left or right so the text wraps around it substantially enough for it to look ok once the code gets injected. But this tip doesn't really factor in all the variables possible. All I can suggest is to try it and see how it looks. My guess is that this tip will be best with inline text ads. Let me know how it goes. Sp

  • Hi SP,

    I saw this from jen and I was wondering if you could combine it with yours so we have one add after the first paragraph and one at the button?

    http://jensocial.com/forum/topic/show?id=2154984%3ATopic%3A477210&a...

    • NC for Hire
      Button or bottom? Either way I'm reluctant to play around with Jen's tip from her site. I'd ask her, especially if you are in her premium group.
      Sp
This reply was deleted.

Search the Creators Network

Latest Activity

Writer Chick {Diane} replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"LOL "
4 minutes ago
Steve C replied to The Ning Team's discussion Update on May Service Disruptions
"We're getting 500 errors again. What a mess."
5 minutes ago
John Bizley replied to John Bizley's discussion My New Project Of Viewing Photos From The Activity Feed
"Just updated this so that clicking on a single image will open it up in the pop up, also if a post…"
28 minutes ago
Philip Parker is now a member of Ning Powered Events
1 hour ago
Kos replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"and they're still sending out those Richard Milligan (feverbee) emails............which I've never…"
3 hours ago
mysticpagan replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"They are quick enough to threaten you with closure though if you miss a payment.......:("
4 hours ago
Jamie Baker replied to Jamie Baker's discussion Kopfans - From Ning 3.0 to Wordpress
"UPDATE - Kopfans just got a makeover! http://kopfans.net"
23 hours ago
Kos replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"That's a sandbox for ya'.  You can shit in it and I doubt they'd even notice.  LMAO"
yesterday
Writer Chick {Diane} replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"Just the other day I got this really fiendish thought. I would start using my sandbox and invite a…"
yesterday
Kos replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"I'm just watching at this point but isn't it hilarious.............their lack of knowledge and foll…"
yesterday
Garfield Archivist replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"What she said. Any concern before being contacted is a waste of time. However, I would definitely r…"
yesterday
Writer Chick {Diane} replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"I am WAY over my storage limit (by 500%)  but I was told via support ticket that if I hadn't been c…"
yesterday
American Energy replied to The Ning Team's discussion Update on May Service Disruptions
"I want to thank you NING for being so awful that you are causing me to look into alternatives. You…"
yesterday
Fabio Colasanti replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"How can I reduce the storage place my network is using?  I added a large number of files and this l…"
yesterday
Kos replied to The Ning Team's discussion Update on May Service Disruptions
"When you do get a person on the phone, it's merely a clerk who may or may not be able to assist you…"
yesterday
Rich replied to The Ning Team's discussion Update on May Service Disruptions
"Well it's been 3 days now and no one from ning has gotten back to me about our sites dismal situati…"
yesterday
Jim Kinson replied to The Ning Team's discussion Update on May Service Disruptions
"What frustrated me is they wouldn't even take a phone call. When the first issue came up, where I c…"
yesterday
Lora replied to The Ning Team's discussion Update on May Service Disruptions
"They won't.... cause that is how they keep you hostage."
yesterday
Sharon replied to Natasha Dyer's discussion Adding a search bar
"Thank you for sharing."
Sunday
Fire-Tech replied to ⚡JFarrow⌁'s discussion Yet Another Ball NING is Dropping
"Pick me up on the way bro.. "
Sunday
More…