Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
Have you ever wanted to add Google Adsense or special content to the bottom of your Forums? This tip will show you how.
Related Tip for Blogs: Add Special Content or Ad to Bottom or Top - All Blogs
This is the type of quality tip you will find in the JenSocial VIP Club, and so much more!
Instructions:
<!-- Special Ad or Content Bottom of All Forum Discussions/ Code Provided by JenSocial.com. Do not remove credit. -->
<div id="tmp_insideforum" style="display:none;">
Your Google Adsense, Content, or Other Ads GO HERE.
</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>
<!-- End Special Ad or Content Bottom of All Forums / Code Provided by JenSocial.com -->
Enjoy!
This is the type of quality tip you will find in the JenSocial VIP Club, and so much more!
Tags:
I think I'm going to bring my forum back.
Thanks Jen!
Hi P,
Great to see you. Sounds like a good plan. Forums can be great.
Best,
Jen
Hi Jen
soz not been in a while great tip i will be sure to add this shortly !
Hope you and family well
Alan
shineonms.com
Hi Alan!
Long time. I've thought about you and family often. I hope Kirsten is doing much better. Hi to Ryan.
Best,
Jen
Hi
i tried this code but somehow the google advert only appears if I have only 1 other google advert present - so cannot have 3 adverts (all in all) but just 2
for the google blog code it worked fine
any help?
thanks
i did further checks and seems the problem is the blog google advert is in conflict with the forum google advert
so my blog google advert is working perfectly
my forum google advert would work perfectly only if i remove the code of the BLOG google advert
somehow the blog google advert is invisible on the forum (so that counts as an advert) plus i have 2 adverts on the side because of this forum advert doesnt appear
but when i remove the code for Blog is appears
anyone else encountered this problem?
You may have just answered an age old question for me, why they work in some places and not others. It had not hit me that Google was considering the ads as being displayed with display:none. But, it makes sense. We need to add an IF statement to test if actually on Blog pages or Forum pages. I'll do this soon as I can. I may be wrong, but thinking that's the answer.
Best,
Jen
yes Jen
it seems that the code from the blog even though not visible in the forum it is still there and still being counted as an advert (google has limit of 3)
i was thinking how about merging the code of forum and blog together into 1 code - this should solve the problem - is it possible?
please if you get a solution kindly let me know as I am really interested in this code
thanks
Hi Joe,
ahhh, actually I remember this being discussed last year. I had a Developer look at the code, and all was well. I think it's sporadic. Here's what seems to be the problem: the display:none is just hiding the ads. But, this doesn't happen all of the time. I will have to edit many many tips. So, thinking about how to do it, and when.
In regards to putting them together, that type of code is offered in VIP Club.
I'll update this discussion when I figure out which way to go on this. Google strikes once again.
Best,
Jen
Hi Jen
I dont think it is sporadic actually it is very consistent - people will not have this problem only if on the page they have a total of 2 google adverts
if you have 2 and want to add the third by this code then will have the problem
to further check this i had removed my other google advert to have only 1 advert per page and both forum and blog codes worked fine - this further supports the above hypothesis
The problem is, how Ning reads the Custom Code Box. Let's say I try to rewrite how this is being done, which I have plans to do. When we add a google ad via Custom Code for above header or footer, we can't do it. Those will have to be done via the Instant Ad Boxes. We can only insert Ads via Custom Code Box, when we can test for the page URL.
I'll keep you posted, but no promises.
Best Regards,
Jen
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 Evelina in Ning 3.0 Aug 27, 2023. 0 Replies 0 Favorites
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.