By Rick Kasparek on Tuesday, 21 February 2017
Posted in General
Likes 0
Views 297
Votes 0
Is there some way to generate a member number that is NOT based on the Joomla user id?
I'd simply like to have member numbers based upon their sequence of joining... i.e., 1st member joins, he is member number 0001, etc. Joomla ids wont work since Joomla has changed their default Admin as the first member. I'd like to be able to display that member number in the member's profile as well.

As an alternative, is there a field that can be filled in by the admin after registration, that can be displayed in the profile but not editable by anyone but the admin?

Any thoughts?
Unfortunately that was not possible to set those new registered member id by admin, because based on the #__users this table already set id to auto increment, and once the user registered finish, that member id will affected with other table as well.
·
Tuesday, 21 February 2017 10:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually, I am wondering if a second number field can be used... it doesn't have to be the system's member number or user number... I want to be able to assign a specific number for each user (separate from the user number). I'll get it figured out. I just figured you may have an idea. ?
·
Tuesday, 21 February 2017 11:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually I am not quite understand what you trying to achieve here, perhaps you can elaborate more details what is your workflow and what do you mean by "second number field can be used"?
·
Tuesday, 21 February 2017 14:00
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm sorry if I'm not being clear... I just need a field that can be filled out by the Admin that will display, but cannot be changed by the user. It will contain a number. Ideally I wanted this to be filled-in automatically, when the user joined - with a sequential number, but I don't think that will be possible. It is what we will use as our own "member number" - not generated by Joomla. I need a specific format which I can fill into a data field for each user.

1. user signs up for specific membership
2. Joomla assigns 'user number' (but we are not using this number)
3. Admin assigns our own sequential 'membership number' to the user in a field that is editable only by the admin but displays in the user profile.

sorry... is that any clearer?
·
Tuesday, 21 February 2017 22:43
·
0 Likes
·
0 Votes
·
0 Comments
·
I think I can simply use a text field and make it not appear on registration or editing and go in as admin and set it from the console. That will work. Is there any way to make that specific custom field appear in the "INTRODUCTION" area?
·
Wednesday, 22 February 2017 00:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, i understand what you trying to achieve now.

Yes, i think that is only way to achieve your current requirement without hacking into the PHP code.

If you would like to display those specific custom field on user profile "INTRODUCTION" area, you have to hack on the PHP theme file.

First you have to set your Unique key from your specific custom field from backend. (screenshot : http://take.ms/btUVN )

Then use following sample PHP code to retrieve the user data from the specific custom field.

$userProfileId = JRequest::getInt('id');
$userData = ES::user($userProfileId); // current user profile id
$customField = $userData->getFieldValue('TEXTAREA-TEXT');
echo $customField;


Hope this will help.
·
Wednesday, 22 February 2017 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex - thank you for that!
I would like to be able to link that member's extra number to a webpage. Unfortunately, if I use a text field, I can only use text, and it looks like if I use an HTML field, I cannot change that on an individual user basis (I *think* that's the way it works) I can use a LINK field but it winds up being two fields versus one. If you can think of a way to allow this field to be an html field, changable per user, let me know please
for instance
user 1 display "member number: <a href="http://somepage1001.html">1001</a>"
user 2 display "member number: <a href="http://somepage1002.html">1002</a>"

Otherwise, please mark this as resolved ...and thank you!
·
Wednesday, 22 February 2017 22:37
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome Rick

Unfortunately that was not possible to add html code on the URL custom field,

But you can achieve this via customise this file -> JoomlaFolder/media/com_easysocial/apps/fields/user/url/themes/default/display_content.php
·
Thursday, 23 February 2017 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex - but that would be way over my level of understanding! LOL!!
Cheers
Rick
·
Thursday, 23 February 2017 01:21
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 23 February 2017 12:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post