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 Karl Harrison's discussion Deleting Data
"It's also according to what kind of site you run. If your members are contributing ORIGINAL content…"
1 hour ago
JFarrow replied to Peter Matthews's discussion Faceted search for Ning 3.0?
"wonderful indeed it would be"
1 hour ago
JFarrow replied to Garfield Creator's discussion How to make it easy for You Tubers to invite their friends. in Creators Dashboard
"nice one G"
1 hour ago
JFarrow replied to Fire-Tech's discussion 3.0 Tip: Saving Your Newsletters & Other Broadcast Messages While Keeping Them White Label
"nice tip for sure FT....i've been using a combination of codepen.io and Jens editor (mentioned abov…"
1 hour ago
Tyler Durbin replied to alice's discussion Is anyone making money on their Ning network?
"I run a closed membership site that does well.  I run Wordpress on the outside for all the SEO.  My…"
1 hour ago
Curt McClain, Clifford Fleming, Joe Brown and 2 more joined Ning Creators Network
2 hours ago
John Bizley replied to Dixie Redmond's discussion Ning 3 - Saving photos?
"Hi TJ
Here is how I copied full size images out from my network to use in a slideshow so this may h…"
2 hours ago
Luke Jones replied to alice's discussion Is anyone making money on their Ning network?
"Hello :) congratulations on your success :) could you give me tips on how to get more members/traff…"
4 hours ago
Jen replied to Fire-Tech's discussion 3.0 Tip: Saving Your Newsletters & Other Broadcast Messages While Keeping Them White Label
"Nice tip, great idea!"
5 hours ago
TJ @ jQueryHelp replied to Fire-Tech's discussion 3.0 Tip: Saving Your Newsletters & Other Broadcast Messages While Keeping Them White Label
"Very nice tip; thanks FT!"
15 hours ago
TJ @ jQueryHelp replied to Dixie Redmond's discussion Ning 3 - Saving photos?
"Hi Dixie,
Could you provide a link to a photo in one of your groups that I can check out?  I may be…"
18 hours ago
ceri shaw replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Can't beat a bit of philosophy imho :)
I forget who it was that opined that positivism entails pass…"
18 hours ago
CocteauBoy replied to Ning's discussion Update to Product Roadmap and Communication Changes
"STEVE WROTE: "....i find that true positive thinking is accepting the negative and dealing with it…"
21 hours ago
JFarrow is now a member of Creators Dashboard
23 hours ago
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"No problem... i hope you get it sorted out.  Garfield is a whiz at the archiver.."
23 hours ago
steve replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Being into this sort of thing myself, i find that true positive thinking is accepting the negative…"
23 hours ago
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"Thanks Garfield!
I just heard from Ning Support on my ticket an hour ago, and they re going to make…"
yesterday
Garfield Creator replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"Sorry to hear Strumelia. If it's still not working I may have a workaround solution for backing the…"
yesterday
Strumelia replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Everyone has their own approach, including Ning and Glam.  I tend to take a simpler approach:  if I…"
yesterday
CocteauBoy replied to Ning's discussion Update to Product Roadmap and Communication Changes
"I like this suggestion, but there's a fine line between "positive thinking" and delusion. At this p…"
yesterday
More…