Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 12:19 pm EST

Geeklog Forums

Trying to customize the user Login Creation...


Status: offline

zewt

Forum User
Junior
Registered: 04/02/05
Posts: 18
caffeinated
I am attempting to hack the user creation form to add a field called "secret password".

The purpose is to only allow people that know the secret password to register.

My PHP skills are pretty strong, but not my template skills.

If anyone can give me some pointers on where to look and I need to change I would be most appreciative.

I suspect I need to modify the template.class.php file but this is only from my cursory examination.

Question
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Search for "custom registration".

bye, Dirk
 Quote

Status: offline

zewt

Forum User
Junior
Registered: 04/02/05
Posts: 18
I understand that part about customizing the Login to add additional fields. But I am looking for something different.

I want to have a field where the user needs to enter a password that is required to complete registration.

So if they do not know the password they cannot register.

And I do not see exactly how to do something like this.

I am trying to find the spot in the logic where it sends out this email to the user after they register. I want to stop at that point and check their password first.

If anyone can point me towards the right functions/scripts please help.

Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can do that with the custom registration.

The only problem is that it's currently missing a way to reject the user's input if it's incomplete. Get this version of users.php from CVS and this version of lib-custom.php demonstrates how to use it. These are drop-in replacements for Geeklog 1.3.11.

bye, Dirk
 Quote

Status: offline

zewt

Forum User
Junior
Registered: 04/02/05
Posts: 18
Perfect! Big Celebration

Awesome Dirk, and it seems so easy from looking at this code.

Keep up the great job.
 Quote

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