- This topic has 1 reply, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘Generic’ is closed to new topics and replies.
Events Made Easy › Forums › Generic › Adding images from front end
I have gotten the event form onto my front end, and have it setup so only users can post. My problem is that I can’t seem to figure out how to get the images to display. I have added the code from em_event.php in the ‘admin’ folder to the event_form.php page, but still have no luck. It works like a charm from the backend, so I’m wondering what I am overlooking. I added this code to the event_form.php:
<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; ?>
<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’ /></div>
Thanks in advance for any help that anyone can offer.
wrong forum, you need the “events manager” forum, this is “Events Manager Extended”