event image - FORUM - Ning Creators Social Network2024-03-29T11:28:17Zhttps://creators.ning.com/forum/topics/feed/tag/event+imageTIP: TURN OFF REQUIRED EVENT IMAGE AND USE THE DEFAULT ONEhttps://creators.ning.com/forum/topics/tip-turn-off-required-event-image-and-use-the-default-one2021-01-10T23:13:43.000Z2021-01-10T23:13:43.000ZBizzhttps://creators.ning.com/members/Bizz208<div><p>Been meaning to get around to this as it has been requested. What this does is turn of the required event image when creating one and so leave the default one provided. In part two I will show how to add your own default one in another tip.</p><p>You can see how the default image looks in the images below. or you can visit my site here to see a live preview <a href="https://jr-images.ning.com/events" target="_blank">https://jr-images.ning.com/events</a></p><p>So first off all you will need to edit the code if you have called your events page something else, if you left it as events then you just need to add the code as it is.</p><p>So if you named your events page to something else then you need to add your page name by replacing the part in bold, so if you called it something like our events then you would enter this</p><p>.page-our-events</p><p>Notice the hyphen's to replace the spaces</p><p>So here is the part you need to change in the code block</p><p>x$(' <strong>.page-events</strong> .entryEditPage #entry-form ')</p><p><strong>So here is the code you need to add and you add this to your Social Site Manager > Custom Code > end of page section ( do not include this line with the code )</strong></p><p> </p><p><script><br />// Remove Image require in events, change to default image<br />x$(document).ready(function(){<br />x$('.page-events .entryEditPage #entry-form').attr('data-image-required','false');<br />});<br /></script></p><p> </p><p>And here are some demo images of how it would look with the default image</p><p>ACTIVITY FEED</p><p><a href="{{#staticFileLink}}8409899081,RESIZE_930x{{/staticFileLink}}"><img class="align-full" src="{{#staticFileLink}}8409899081,RESIZE_710x{{/staticFileLink}}" width="710" alt="8409899081?profile=RESIZE_710x" /></a>AND THE EVENT ITSELF</p><p><a href="{{#staticFileLink}}8409899653,RESIZE_930x{{/staticFileLink}}"><img class="align-full" src="{{#staticFileLink}}8409899653,RESIZE_710x{{/staticFileLink}}" width="710" alt="8409899653?profile=RESIZE_710x" /></a></p></div>