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

Kos replied to Fire-Tech's discussion
3.0 Tip: Insert Image Into Signin Page
""
7 hours ago
Anastasia_Ning_Support replied to Fire-Tech's discussion
3.0 Tip: Insert Image Into Signin Page
"Hi there!
Thank you for your patience!
You have already contacted us via LiveChat, but I will leave…"
18 hours ago
Ceddy J replied to Kyryl_Ning_Support's discussion
Changes on facebook, and new instructions how the app should be set up
"Do we have to make new Facebook apps, or can we edit the ones we have?"
Saturday
Philip Voice replied to Kyryl_Ning_Support's discussion
Changes on facebook, and new instructions how the app should be set up
"Sorry for the confusion.
Does this change affect any group pages that we have running or is it just…"
Friday
Matthew Aukai Wright replied to Fire-Tech's discussion
3.0 Tip: Insert Image Into Signin Page
"Yay!!!! Oh one more thing. Can I add random line of members with their sexuality and their location…"
Friday
Fabricio Giugni replied to Fabricio Giugni's discussion
Add Photos location problem.
"Hi Anastasia,
    Thanks for try... What Can I do to make it more easy. Maybe a code button code th…"
Friday
Anastasia_Ning_Support replied to Kyryl_Ning_Support's discussion
Changes on facebook, and new instructions how the app should be set up
"Hi there!
I apologize, but I`m not sure what you mean by "existing pages on Facebook". Are you refe…"
Friday
Anastasia_Ning_Support replied to Fire-Tech's discussion
3.0 Tip: Insert Image Into Signin Page
"Hi there!
I`ve passed your screenshot to Alex, the code will be corrected in the nearest future. Yo…"
Friday
Philip Voice replied to Kyryl_Ning_Support's discussion
Changes on facebook, and new instructions how the app should be set up
"Before I do this...what about exisiting pages on FB we have? Does this process start the page again…"
Friday
Matthew Aukai Wright replied to Fire-Tech's discussion
3.0 Tip: Insert Image Into Signin Page
"Hi there. we can do the second one. I took a screen shot where I will like the picture to be. "
Friday
AMZ replied to Ashish's discussion
Ning 3 - Not hapenning!
"The internet is different from early 2010s. Features aren't going anything. What you need is a stra…"
Thursday
Ashish replied to Ashish's discussion
Ning 3 - Not hapenning!
"Yes, thats not good.... But imagine i am sitting on duck! Not even 10members per week, can you plea…"
Thursday
More…

Meanwhile, you can check our social media channels