Users and Sessions
Permalinki created two new coluns in "users" table of concrete5 and those are:
Name: that refers to the complete name of the user
Job: that refers to the post of the user in the company.
the thing is, when the user log in i want to get is name and job to a input text in another page.
btw after my website goes online the first page will have to be the login form so the users can´t see any content of the site. how do i do that?

<?php $u = new User(); if($u->isLoggedIn()) { $ui = UserInfo::getByID($u->getUserID()); echo $ui->getAttribute('Name'); } ?>
And the same for the "Job" attribute..
To force the login page you would just deny "Guest" viewing permissions on your home page..
and how do i set the coluns to user atributes?
thanks for the reply ;)
This is the way to add columns to the 'UserSearchIndexAttributes' table. If you add a 'Text' attribute called 'Name', then weyboat's example will grab that value for the logged in user. I would recommend adding 'first_name' and 'last_name' as attributes rather than just 'name'. If you set these attributes to 'Required' then any past members who haven't yet entered this info will be asked for it the next time they log in.
Manually adding columns to tables is dangerous because all the built-in concrete5 functions (and there are lots of them) will not know anything about your new columns and you will have to write all the code yourself to access these columns.
Fatal error: Class 'User' not found in D:\Xampp\htdocs\concrete\themes\destyle\Participacao.php on line 175
and the the name and job should appear in a locked text area, the code works fine with the addon simple php code. but in my external i got the fatal error. and as i sayed i need to pull the name and job in a text area
http://www.concrete5.org/community/forums/chat/external_forms_file_...
Also, I don't see weyboat's example code shown above anywhere in that file.
If so, wrap the form in a div with a class:
<div class="my-form"> . . your existing form HTML . </div>
and add this new class in front of your existing css classes on your external form like this:
.my-form .your-class {...}