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?

Views: 169

Reply to This

Replies to This Discussion

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

Thanks 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 -->

Hi Bill,

I installed this on JenSocial live site. The ads don't change. Apparently it's not picking up content from the page, but the activity. Not good. I suggest using this code to install another type ad.

Best,

Jen

RSS

Members

© 2024   Created by JenSocial.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Home
VIP Ning Tips