WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] [Plugin: Events Manager] Anonymous Event Submissions – Is adding an Event Image possible?

[Resolved] [Plugin: Events Manager] Anonymous Event Submissions – Is adding an Event Image possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • OOOOH good news I have the solution for you:

    First, make sure the form on line 57 looks like this (note the enctype attribute)

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

    Paste the following code at line 324 of /events-manager/templates/event-form.php:

    <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' />
    				</div>
    			</div>
    Plugin Author Marcus

    @netweblogic

    note that you can do this upgrade-safe by using template files (see our site docs).

    the plan is to add options to enable/disable bits of the form (hence it’s still beta)

    Hey Marcus,

    That’s a great suggestion. I’ve followed your instructions here:
    http://wp-events-plugin.com/documentation/using-template-files/

    However, for one reason or another the files are not being overridden by the ones I copied to my theme directory. I preserved the folder hierarchy, and only copied one file, event-form.php into /mytheme/plugins/event-manager/templates/templates/event-form.php

    Any idea why?

    As usual solved it on my own — don’t put it two /templates/templates deep, just /templates

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Events Manager] Anonymous Event Submissions – Is adding an Event Image possible?’ is closed to new replies.
Skip to toolbar