Is there a way to prevent/modify the URL of the "Registration" link available on every scheduled conference?
Apparently, OCS will not be used for registration purposes.
Enabling the manual payment, the registration page is enabled.
This almost works, because it displays all registration info, but we are unable to "hide" the "register" button on the page (even though it's disabled, due to the registration dates defined).
Enabling PayPal payment method disables the registration page but not the "Register" link at the bottom menu of the Conference.
I was thinking about adding the registration info on the about page (new items) or a new HTML page on the site (hard to maintain because of page elements - there's no custom page plugin! I'm just thinking about adding this plugin now) which would have all the registration info and link to the outside system to be used.
How difficult would it be to add a "Prevent user registration" on OCS, without changing code?
I managed to do this editing the template, but it's a crude solution for now, for all conferences with a particular URL (using preg_match).
Editing templates/registration/selectRegistrationType.tpl:
- Code: Select all
At the beginning of the file, replace:
<form action="{url op="registration"}" method="post">
With:
{if !preg_match('/enancib/', $schedConf->getPath())}
<form action="{url op="registration"}" method="post">
{/if}
at the end of the file, replace:
<p><input type="submit" value="{translate key="schedConf.registration.register"}" {if !$registrationMethodAvailable}disabled="disabled" class="button" {else}class="button defaultButton" {/if}/></p>
With:
{if !preg_match('/enancib/', $schedConf->getPath())}
<p><input type="submit" value="{translate key="schedConf.registration.register"}" {if !$registrationMethodAvailable}disabled="disabled" class="button" {else}class="button defaultButton" {/if}/></p>
</form>
{/if}
