Welcome to Geeklog Tuesday, October 22 2019 @ 05:54 pm EDT

Geeklog Forums

How remove "Sign up as a New User" from Usermenu?


Anonymous

Anonymous
I am wanting to remove the "Sign up as a New User" line and link from the User Settings and User Menu blocks - I believe that it is possible but cannot find where in the code this is referred to.

I still want the function to register new users (by sending them th link out by email), but just to remove the obvious links to prevent unauthorised people joining (we are a members only site for a charity). I have also amended the config.php which prompts the system to hold new registrations until authorised by Admin as a safeguard.

Many thanks

Anonymous

ironmax

Anonymous
In your language file look for
# lib-common.php

$LANG01 = array(
lang # 59 and comment it out as

PHP Formatted Code

//     59 => "Don't have an account yet?  Sign up as a <a href="{$_CONF['site_url']}/users.php?mode=new">New User</a>",

 


And you will no longer see the sign up link.

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/05
Posts: 103
Location:Turkey
this is very dirty way!
in your config file you can change this option
PHP Formatted Code
$_CONF['disable_new_user_registration'] = false; // set to true to block users.

 

to true.

_KEMAL_

Status: offline

Anon

Forum User
Junior
Registered: 18/10/06
Posts: 21
Thank you for the suggestions - I have gone with the language file option as I still want users to be able to register (when I have sent them an invitation with the link) but do not want visitors to the site to see this.

Would amending the config file mean that registering is completely disabled or would it still be possible directing people directly to the users.php?mode=new page?

Many thanks

Anon

ironmax

Anonymous
Quote by Anon: Thank you for the suggestions - I have gone with the language file option as I still want users to be able to register (when I have sent them an invitation with the link) but do not want visitors to the site to see this.

Would amending the config file mean that registering is completely disabled or would it still be possible directing people directly to the users.php?mode=new page?

Many thanks

Anon


If you change it to false in the config, you will not beable to allow registration at all. Making the change in the language file to just hide the link will allow for registration when sent the direct link. I beleave this is what you are looking for.

All times are EDT. The time is now 05:54 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content