Author Topic: how to disable user registration  (Read 5940 times)

0 Members and 1 Guest are viewing this topic.

Offline the_phet

  • Pre-Newbie
  • Posts: 3
    • View Profile
how to disable user registration
« on: December 10, 2008, 04:09:24 PM »
Hello, I want to disable user registration and create users only from the control panel (can the admin create users from the control panel?)
I only want a few users, it's not for a public gallery.
I cant find where in the configuration to disable it.
thanks!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: how to disable user registration
« Reply #1 on: December 10, 2008, 04:52:50 PM »
Hello and welcome to 4images forum.

What you'll need to do is remove
Code: [Select]
<a href="{url_register}">{lang_register}</a> from user_loginform.html template
This should be sufficient, but also you can go further and delete register.php file from 4images root
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline the_phet

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: how to disable user registration
« Reply #2 on: December 10, 2008, 07:39:51 PM »
thanks! I thought where will be a more automatic way but that seems ok.
how can I add user from control panel?
can I move register.php to registerSOMETHING.php in order to just me know where the register webpage is? will it work?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: how to disable user registration
« Reply #3 on: December 11, 2008, 02:32:50 AM »
Sure you can.
in ACP (Admin Control Panel) on left side you should see link Add User.

As of renaming register.php it will work if you are not planning activate new users via email (the setting is in the ACP settings) I don't see why you would need this though.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline the_phet

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: how to disable user registration
« Reply #4 on: December 13, 2008, 01:28:33 PM »
thanks! that's what I needed