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

Poppili replied to Poppili's discussion Urgently looking for a designer to improve my Ning website design
"your website looks great..
I guess I'll have a deeper look at the design studio
do you do design fo…"
50 minutes 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 )
"Well this is all working really nice now especially the photos, give it  a try. Click on a photo in…"
4 hours ago
Bizz ( John ) replied to Poppili's discussion Urgently looking for a designer to improve my Ning website design
"Just thought I would say that the new Ning Team are going to be updating the themes as mentioned in…"
4 hours ago
George Swann replied to Poppili's discussion Urgently looking for a designer to improve my Ning website design
"Looks relatively straightforward to me.  I have a couple of friends with current Wix sites that do…"
7 hours ago
Naveen Jain replied to Dan Lee's discussion I Will Design Your Ning Network To Make it Look More Professional
"Do you have example of ning site that you have designed?"
9 hours ago
Kos replied to Poppili's discussion Urgently looking for a designer to improve my Ning website design
"Good luck w/that.  Been there; done that.  Never again"
9 hours ago
Ning via Facebook

#createwithNING #plan Need publicity, fans and high life? Follow your dreams with really great…

George Swann replied to Poppili's discussion Urgently looking for a designer to improve my Ning website design
"Poppili, you're right about our sites needing to have a fresh modern look.  Need things to both loo…"
12 hours ago
George Swann replied to Dan Lee's discussion I Will Design Your Ning Network To Make it Look More Professional
"Deeday won't even let you see the source code...definitely not ning...lol
Bearcreek looks like a wi…"
13 hours ago
Kos replied to Poppili's discussion Urgently looking for a designer to improve my Ning website design
"Poppili You might want to post this over at the Hire a Creator group. "
15 hours ago
Dan Lee replied to Dan Lee's discussion I Will Design Your Ning Network To Make it Look More Professional
"No it not."
yesterday
Dan Lee replied to Bizz ( John )'s discussion Adjusting Your Videos List Page Metadata Section Colours
"THIS CODE DIDN'T CHANGE THE COLOR FOR MY SITE"
yesterday
Dan Lee replied to Bizz ( John )'s discussion Adjusting Your Videos List Page Metadata Section Colours
"OK, I FOUND IT :)"
yesterday
Alliance replied to Dan Lee's discussion I Will Design Your Ning Network To Make it Look More Professional
"http://deeday504.com/ is a NING site?"
yesterday
Bizz ( John ) replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"Here you go Dan this should fix you up
http://creators.ning.com/forum/topics/adjusting-your-videos-&he...;"
yesterday
Dan Lee replied to Dan Lee's discussion I Will Design Your Ning Network To Make it Look More Professional
yesterday
Hantz Jeanlouis is now a member of Ning Creators Network
yesterday
Traddie replied to Dan Lee's discussion I Will Design Your Ning Network To Make it Look More Professional
"Do you have examples of other sites you have designed?"
yesterday
Bizz ( John ) replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"I have a fix for this. Will post it as a tip when home later this evening.
John :-)"
yesterday
More…