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

Votes: 0
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

Alex - Rosas † Negras replied to Suave's discussion
I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
"if you need I'm here, if you look in my discussions you will also find the playstil"
Friday
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
What is going on with Ning? What Do We have to Look Forward To?
"Bizz ⚡JFarrow⌁ 
I'm sorry that many like us have worked so hard and given up, but at least I'm…"
Friday
⚡JFarrow⌁ posted a discussion
Back in the day, this community was jumping with activity.   But since the Ukraine war broke out we…
Friday
⚡JFarrow⌁ and Truebook are now friends
Thursday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I want to thank JOHN BIZLEY ( BIZZ) for his invaluable help, active icons on the Ning bar,CODES ADDED
"A thousand thanks"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
"Pam Givens this is an example i created of an old 3.0 site"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
""
Tuesday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
Sorry for my absence
"Pam Givens hi my friend, yes everything is ok a big hug"
May 19
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
Ning Creators Sound Off: Share Your Network
"⚡JFarrow⌁  hi my bro! the situation is sad, Biz and all the programmers are missing, once we all…"
May 19
Alex - Rosas † Negras and Truebook are now friends
May 19
Melissa V updated their profile
May 7
conversor de letras updated their profile
May 7
More…

Meanwhile, you can check our social media channels