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

Scott Bishop replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"After cache & cookies are cleared my mobile browser wants to open the Ning mobile version "surfer-s…"
4 minutes ago
Scott Bishop replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"Hey George, Everything seems to be working great with this. I have one small issue going on with th…"
52 minutes ago
George H. Compton IV replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Alessandro I really like what you did with your navigation.   "Image tabs" sweet!!!You're welcome I…"
1 hour ago
Dreaming Minds replied to Dreaming Minds's discussion Need tips on selling our Ning network
"Thanks for replying, Kos.
We need admin(s)/moderator(s) who can actively moderate, maintain the mem…"
2 hours ago
Alessandro replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Many thanks George! It worked perfectly!
Here's the preview in my network, I'll adjust some positio…"
3 hours ago
George H. Compton IV replied to Strumelia's discussion Screenshots comparing my OLD and my NEW Network
"Blessings to you as well Strumelia..
 Love the video you two sound great playing together. :-)"
4 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Alessandro, I did write two versions of this for ning 2.0.  This version goes in your design studio…"
5 hours ago
Luke Jones replied to Joe's discussion What Happened to NING?
"Someone needs to buy ning like ASAP!!"
8 hours ago
Joe replied to Joe's discussion What Happened to NING?
"i sent a ticket some weeks ago about my concerns and I remained with no reply
it is not nice that w…"
16 hours ago
Strumelia replied to Strumelia's discussion Screenshots comparing my OLD and my NEW Network
"Thanks... and throwing some sunshine at some of the folks here who have been kind and supportive to…"
20 hours ago
Alessandro replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Thanks George, but you don't need to take your time on writing a new code for me. I asked just in c…"
20 hours ago
Strumelia replied to PeruCool's discussion Alternatives to Ning social network
"Some screenshots of my old and new sites, of interest to those in this thread:
http://creators.ning&hellip;"
20 hours ago
Strumelia replied to FedMedic's discussion Jamroom Question
"Some screenshots of my old and new sites, of interest to those in this thread:
http://creators.ning&hellip;"
20 hours ago
Strumelia replied to soaringeagle's discussion ning vs jamroom
"Some screenshots of my old and new sites, of interest to those in this thread:
http://creators.ning&hellip;"
20 hours ago
Strumelia replied to Paul Asher's discussion Ning3 Member CSV File
"Some screenshots of my old and new sites, of interest to those in this thread:
http://creators.ning&hellip;"
20 hours ago
Strumelia replied to Joe's discussion What Happened to NING?
"Many have left or are leaving. Others are staying and just hoping for the best. You'll get no solid…"
21 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"Thank you Jim. :-)  Sorry I missed your call today. Tomorrow's going to be very busy for me here at…"
21 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Alessandro, I'm sorry I just went to that tip the links on that tip are not working either.  So you…"
21 hours ago
Alessandro replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Thanks George!"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion (tip for 3.0) floating navigation menu & ningbar -- two code formats to choose from HTML or CSS
"Hello Alessandro, I'm not sure what happened to that tip but here's a link to version 2.1.   If th…"
yesterday
More…