OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

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}
ramon
 
Posts: 926
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests