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

Respected forum members,

I am looking for a modified Version of a Code to Display Advertisement at the Last Portion of a Blog Post in Ning 2.0 Site. I have the following code from Jen Social that work perfectly in forum, but I need to work it for blog too.


<!-- Forum Ads: Last of Text from Jen Social -->
<div id="tmp_insideforum" style="display:none;">
<!-- Advert Code START -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- www.lislinks.com Text Image Within Blog Forum Text -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-9711062785467613"
data-ad-slot="3409578779"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!-- Advert Code END -->
</div>
<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$(".xg_widget_forum_topic_show div.discussion div.description").after('<div id="insideforum"></div>');
var t_insideforumCode = document.getElementById('tmp_insideforum');
var insideforumCode = document.getElementById('insideforum');
insideforumCode.innerHTML = t_insideforumCode.innerHTML;
}
</script>

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

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • try adding class .xg_blog_mypage .postbody

    x$(".xg_widget_forum_topic_show div.discussion div.description,.xg_blog_mypage .postbody")

    • Sir, I appreciate your desire to help me out. However, I have no idea about coding, so unable to do anything. I have added the following code, but it does not work out.


      <!-- Blog Ads: Last of Text -->
      <div id="tmp_insideforum" style="display:none;">
      <!-- Advert Code START -->
      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
      <!-- www.lislinks.com Text Image Within Blog Forum Text -->
      <ins class="adsbygoogle"
      style="display:inline-block;width:336px;height:280px"
      data-ad-client="ca-pub-9711062785467613"
      data-ad-slot="3409578779"></ins>
      <script>
      (adsbygoogle = window.adsbygoogle || []).push({});
      </script>
      <!-- Advert Code END -->
      </div>
      <script type="text/javascript">
      if (typeof(x$) != 'undefined') {
      x$('.xg_widget_profiles_blog_show div.discussion div.description,.xg_blog_mypage .postbody" .xg_headline').after('<div id="lastofblog"></div>');
      var t_insideforumCode = document.getElementById('tmp_insideforum');
      var insideforumCode = document.getElementById('lastofblog');
      insideforumCode.innerHTML = t_insideforumCode.innerHTML;
      }
      </script>

      http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
  • Hello Badan,

    Try that code:

    <!-- Forum Ads: Last of Text from Jen Social -->
    <div id="tmp_insideforum" style="display:none;">
    <!-- Advert Code START -->
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- www.lislinks.com Text Image Within Blog Forum Text -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:336px;height:280px"
    data-ad-client="ca-pub-9711062785467613"
    data-ad-slot="3409578779"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    <!-- Advert Code END -->
    </div>
    <script type="text/javascript">
    if (typeof(x$) != 'undefined') {
    x$(".xg_blog .postbody").after('<div id="insideforum"></div>');
    var t_insideforumCode = document.getElementById('tmp_insideforum');
    var insideforumCode = document.getElementById('insideforum');
    insideforumCode.innerHTML = t_insideforumCode.innerHTML;
    }
    </script>

    Regards,

    Alex

    Ning Team

    http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
    • Sir,

      Thank you so much for the readymade code. It works perfectly. This code was very much important for me to survive as I was not able to recover my Ning 2.0 sites cost by displaying ads. I am sure as within text ads are click more often and my site is based on blog feature, now onwards, I will be able to recover my cost. Thank you so much for your helping hands.

      • Hello Badan,

        You are very welcome.

        Regards,

        Alex

        Ning Team

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Birthday Gift Network updated their profile
Thursday
Birthday Gift Network updated their profile photo
Thursday
Paul Corona replied to Donna MacShoe's discussion
Ning Support phone number for my 20 yr old site
"NING support is useless anymore...I have respnded three times asking questins to a message they…"
Jan 15
Alex - Rosas † Negras posted a discussion
due to personal problems I have not been online anymore, I apologize so much and I am happy to be…
Jan 14
Alex - Rosas † Negras replied to Kos's discussion
Help w/Chat. Ning Support A No Go
"IL PROBLEMA È SEMPRE LO STESSO, NING GLI OPERATORI... DEVONO ELIMINARE I COOKIE SUL VOSTRO SITO"
Jan 14
Vlada replied to Kos's discussion
Help w/Chat. Ning Support A No Go
"I'm no IT expert by any means, but out of curiosity have you tried entering the chat room from the…"
Jan 8
Vlada replied to Eva Libre's discussion
Update, Merry Christmas
"Then add the recent price hike email that Ning has notified to be taking effect soon, I'm not…"
Jan 8
Kos posted a discussion
In November we began to notice Chat "freezing up" and when we would refresh the page, it would…
Dec 27, 2024
Eva Libre posted a discussion
UpdateMerry ChristmasToday I woke up totally frustrated and determined to do something.At the end…
Dec 26, 2024
Eva Libre liked Eva Libre's discussion Ning 3.0 is antisocial!
Dec 25, 2024
Eva Libre updated their profile
Dec 25, 2024
Eva Libre replied to Eva Libre's discussion
Ning 3.0 is antisocial!
"Update
Merry Christmas
Today I woke up totally frustrated and determined to do something.
At the…"
Dec 25, 2024
More…

Meanwhile, you can check our social media channels