Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
I have 2 places that i would like to put google adsense ads that i think would increse revenue. One is on the welcome page that new members see after they join the network. I dont think this should be difficult, i'm just not sure where to go to modify the welcome page.
Second is within the activity feed. This is probably the most visible thing on my network. Just not sure how difficult this would be to get google code into the feed.
Thoughts?
Tags:
Both, tricky. On the welcome page, I would have to join a network to see if the Custom Code Box is even read at that point. You might want to ask Ning. If the Custom Code Box isn't loaded, it's not possible.
On the activity feed, you have to make sure you only show the ad one time, and not multiple times. If you show more than once in any given feed, Google won't display it. I actually wrote this code not long ago, and forget what I decided. =) I'll let you know.
Best,
Jen
Bill,
I wrote the code, and it never worked on my test site. But, not unusual for Google Ad not to show on a test site. The trick is: just adding to the first child of the activity feed, otherwise Google won't display the ads. Here's the code. In theory it should work:
<!-- Insert Special Content - Above Activity Feed -->
<div id="tmp_topaf" style="display:none;">
<!-- YOUR CODE STARTS HERE -->
<center>
your google ad code
</center>
<!-- YOUR CODE ENDS HERE -->
</div>
<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$(".xg_widget_main .feed-story:first-child").after('<div style="margin-left:100px;width:475px;font-size:12px; background-color:#FFFFFF!important; color:#000000; margin-top:15px; margin-bottom:15px;padding:5px;" class="xg_module" id="topaf"></div>');
var t_topafCode = document.getElementById('tmp_topaf');
var topafCode = document.getElementById('topaf');
topafCode.innerHTML = t_topafCode.innerHTML;
}
</script>
<!-- End Insert Special Content - Above Activity Feed -->
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Ning.spruz.com in Ning 3.0 Feb 19. 0 Replies 0 Favorites
Started by Evelina in Ning 3.0 Aug 30, 2023. 0 Replies 0 Favorites
Started by Ning.spruz.com in Ning 3.0 Jan 15, 2022. 0 Replies 0 Favorites
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.