Preventing user registration - disable registration

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

Preventing user registration - disable registration

Postby ramon » Mon Apr 05, 2010 12:54 pm

Hello all,

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}

Return to “OCS Technical Support”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest