Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    Currently, uploading event image from the frontend is not included however you can still add it using the template file forms/event-editor.php and consider looking to the file events-manager/admin/em-event.php at around line 474 which shows the image upload box that you need to add.

    https://wp-events-plugin.com/tutorials/
    https://wp-events-plugin.com/documentation/

    Thread Starter ktib

    (@ktib)

    Works perfectly, thanks!

    for me it doesn’t work.

    I copied this code to forms/event-editor.php in the template folder:

    <div id="event-image" class="stuffbox">
    	<h3><?php _e ( 'Event image', 'dbem' ); ?></h3>
    	<div class="inside" style="padding:10px;">
    		<?php if ($EM_Event->get_image_url() != '') : ?>
    			<img src='<?php echo $EM_Event->image_url; ?>' alt='<?php echo $EM_Event->name ?>'/>
    		<?php else : ?>
    		<?php _e('No image uploaded for this event yet', 'dbem') ?>
    		<?php endif; ?>
    		<br /><br />
    		<label for='event_image'><?php _e('Upload/change picture', 'dbem') ?></label> <input id='event-image' name='event_image' id='event_image' type='file' size='40' />
    		<br />
    		<label for='event_image_delete'><?php _e('Delete Image?', 'dbem') ?></label> <input id='event-image-delete' name='event_image_delete' id='event_image_delete' type='checkbox' value='1' />
    	</div>
    </div>

    The check box to delete an image works.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    we’ll be revamping the submission forms in the coming weeks, if this doesn’t get done once v5 is out in a couple of weeks, bug us about it ??

    Thread Starter ktib

    (@ktib)

    Hi chraema,

    As marcus suggested on the EM Pro forum, add enctype=’multipart/form-data’ in the form:

    <form id="event-form" method="post" action="" enctype='multipart/form-data'>

    The image uploads correctly thanks to that

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    good point ktib, forgot about that….

    Great it works!

    Thanks ??

    I want to edit ‘Default event list format’.Here i want to use placeholder #_EVENTIMAGE, but after adding it, i’ll have to provide image also. Where can i upload these images? In placeholder support is saying that ‘#_EVENTIMAGE -Shows the event image, if available.’

    Ken

    (@something4ken)

    I am having the same issue but it looks like it’s a conflict with Woothemes Canvas theme. When Canvas theme is activated location fields and image browse not showing.

    They show when I use WordPress default theme. Any solution?

    Thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    pretty sure your issues are unrelated to this one, pls create a new topic.

    @rajeshbhujbal when adding an event you’ll see a featured image box on the right collumn in your admin area.

    Ken

    (@something4ken)

    Sorry I meant in the user submitted form. Here’s a screenshot – you can see location fields and image browse are missing:

    See Screenshot

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Events Manager] Add event image from front-end’ is closed to new replies.