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

Forum

This question was asked in the forum about members not having to upload an image for an event and show a default image if they chose not to add an image. So here is a way to do that, I have tested this on IE, Chrome and Firefox and all works. Also added a Latest Activity Module and it works there too.

NOTE: As we are no actually uploading an image a media frame is not created for it in the main activity feed so there will be no image shown there. I am working on a way to add the image for the main activity and will update this post when done.

Below you will see a demo image of the events added not with an image uploaded by the user and so shows the default image I added of the green calendar.

Adding the code

First of all you will need an image you want to display. Once you have one add it to your file manager then copy the link for insertion into the code where it says ADD IMAGE LINK HERE

Next you will have to edit the code and add your site's url replacing the part in bold YOUR URL HERE.

This code goes in your site and pages custom code

<script>
// Remove Image require in events, change to default image
x$(document).ready(function(){
x$('.entryEditPage #entry-form').attr('data-image-required','false ');
x$('img.eventPage-image[src=" Your url here?height=400&width=400&crop=1:1"]').closest ('.eventPage-image').addClass("noImage");
x$('.eventPage-image.noImage').attr('src',' ADD IMAGE LINK HERE ');
});
</script>

This is how it should look when done

<script>
// Remove Image require in events, change to default image
x$(document).ready(function(){
x$('.entryEditPage #entry-form').attr('data-image-required','false');
x$('img.eventPage-image[src="http://bizzssite.ning.com?height=400&width=400&crop=1:1"]').closest ('.eventPage-image').addClass("noImage");
x$('.eventPage-image.noImage').attr('src','https://api.ning.com/files/8u9*hkKvZQTPOzjRk0tYJjwOiykjQ36cHuRZtESh-ixKD8CNaVNApgT25qi1s0q*2dMrlZDF0WoaKUGqxO7HZK426A3LkNFg/textcalendar.png');
});
</script>

DEMO IMAGE

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

Join Ning Creators Network

Email me when people reply –

Search the Creators Network

Latest Activity

Kos replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"What, in 2.0 themes, do you want Tony?  Most can be replicated with simple CSS.  Can you be more sp…"
1 hour ago
Kos replied to Bizz ( John )'s discussion Ning: Is it possible to enable the comments form on posted videos like we can for photos in activity feed.
""
2 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Videos Playing In Activity Feed, check it out on my site, Now shows photos to ( Updated: 27-04-17 )
"Added some more updates on this so it works with photos now also."
2 hours ago
Tim Frank replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Thank you for the answer. My only regret is that it took just short of a month to get an empathetic…"
5 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Thanks, John,
I have posted the info about the fix of the embedded videos under more appropriate po…"
7 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"Yes I noticed that but I don't think that's a big issue as at least the embeds are working now and…"
7 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"Hi John,
Yes you are right the issue with embedded videos has been fixed, however, it's only workin…"
7 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Thanks for the update Kyryl, and I also see the embed videos images have also been fixed up. Nice w…"
8 hours ago
Tony Rosa replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, i like it because some Ning 2 themes are very useful to some networks like for example Urban Te…"
8 hours ago
Kyryl_Ning_Support replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, Tony!
As I know the new themes are not in the plan in Q2, but I'll post the suggestion to creat…"
8 hours ago
Kyryl_Ning_Support replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, Tim!
We do apologise for the misunderstanding, unfortunately, our ticket system could have clos…"
9 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Hi, John!
The issue with the picture on the buttons in widgets in the design studio has been resolv…"
9 hours ago
Sarah Kerkman and Max G joined Ning Creators Network
9 hours ago
Ning via Facebook

#unitewithNING #social Facebook and Twitter popularity is the well-known fact. Nothing keeps…

Tim Frank replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"I am really happy that Ning is moving forward again. I hope that some of the improvement will focus…"
20 hours ago
Tony Rosa replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi,
In Q2 will there be the opportunity to choose between old themes similar to Ning 2 or similar?"
yesterday
Lizbeeth Yariela Santiago is now a member of Ning Creators Network
yesterday
Erika Hoff Holmgren replied to Erika Hoff Holmgren's discussion How do I edit my opening posts on the forum? Sticky options?
"OH, I finally realized what my problem was. I had managed to hide the buttons under my menu =u=; It…"
yesterday
Bizz ( John ) replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"Well I do believe this has been fixed now. Just added a video via an embed from youtube and the ima…"
yesterday
Bizz ( John ) replied to Bizz ( John )'s discussion Videos Playing In Activity Feed, check it out on my site, Now shows photos to ( Updated: 27-04-17 )
"Thanks, will share it once I get a few little options finished like adding it's own comment contain…"
yesterday
More…