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','http://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 –

Search the Creators Network

Latest Activity

Brendon R Culliton replied to Yana Ning Support's discussion Product Plan Update
"So I have an idea as to why I suddenly have a bunch of problems on my website. I believe that with…"
1 hour ago
Cindy Dean Mccoy replied to Yana Ning Support's discussion Product Plan Update
"We had a scheduled chat session tonight.  But it is not working for us.  Hope they can get this fix…"
1 hour ago
Brandyn Shepherd replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Chat still is not working. Just says its connecting. Left it open for hours and never connected."
1 hour ago
Brandyn Shepherd replied to Yana Ning Support's discussion Product Plan Update
"Chat still not working. Can't imagine what else might not be working after reading some of the comm…"
1 hour ago
Manuel Adame Jimenez replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"Que es Kyryl Este Escudo Rojo Que la venta al principio ☆ ♡ ♤"
2 hours ago
R. Holley replied to Kyryl_Ning_Support's discussion Our Efforts - Your Feedback
"I've been trying forever to get my site to work on a mobile device just like it does on a desktop.…"
4 hours ago
Janice D Carter replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"Brendan,
Have you sent in a ticket?  Your issue seems to be different than ours"
7 hours ago
Brendon R Culliton replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"Can someone confirm if there is something seriously wrong going on in the back end? For some reason…"
7 hours ago
Brendon R Culliton replied to Yana Ning Support's discussion Product Plan Update
"Can someone confirm if there is something seriously wrong going on in the back end? For some reason…"
7 hours ago
R. Holley replied to Bousal's discussion MOBILE
"This didn't work for me. I'm trying to let anyone use a mobile phone to see our site just as they c…"
8 hours ago
Naveen Jain replied to Naveen Jain's discussion Anyone able to use https for their network?
"Keeping this thread alive as https is very important for us. Is there a timeline or should I start…"
8 hours ago
Kos replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"Just insane"
8 hours ago
Janice D Carter replied to Kyryl_Ning_Support's discussion Our Efforts - Your Feedback
"My feedback is pretty basic.  You expect e to pay for my service and that is very fair.  In return…"
8 hours ago
Janice D Carter replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"My ticket went in 17 hours ago "
9 hours ago
Manuel Adame Jimenez replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"If the crazy horse talks ... connecting ...
☆♡♤"
9 hours ago
Janice D Carter replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"YES!  First thing I do is send emails and a FB chat to NING.  If they don't know there is a problem…"
9 hours ago
Kos replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"I think many just complain here and don't send emails........which is a huge mistake.  The more ema…"
9 hours ago
Janice D Carter replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"LOL, well I am awfully glad you reported it Kos, can we all just combine our tickets and all get ba…"
9 hours ago
Kos replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"Low and behold, look what I just got:
I'm really sorry to hear about your issues with the chat feat…"
9 hours ago
Manuel Adame Jimenez replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"I'll wait ... ☆♡♤"
9 hours ago
More…