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

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://storage.ning.com/topology/rest/1.0/file/get/1070181?profile=original');
});
</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 –
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

⚡JFarrow⌁ posted a discussion
If your Ning site has a dark theme, you may be scratching your head wondering how to make the text…
yesterday
Fabricio Giugni replied to Fabricio Giugni's discussion
Blog help needed.
"Hi JFarrow,
Thanks for helping. I don't know much about codes. How to add class="align-left" to the…"
Friday
Fabricio Giugni replied to Fabricio Giugni's discussion
Blog help needed.
"Hi Bizz, 
Thanks for helping. It happen with Image as well. Here is the linkhttps://gplay.com.br/bl…"
Friday
Fabricio Giugni replied to Fabricio Giugni's discussion
Website is too slow. How can I fix it?
"Hi JFarrow,Is there any way to compress and reupload my member's content? All Those Photos are from…"
Friday
⚡JFarrow⌁ commented on Ana Massien's blog post FREE SSL Certificates
"agreed"
Thursday
⚡JFarrow⌁ replied to Fabricio Giugni's discussion
Website is too slow. How can I fix it?
"My 2 cents...
Try to minimize the amount of images loading on the home page...
You dont seem to hav…"
Thursday
⚡JFarrow⌁ posted a discussion
I've been creating topics pages inside my community and if you are doing something similar, having…
Thursday
Fabricio Giugni posted a discussion
Hi there,``My networks are not doing well. How can I fix it? Basically there is just what Ning prov…
Thursday
Anastasia_Ning_Support posted a discussion
2020 is right ahead, and it’s time to make plans, envision further achievements, and take new chall…
Thursday
⚡JFarrow⌁ replied to Unpwn Producer's discussion
I need to secure my site
"Here are the simple steps but you may want to get someone to help you.
Go to cloudflare.com and sig…"
Wednesday
Unpwn Producer replied to Unpwn Producer's discussion
I need to secure my site
"Whatever makes my site not show "not secure" on the browser. Sorry, I'm not familiar with web stuff…"
Wednesday
Trị Sẹo Lồi liked Fabricio Giugni's profile
Jan 15
More…

Meanwhile, you can check our social media channels