Welcome to Geeklog, Anonymous Monday, January 06 2025 @ 06:17 am EST
Geeklog Forums
Custom Registration Form
Status: offline
ronack
Forum User
Full Member
Registered: 05/27/03
Posts: 612
Up until 1.3.10 I was using the Fullname hack and was quite happy. I just noticed that it no longer works. I decided to give in and try the Custom Registration option. My first question for Blaine is, is your example "memberdetail.thtml" suppose to work out of the box. I mean I copied it from the system folder and moved it to the template in a new folder called "custom". Turned on Custom Registration in config.php then tried it. Entered a Username, Email, and Fullname and hit submit. It just sits the and laughs at me (does nothing). I expect that the additional steps that you mention in lib-custom.php need to be accomplished, however I'm don't understand the instructions.
1. Create any new records in additional tables you may have added.
(I'm not sure I understand what you are saying here. "new records" "additional tables"??? )
2. Update any fields in the core GL tables for this user as needed
(What fields am I updating here?)
Anything else?
1. Create any new records in additional tables you may have added.
(I'm not sure I understand what you are saying here. "new records" "additional tables"??? )
2. Update any fields in the core GL tables for this user as needed
(What fields am I updating here?)
Anything else?
8
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The sample code (which asks the user for the full name) works. It's just that I think that there were a few changes in 1.3.10. So if you're using your old code with 1.3.10, that may not work any more. Try it with the new sample code.
bye, Dirk
bye, Dirk
12
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sorry for not being clear. I was talking about the code in lib-custom.php.
Are you using the old code or the one from 1.3.10/.11? In the latter case, it should be as easy as 1) copy that .thtml file, 2) activate custom registration in config.php, 3) PROFIT ... err, I mean it should work ...
bye, Dirk
Are you using the old code or the one from 1.3.10/.11? In the latter case, it should be as easy as 1) copy that .thtml file, 2) activate custom registration in config.php, 3) PROFIT ... err, I mean it should work ...
bye, Dirk
9
10
Quote
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
I too don't understand.
In 1.3.11, you say we just need to enable custom reg and then copy memberdetail.thtml to professional/custom and that's all.
So what are all these related functions in lib_custom.php? Are they leftovers from old versions? Should we just ignore them?
Basically, I'd like to know how can I:
1) Force the user to fill up internal values (memberdetail.thtml has "Fullname". Let's say I want "Bio" instead).
2) Force the user to fill up external values (let's say "Address").
Thanks!
In 1.3.11, you say we just need to enable custom reg and then copy memberdetail.thtml to professional/custom and that's all.
So what are all these related functions in lib_custom.php? Are they leftovers from old versions? Should we just ignore them?
Basically, I'd like to know how can I:
1) Force the user to fill up internal values (memberdetail.thtml has "Fullname". Let's say I want "Bio" instead).
2) Force the user to fill up external values (let's say "Address").
Thanks!
7
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The extra functions in lib-custom.php are what makes the custom registration form work. They're not "leftovers", they are essential!
I'm afraiid they aren't terribly well documented. Try working your way through them and post any specific questions that may arise.
bye, Dirk
I'm afraiid they aren't terribly well documented. Try working your way through them and post any specific questions that may arise.
bye, Dirk
8
9
Quote
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
I knew they're needed (well, they're not commented out), but what I meant was - is the need to customize them an outdated demand?
You said yourself we just need the THTML file and to turn customizing on. Did you mean we no longer have to play with the functions (like we supposedly had to in previous versions) because they are now just standard Geeklog functions (with not so standard comments)?
If so, how do I accomplish questions 1 & 2?
You said yourself we just need the THTML file and to turn customizing on. Did you mean we no longer have to play with the functions (like we supposedly had to in previous versions) because they are now just standard Geeklog functions (with not so standard comments)?
If so, how do I accomplish questions 1 & 2?
9
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The functions are a sample implementation for when you want a custom registration form that additionally asks the new user for their full name. If you want something else, you'll have to modify those functions. That's why they're in lib-custom.php - so that you can customize them.
bye, Dirk
bye, Dirk
8
9
Quote
All times are EST. The time is now 06:17 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