is there something equivalent to this in your API? to grab one of your fields in the jsn_users table?Yes the equivalent is:
<? $user =& JFactory::getUser(); ?>
And show user name in text field value.
<? echo $user->name; ?>
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
echo $user->name; /*or something else like $user->field_alias */
Could you provide an example of how one would use this within Joomla? I have an extension ("Fabrik", where I can use PHP and Javascript within a form). I am curious how others may use this
$db = JFactory::getDbo();
$query = 'UPDATE #__jsn_users SET status = "Requested" WHERE id = ' . JFactory::getUser()->id;
$db->setQuery($query);
$db->execute();
the value "Active Duty" does not seems a value in the radio options
$user=JsnHelper::getUser(); echo $user->setValue('status','Active Duty');
$user->save()
Okay... so where would I put this helper?Sorry but I don't sure. I don't know that your form do and how it is managed, anyway you can try to add this code after submission.
Where would I invoke the helper - "require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');"Yes, you should add this before the code. Also after assign the value to status you should save the user object with $user->save()
Is this something I place in code before using $user=JsnHelper::getUser(); echo $user->setValue('status','Active Duty');
How would I go about to allow a person with special access rights to edit / delete/add values to this defined field(radio)An administrator* can edit other user profiles from backend.
I use the import / export feature quiet extensively and would like an option forSorry but this seems not possible. The best way is to send import file with some other way and after an admin review then he will use import feature.
a administrator access to review a list and mark it to reflect a current status for the above profile element. Either by filling in a value and applied to the list or individually. Is this possible?
Also can I allow back access for a special access rights for just the search and create a list or for import/export feature of Easy Profile?In the backend the import feature is subordinate to users management access. But there is another way, in our download are you will find a plugin called "User Import Plugin (frontend)", you can install this plugin and in plugin options (Extensions->Plugins) assign an Joomla access level (http://docs.easy-profile.com/index.php/article/import-plugin)
Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.
Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.
Before you post: read the documentation and search the forums for an answer to your question.
When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).
Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.
Language: only English
Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.
Our site uses non fat, delicious cookies which help us improve your user experience. You can read more about it in our Legal page.