Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:54 am EST

Geeklog Forums

Forgot password in user functions block


Status: offline

twistedfreak

Forum User
Junior
Registered: 05/08/02
Posts: 29
I would like to add a forgot password? link in the user functions block in the left column and also extend the input fields for username and password. (so they fill the width of the block) but where abouts in the scripts, is this block defined? I can't seem to find it anywhere. Thanx.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
lib-common.php, function COM_userMenu() bye, Dirk
 Quote

David Coletta

Anonymous
I did this by modifying language/english.php. Entry 59's default value is:
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>"

 


I added the following at the end of this entry:

Text Formatted Code

<br>Forgot your password? <a href="{$_CONF['site_url']}/users.php?mode=getpassword">Recover it</a>

 

It's a little odd to see PHP in a language file, and entry 59 is the only one that has any, but since it was already there, it seemed kosher to add to it.
 Quote

Status: offline

Stubdoo

Forum User
Junior
Registered: 03/14/03
Posts: 24
I kept trying this and it kept comming up with an error, then i realised that there were 2 back slashes missing from the code above. Oops!

it now works

cheers
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
You have to escape the double quotes with backslashes.
 Quote

Status: offline

Stubdoo

Forum User
Junior
Registered: 03/14/03
Posts: 24
cheers,
 Quote

David Coletta

Anonymous
I would have liked to include the backslashes, but I can't figure out how. I type them in and they get stripped out.
 Quote

All times are EST. The time is now 08:54 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