Support

Home Forums Ticketing Add-on View events when Required is enabled

View events when Required is enabled

Posted: June 12, 2014 at 9:09 am

Viewing 2 reply threads


Josh

  • Support Staff

June 13, 2014 at 4:19 pm

Hi there,

This can be changed with a bit of PHP template hacking. If you look in the /templates/registration_page.php template near the end you’ll find this code:

//If enough spaces exist then show the form
//Check to see if the Members plugin is installed.
if ( function_exists('espresso_members_installed') && espresso_members_installed() == true && !is_user_logged_in() && ($member_only == 'Y' || $member_options['member_only_all'] == 'Y') ) {
    event_espresso_user_login();
} else {
    //Serve up the registration form
	if ( empty( $path ) ) {
	  require( $template_name );
	} else {
	  require( $path );
	}
}

This can be changed to:

//If enough spaces exist then show the form
//Check to see if the Members plugin is installed.
if ( function_exists('espresso_members_installed') && espresso_members_installed() == true && !is_user_logged_in() && ($member_only == 'Y' || $member_options['member_only_all'] == 'Y') ) {
?>
<div class="event_description clearfix">
		<p class="section-title">
			<?php _e('Description:', 'event_espresso') ?>
		</p>
		<?php echo espresso_format_content($event_desc); //Code to show the actual description. The WordPress function "wpautop" adds formatting to your description.   ?>
		
	</div>
<?php
    event_espresso_user_login();
} else {
    //Serve up the registration form
	if ( empty( $path ) ) {
	  require( $template_name );
	} else {
	  require( $path );
	}
}


pmitriadnc

June 28, 2014 at 7:18 pm

Works great, Thank you.

Viewing 2 reply threads

The support post ‘View events when Required is enabled’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso