Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 08:17 pm EST
Geeklog Forums
Requiring info for user signups
Hi,
I would like to make a custom registration form. By custom I mean require more information when a user signs up. The second thing I would like, is to be able to screen that information, and accept or deny the users signup via e-mail or wherever else. Thanks.
I would like to make a custom registration form. By custom I mean require more information when a user signs up. The second thing I would like, is to be able to screen that information, and accept or deny the users signup via e-mail or wherever else. Thanks.
12
15
Quote
Status: offline
computerade
Forum User
Chatty
Registered: 05/17/04
Posts: 46
Hmm, I'm not too sure how to go about this still.
18
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by computerade: Hmm, I'm not too sure how to go about this still.
Did you try out the included sample? It implements a custom registration form that asks for the new user's full name (in addtion to the username and email address).
Extending that form shouldn't be too hard then ...
bye, Dirk
20
11
Quote
Status: offline
computerade
Forum User
Chatty
Registered: 05/17/04
Posts: 46
Okay, well if this already made, then how do I get it to be used as the active user signup form ? I don't know where to insert this code or how to use it, but i can change it. I know the code is in lib-custom.php but how do I implement that into my website, and require those fields to be filled in.
13
17
Quote
Status: offline
computerade
Forum User
Chatty
Registered: 05/17/04
Posts: 46
Okay, thanks, i read it and am now using it, but when a new register goes to sign up, the submit button doesn't submit anything, it just reloads. What am I doing wrong, i must have missed or mis-read something.
Is there something that needs to be inputed into user.php ??
Is there something that needs to be inputed into user.php ??
15
12
Quote
Status: offline
SmackDaddy
Forum User
Chatty
Registered: 05/04/05
Posts: 35
Location:Ohio
Out of curiosity....if someone wants to simply add the password field and not have the user receive one, can this be done? If so....has someone done this and able to let me (us) know how to?
I've done a forum search for password, custom password, custom registration, and a couple other far-reaching search attempts and unless I am missing a crucial forum topic, I cannot find this.....
As an FYI....I am currently using Geeklog 1.3.11sr1 and phpBBbridge (add-on)....
Thanks in advance....
I've done a forum search for password, custom password, custom registration, and a couple other far-reaching search attempts and unless I am missing a crucial forum topic, I cannot find this.....
As an FYI....I am currently using Geeklog 1.3.11sr1 and phpBBbridge (add-on)....
Thanks in advance....
33
16
Quote
Status: offline
Nightdude
Forum User
Chatty
Registered: 09/15/04
Posts: 61
I to, have been experimenting with custom registration. My question goes a bit deeper.
Customizing seems to be the easy part...the question is, with a custom form, can it be made to tie in (I'm sure it can) to user privilidges (groups), ie: my site student, faculty, alumni as each group has access to different forums etc... Currently, I have to make these changes manauly to add users to specific groups.
Night
Customizing seems to be the easy part...the question is, with a custom form, can it be made to tie in (I'm sure it can) to user privilidges (groups), ie: my site student, faculty, alumni as each group has access to different forums etc... Currently, I have to make these changes manauly to add users to specific groups.
Night
18
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Nightdude: the question is, with a custom form, can it be made to tie in (I'm sure it can) to user privilidges (groups), ie: my site student, faculty, alumni as each group has access to different forums etc... Currently, I have to make these changes manauly to add users to specific groups.
How would you recognize (automatically?) if someone is a student, faculti, etc.? Answer that question and you can do it ...
Or you could let them chose themselves. See this sample plugin.
bye, Dirk
16
16
Quote
Status: offline
gape
Forum User
Full Member
Registered: 05/30/02
Posts: 138
Quote by: Dirk
Open your lib-custom.php, search for "Sample Custom Member Functions", start reading ...
bye, Dirk
i did this on one website ...
following the instructions in lib-custom.php
(btw - i found no instructions on new fields in (users) table - so we added some fields)
but we got stuck at
Text Formatted Code
/* Called from users.php - when user is displaying a member profile.
* This function can now return any extra fields that need to be shown.
* Output is then replaced in {customfields} -- This variable needs to be added
* to your templates
* Template: path_layout/users/profile/profile.thtml
*/
function CUSTOM_userDisplay($uid)
{
global $_CONF, $_TABLES;
$retval = '';
$var = "Value from custom table";
$retval .= '<tr>
<td align="right"><b>Custom Fields:</b></td>
<td>' . $var .'</td>
</tr>';
return $retval;
}
this path is not valid in any case
Template: path_layout/users/profile/profile.thtml
profile dir does not exist so i used
path_layout/users/profile.thtml
but ... the thing does not retrieve the data from table
it is written in table, couse i checked in phpmyadmin
so ... how do i get
Value from custom table
?
17
16
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: gape
this path is not valid in any case
Template: path_layout/users/profile/profile.thtml
profile dir does not exist so i used
path_layout/users/profile.thtml
Whoops. Fixed. Thanks for reporting that.
Quote by: gape
so ... how do i get
Value from custom table
You have to read it yourself.
Text Formatted Code
$myvalue = DB_getItem($_TABLES['mytable'], 'myvalue', "uid = $uid");bye, Dirk
13
16
Quote
All times are EST. The time is now 08:17 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