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 Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Latest Activity

Anthony Reardon replied to Kyryl_Ning_Support's discussion
Just Launched! Paid Access feature for the beta-test group
"Hi there Ning Team,
I will be interested in reconciling my expectations for this feature with you.…"
41 minutes ago
Ning via Facebook

Choose the content which will be the most valuable for your online community! There are lots of…

Trish Urquhart replied to Kyryl_Ning_Support's discussion
Servers maintenance
"Thanks!"
4 hours ago
Luis Fraguada replied to Luis Fraguada's discussion
User Images Missing
"Dear Kyryl,
Thank you for the reply.
if you provide an example as well that would be just perfect…"
5 hours ago
Kyryl_Ning_Support replied to Luis Fraguada's discussion
User Images Missing
"Hi Luis,
Thanks for your question.
During the renovation of the hardware, the file removal system h…"
5 hours ago
Kyryl_Ning_Support replied to Jennifer Peterson's discussion
Shout out to Ning Team
"Hi Jennifer,
I have been touched with the words you have written, I'll definitely share the link to…"
5 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Servers maintenance
"Hi Trish,
I have pinged developers once regarding this issue, if I would have an ETA I'll definitel…"
5 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Audio feature
"Hi, Javier!
No, unfortunately, members of the network are not able to upload their tracks using the…"
6 hours ago
More…

Meanwhile, you can check our social media channels