?
avatar c3ph3us
c3ph3us
27 Apr 2017

i didn't found nothing in current joomla options that can be setup to allow such scenario:

  1. create menu entry - registration
  2. disable registration ( for example temporary )
  3. user click on register link and is redirected to login page
  • i don't want remove registration link or substitute link with article
  • instead that i want the user be informed that registration is temporary suspended when i disable registration in settings
  • so i request a feature to add place to setup link / article with info for user in such case
avatar c3ph3us c3ph3us - open - 27 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 27 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Apr 2017
Category Authentication
avatar richard67
richard67 - comment - 27 Apr 2017
  1. Create the article which tells that registry is temporarily disabled.
  2. If you do not have such yet, create a hidden menu, means a menu not shown anywhere on the site.
  3. Create a single article menu item in this hidden menu which points to the article created in step 1.
  4. Use the redirect component to redirect from your register link's URL to the IRL of that single article menu. You can disable this redirect if no longer needed.

That's what I would try, I have not tested that yet. And maybe there is an easier way doing that without the hidden menu.

But I think that should work.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15636.

avatar richard67
richard67 - comment - 27 Apr 2017

This issue should have the "Feature request" category.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15636.

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Apr 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Apr 2017
Category Authentication Authentication Feature Request
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Apr 2017

@richard67 "Feature request" is set on Issue Tracker.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Apr 2017

A hidden Menu isn't necessary, set "Display in Menu" on "No":

bildschirmfoto 2017-04-28 um 07 46 06

avatar brianteeman
brianteeman - comment - 29 Apr 2017

In addition to @richard67 suggestion you could also do a template override for the login module and add a link to your article explaining that registration is temp unavailable in there.

This is not something suitable for inclusion in the core of Joomla.

avatar brianteeman brianteeman - change - 29 Apr 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-04-29 04:28:27
Closed_By brianteeman
avatar brianteeman brianteeman - close - 29 Apr 2017
avatar richard67
richard67 - comment - 29 Apr 2017

@brianteeman well, the override he can't enable or disable from backend, with the redirect he can, that's why I proposed my solution. But with that solution it still requires 2 steps to disable registration: 1. disable registration, and 2. enable my redirect. So I think in fact it could be a useful feature to have a functionality similar to the offline message also for disabled registration, having a redirect from registration link URL to the disabled registration message only in case of disabled registration, being enabled or disabled by enable or disable registration. I just wanted to provide a workaround and think this here is a valid feature request.

@c3ph3us So the workaround is to add the article with the message text, then create a menu item for that, then add that menu item to an existing menu with option"display in menu" = No in the menu item, then add a redirect from registration URL to article URL in the redirect component, and then always when you disable registration you als enable that redirect.

avatar richard67
richard67 - comment - 29 Apr 2017

@c3ph3us ah, well, @brianteeman is right, an override is the better solution: you can check with PHP code if registration is enabled or disabled in the overridden PHP script of the login module (or wherever your registration link appears), and depending on the result of that check let the URL of the registration link be the one of the registration page or the registration disabled message article. All done in that PHP code. The you have a 1 click solution: Disable or enable registration, no further action necessary in opposite to my (too complicated) workaround.

Add a Comment

Login with GitHub to post a comment