User Profile

  • jimi
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 1 week ago #79579 by jimi
User Profile was created by jimi
User profile in the front end displays Membership ID this ID is the Membership Pro ID which we don't use, how do I either hide it from the user or make it display the Joomla User ID (we use this as a membership number)

Jimi

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 1 week ago #79598 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic User Profile
You would need to edit the code. Try to look at components/com_osmembership/view/profile/tmpl/default.php, you should see the code and can change it to meet your need

Tuan

Please Log in or Create an account to join the conversation.

  • jimi
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 5 months ago #105145 by jimi
Replied by jimi on topic User Profile

User profile in the front end displays Membership ID this ID is the Membership Pro ID which we don't use, how do I either hide it from the user or make it display the Joomla User ID (we use this as a membership number)


Since the recent update Membership ID has come back to the user profile page, can't remember how I removed it previously and the default.php appears to be different now. Would you mind detailing how I can remove Membership ID from the user profile.
Regards
Jimi

Please Log in or Create an account to join the conversation.

  • jimi
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 5 months ago #105146 by jimi
Replied by jimi on topic User Profile
Cancel that, managed to figure it out, it was in default_profile.php.
Regards
Jimi

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 5 months ago #105161 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic User Profile
Yes Jimi. To prevent this change from being lost when you update to new version of Membership Pro, please move this file t o PATH_TO_TEMPLATE/html/com_osmembership/profile folder (it is called template override in Joomla)

Regards,

Tuan
The following user(s) said Thank You: jimi

Please Log in or Create an account to join the conversation.

  • jimi
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 5 months ago #105179 by jimi
Replied by jimi on topic User Profile
Cheers Tuan
I've used Joomla Template manager to create an template override, basically the same as you detailed except Joomla does the work of copying/moving files.
Thanks for the prompt assistance.
Regards
Jimi

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 5 months ago #105182 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic User Profile
Hi Jimi
The problem with using template manager to create template override is that it copies all files of that folder. So for example, in the future, if we make change to other files like default.php or default_subscriptions.php, it won't affect your installation (because these files were overriden)

So better, move the file manually. Or if you use template manager, delete the files which are not changed

Hope my explanation is clear to you

Tuan

Please Log in or Create an account to join the conversation.

  • jimi
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 5 months ago - 6 years 5 months ago #105189 by jimi
Replied by jimi on topic User Profile
Cheers Tuan
Yes I understand what you mean, I had noticed that it had it had copied all the files from the folder, I'll delete the others and just leave "default_profile.php" I.take it that the profile file with the date added (default_profile-20171023-133133) is a backup and can be removed as well ?
Regards
jimi
Last edit: 6 years 5 months ago by jimi.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 5 months ago #105190 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic User Profile
Yes, it can be removed.

Please Log in or Create an account to join the conversation.

  • jimi
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 5 months ago #105191 by jimi
Replied by jimi on topic User Profile
Cheers, all done B)

Jimi

Please Log in or Create an account to join the conversation.