UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » adding a field to the registration screen..

adding a field to the registration screen..

Moderators: Gaia.

Page: 1

Author Post
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
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);
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
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
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.
Member
Registered: Dec 2007
Posts: 4
Thanks for the help.

Page: 1

UseBB Community » Resources & Customization » adding a field to the registration screen..

UseBB Community is powered by UseBB 1 Forum Software