Welcome to Geeklog, Anonymous Monday, January 30 2023 @ 10:08 am EST

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
 Quote

ironmax

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

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

Text 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.
 Quote

Status: offline

kemal

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

 

to true.

_KEMAL_
 Quote

Status: offline

Anon

Forum User
Junior
Registered: 10/18/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
 Quote

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.
 Quote

All times are EST. The time is now 10:08 am.

  • 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