Wallpaper Script Forum » How-To and Troubleshooting

Disable users from registering

(3 posts)
  1. iiyama
    Member

    how can i Disable users from registering or submiting wallpapers, i want only one administrator who is in control, visitors only can view and download.

    any ideas ??

    Posted 3 years ago #
  2. iiyama
    Member

    this forum been helpful to me, and the support is very good and quick, so i am posting the support answer, so other members can know how to do it.

    "For the moment the only way to disable users from registering is to delete register.inc.php and register.tpl in templates folder. And to delete the links referring to these pages."

    Posted 3 years ago #
  3. here is what i got for my question

    quote:

    Hi,

    For now to disable registration you need to comment some code. In the next
    release I am adding a setting in admin to disable registration as I see it
    is a very requested feature.

    If you want to remove the login box from the right:

    If you do want this you need to go modules/usermenublock/usermenublock.tpl

    And delete or comment the following:

    <div class="side-header">{l s='login' mod='usermenublock'}</div>

    <ul class="side-panel">

  4. <form name="loginBox" action="{'login'|url}" method="post">

    • <input class="input-text small" type="text"
      name="username" id="loginUsername" value="{l s='Username'
      mod='usermenublock'}" />
    • <input class="input-text small" type="password"
      name="password" value="{l s='Password' mod='usermenublock'}"
      id="loginPassword" />
    • <div style="float:left; width:80px;">
      <input type="checkbox" name="remember_me"
      id="remember_me_right" value="1" checked="checked" />
      <label class="label-author"
      for="remember_me_right">{l s='Remember' mod='usermenublock'}</label>
      </div>
      <input type="submit" class="button" name="login"
      style="float:right; margin-right:8px;" value="Login" />

    </form>
    {*{l s='Register'
    mod='usermenublock'}
    *}
    <div class="reset"></div>

  5. If you want to disable registration go to templates/default/header.tpl and
    remove the register link

    And then you can delete/rename the templates/default/register.tpl and
    register.inc.php

    Best Regards,
    Adi Agafitei

Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.