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 –
 

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

Kyryl_Ning_Support replied to Annabel Gregory's discussion
Failure to create links or embed images
"Hi Annabel,
Yep, sorry it seems that the new text editor button to embed the photo etc. provoking t…"
7 minutes ago
Elizaveta, Laura Beatriz Alves Dornel, Denise Lopes and 5 more joined Ning Creators Social Network
2 hours ago
Ning via Facebook

Especially for you - 25 books about business for frosty but cozy winter evenings. Just…

Tom Whelan replied to Fabricio Giugni's discussion
Please limit the Photo upload per day
"Wow, if members are allowed to upload like 100 photos per day (whether they get any 'point's for th…"
16 hours ago
Ning via Facebook

Everyone of us at least once in our lives has broken promise to start sporting. But you can…

Thiago Santos de Moraes replied to Thiago Santos de Moraes's discussion
All themes on the NING page
"Ok, but I´m just asking for all themes of Ning 3.0, not the 2.0 themes."
20 hours ago
Annabel Gregory replied to Annabel Gregory's discussion
Failure to create links or embed images
"I am using Firefox, and when I create a post and click on any of the icons to create a link, add an…"
21 hours ago
Annabel Gregory replied to Annabel Gregory's discussion
Problem with search feature
"Many thanks.
 "
21 hours ago
Kyryl_Ning_Support replied to Annabel Gregory's discussion
Problem with search feature
"Hi Annabel, 
I have tested your network and yes it seems that the latest forum post doesn't appear…"
22 hours ago
Kyryl_Ning_Support replied to Paul Corona's discussion
NING 2 and Chrome
"Hellol,
Yes, Paul, that is a message from your browser, I guess somewhere on that page you have the…"
22 hours ago
Kyryl_Ning_Support replied to Thiago Santos de Moraes's discussion
All themes on the NING page
"Hi Thiago,
The list of themes is you have mentioned would be updated with the new themes, however a…"
22 hours ago
Kyryl_Ning_Support replied to Annabel Gregory's discussion
Failure to create links or embed images
"Hi there!
Could you please describe what is happening on your side, I mean what do you see, any cha…"
23 hours ago
More…

Meanwhile, you can check our social media channels