| Author |
Post |
|
|
#1 Mon Dec 03, 2007 12:58 pm
|
|
Member
Registered: Dec 2007
Posts: 4
|
Hi,
I just wondered if it was possible to add a field to the registration screen?
for example a field that lets a user enter thier website or an alternative email address.
also how can i check if a user is logged in or not, is there a particular session name i should be checking?
Thanks, Colin
|
|
|
#2 Mon Dec 03, 2007 4:35 pm
|
|
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
|
There is no real easy way to just plug in a new field during registration. Considering the fact you would have to create a new MySQL field, edit the MySQL query, etc, etc. Even more if you actually wanted to display it somewhere. To see which session variables are available, do a print_r($session);
|
|
|
#3 Wed Dec 05, 2007 3:33 pm
|
|
Member
Registered: Dec 2007
Posts: 4
|
Thanks for the reply Gaia, I have no problems with editing mysql queries and such , i just need to know which ones to edit  Also where do i do a print_r($session); ? putting it in a template file didnt seem to work. Thanks, Colin
|
|
|
#4 Wed Dec 05, 2007 3:49 pm
|
|
Member
Registered: Dec 2007
Posts: 4
|
will this work for the latest version: http://www.usebb.net/community/topic-post4187.html#post4187 ? onlu just found that post :p
|
|
|
#5 Wed Dec 05, 2007 4:33 pm
|
|
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
|
I would suggest learning some PHP first. Showing how this is done would result in a modification being created, which I can't do right now. It is similar to the above link, but, you would need to add the extra field into your actual database, not just within the queries themselves. Take a look at each of the files I mentioned in that link and try to get familiar where the code. The alterations are similar. Also, a print_r($session); gets placed within an PHP based file, such as index.php, not the template file.
|
|
|
#6 Fri Dec 07, 2007 3:23 pm
|
|
Member
Registered: Dec 2007
Posts: 4
|
Thanks for the help.
|