Multiple Profiles

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
Vivi_k
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 05, 2018 10:37 am

Multiple Profiles

Post by Vivi_k » Thu Sep 20, 2018 9:16 am

Hello,
I have a problem with the user profile.
First of all i have create three sites in the same joomla installation using hidden menus. For example i have something like this : This is the main site: www.mainsite.com and i have create something like this www.mainsite.com/subsite. I have done this creating a menu "subsite menu" and there i have create a separator with the name subsite. From there if i want a page in my subsite i create a menu item with parent item the subsite. And like this i have that :www.mainsite.com/subsite/page. I have different templates for each site.
I hope to make sense what i am saying.
The problem is when i am trying to create the user profile. When i am in the main site the and the user try to see his profile, it works fine. The problem starts when the user tries to see his profile in the subsite. I have created the user profile with the same logic that i described before.So when i am in the :www.mainsite.com/subsite and the user clicks to his profile, it links him in the user profile in the main site. and the url is :www.mainsite.com/user-profile. And when he edits his profile i can see that he is in the :www.mainsite.com/subsite/edit-profile ( it has the menu of the subsite) and when he clicks submit he returns to: www.mainsite.com/user-profile. Note that i always choose the right templates for each profile.
Does anyone know what causes this problem and how each site can have different user profiles?
Thank you very much, i hope to have described well the problem that i have.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35865
Joined: Sat Apr 05, 2008 9:58 pm

Re: Multiple Profiles

Post by Webdongle » Thu Sep 20, 2018 9:51 am

You have two separate sites or you have a second user profile menu item under a menu item ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

Vivi_k
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 05, 2018 10:37 am

Re: Multiple Profiles

Post by Vivi_k » Thu Sep 20, 2018 10:06 am

There are two separate sites in the same joomla installation.
I have a menu with the name "Ireland"( it has no module)
there i have a menu item with name ireland and it is a seperator.
In the same menu i have a user profile with parent item the ireland.
Then i have created a different menu with the name "Ireland menu"(it has a module)
There i created a menu item "menu item alias" in the system links. And i have created an alias with the profile in the menu Ireland. I have made just like this.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35865
Joined: Sat Apr 05, 2008 9:58 pm

Re: Multiple Profiles

Post by Webdongle » Thu Sep 20, 2018 10:33 am

Vivi_k wrote:
Thu Sep 20, 2018 10:06 am
There are two separate sites in the same joomla installation....
So one menu displays but one of the menu items (when clicked) displays a different menu?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

Vivi_k
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 05, 2018 10:37 am

Re: Multiple Profiles

Post by Vivi_k » Thu Sep 20, 2018 10:45 am

When i am in the subsite(Ireland) which has url like this :www.mainsite.com/Ireland/home and it is different from the mainsite and i am trying to see the profile from this site. When i click on profile it links me to the profile of the main site . What i want is: when i click the profile in the www.mainsite.com/Ireland/home
i want to have this www.mainsite.com/Ireland/profile and with the template of the subsite ireland but what i get is this www.mainsite.com/profile.
Also when i am in the profile of ireland despite that it returns me to the profile of the mainsite when i click on the edit profile i have what i want which means that i am in the site ireland, the url is www.mainsite.com/Ireland/edit-profile and it has the template of the subsite(ireland).
I know it's confusing but i hope to help you to understand this

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35865
Joined: Sat Apr 05, 2008 9:58 pm

Re: Multiple Profiles

Post by Webdongle » Thu Sep 20, 2018 1:50 pm

It will do because they are not to sites. Either your main domain is creating a /folder in the url by using a child menu item or have site files nested in a subfolder to the same database. In any case you only have one site and any link in the top level will show the same no matter where it is accessed from.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

Vivi_k
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 05, 2018 10:37 am

Re: Multiple Profiles

Post by Vivi_k » Sat Sep 22, 2018 1:23 pm

Sorry for the late response.
Do you know how to cahange the link for the profile.
I am thinking to change some things in the code of Joomla.I am thinking to make some changes in this path: componenents/com_users/controllers/profile.php in order to make the user to see the profile of his( in the right site) depending on the usergroup that he belongs. If the user is a user of the site of Ireland he will be in a usergroup "user_ireland". If the user is in this user group the profile page that he sees to be a page that i have created myself. I am thinking somethng like this. Is this possible? Do you know how to do this? If you can to give me a direction as how to make a change like that. From where i have to call the right link for his profile page?
Thank you very much.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35865
Joined: Sat Apr 05, 2008 9:58 pm

Re: Multiple Profiles

Post by Webdongle » Sat Sep 22, 2018 1:42 pm

You would need to create a Template override and add code that displayed a different layout depending of the user group of logged in user. Given the questions that you are asking then it is reasonable to conclude that you have a big learning curve before you have the ability to do that.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

Vivi_k
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 05, 2018 10:37 am

Re: Multiple Profiles

Post by Vivi_k » Sat Sep 22, 2018 3:23 pm

I am using joomla only for two months and i don't have much experience in coding, i am still learning and i have a very challenging project.
Thank you for your help, i hope to solve this problem.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35865
Joined: Sat Apr 05, 2008 9:58 pm

Re: Multiple Profiles

Post by Webdongle » Sat Sep 22, 2018 4:02 pm

If you can clearly state the criteria then perhaps we can help you find an easier method. One site looking like two or more sites can often be achieved with clever use of Menus, View levels, Categories, User groups and Copies of Templates.

Before creating a complex site it is often better to use pen and paper to work out the various Menus, View levels, Categories, User groups and Copies of Templates. Then you can have a visual representations of the relationship between them. A visual representation of the relationships between Menus, View levels, Categories, User groups and Copies of Templates ... will make things easier when you create them on the site.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

Vivi_k
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 05, 2018 10:37 am

Re: Multiple Profiles

Post by Vivi_k » Sat Sep 22, 2018 5:07 pm

First i have a mainsite lets' call it Europe. Then i want two other sites Ireland and England. These two sites are going to be the same with the site Europe, with only a few differences ( they are going to use different articles, different membership plans). One of the most important functionalities is the user profile because, i am going to use the user's profile data for an application that he/she has to do afterwards. So in each site depending on the site that the user is registered, he is going to have different fields to fill in. I am using Easy profile plug in for this purpose (because i want the fields depending on their themes in tabs and allows me to put a user in a user group depending on what country he has chosen, through conditions that i am creating). For example, if a user, during his registration, chooses Ireland as his home country he is going to be assigned in user group "Registered user Ireland".
Through "Access levels" i can choose what fields he/she is going to see in his profile page after his/her registration.
When a registered user of Ireland is in his/her profile page in the Ireland site, he/she can see the fields that i have created for the users of Ireland. This works fine. I can see in every site different fields for the user.
The problem as i said before is that while every user sees his own fields, when the user is a user of ireland he sees his profile in the site Europe( with the url of Europe) and there he has the menu of the site Europe, with result if he/she want to go back to the site Ireland or england have to type the url again. But when he/she tries to edit his/her profile, he/she is in the site irelnd/england because i can see that the menu items of the site irelad or england.
Every menu item for the site ireland and England, has it's own template and it's own access levels for the registered users.
I hope to made this clearer now. I am sorry i am from Greece and i can't write what i want to say very well in english( and lack of knowledge in the terminology of joomla)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35865
Joined: Sat Apr 05, 2008 9:58 pm

Re: Multiple Profiles

Post by Webdongle » Sat Sep 22, 2018 6:26 pm

Unless you have 3 completely separate sites (associated to 3 separate url's) then you will have to settle for he same url for the members profile.

You can make copies of the Template and Assign each copy to each set of menu items (i.e. one template to the menu items of Ireland and the other template to the menu items of England. The css of each template can then be individually edited. Also overrides can be made individually (plenty on here to help with syntax).

To have a different style for Profile depending on User group ...
The main Template (or Template associated with the menu item of type User Profile) would need a Template override with code to identify the user group (of the logged in user) then render that html code accordingly). But the url (for User profile) will be the same for all user groups ... even if a menu item type Alias has a view level for only 1 user group.

Something from https://extensions.joomla.org/category/ ... mmunities/ or https://extensions.joomla.org/category/ ... anagement/ may be able to add a folder into the path.

Or if you want single sign in for separate sites https://extensions.joomla.org/extension ... r-domains/
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24870
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Multiple Profiles

Post by Per Yngve Berg » Sat Sep 22, 2018 6:46 pm

Create a User Profile Plugin that shows a Tab for each Location with the fields that belongs.


Post Reply

Return to “General Questions/New to Joomla! 3.x”