By Albert on Monday, 26 December 2022
Posted in General Issues
Likes 0
Views 836
Votes 0
Good day. Tell me how to change it so that the user page has a link "About me" and the group page has a link "About us"
Both of these pages are formed in a file .../components/com_easysocial/themes/wireframe/helpers/cover/navigation.php
You can try to download my attached files and then place them in your current site template directory's new folder.

JoomlaFolder/templates/yourCurrentTemplate/html/com_easysocial/helpers/cover/...
·
Tuesday, 27 December 2022 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay in this reply as it was a public holiday for us here.

Actually, the user profile and group page already contain a link for the about, you can check my attached screenshot below.

So I am not sure what kind of about us link you referring to?

Or are you referring to how to add a custom link on the user profile and group navigation bar?

If so, the file location you shared is correct, you need to use the following checking to determine whether the current page is user profile page or group page.


$customOption = $this->input->get('option', '', 'cmd');
$customView = $this->input->get('view', '', 'cmd');
$customLayout = $this->input->get('layout', '', 'cmd');

if ($customView === 'group' && $customLayout === 'item') {
// show a group about us link
}

if ($customView === 'profile') {
// show user profile about us link
}
·
Tuesday, 27 December 2022 10:14
·
0 Likes
·
0 Votes
·
0 Comments
·
I want to have one link name on the user's page and another name on the grou, page and the event.

Your verification code is not suitable for this file (.../components/com_easysocial/themes/wireframe/helpers/cover/navigation.php).
·
Tuesday, 27 December 2022 13:14
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry that I am not quite sure if I understand your question earlier, do you mean that you would like to add a few custom links on a specific user profile navigation bar? (screenshot: https://monosnap.com/file/FUXcousjMG6v79tkwfd84iN98eOLZK )
·
Tuesday, 27 December 2022 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
I want the user to have a link - About me
and the group to have a link - About group
·
Tuesday, 27 December 2022 13:44
·
0 Likes
·
0 Votes
·
0 Comments
·
You can check the following code how to generate the user/group/event/page about permalink on the site.


$eventId = 1;
$event = ES::event($eventId);
$aboutPermalink = ESR::events(array('id' => $event->getAlias(), 'page' => 'info', 'layout' => 'item'));
var_dump($aboutPermalink);

$pageId = 1;
$page = ES::page($pageId);
$aboutPermalink = ESR::pages(array('id' => $page->getAlias(), 'type' => 'info', 'layout' => 'item'));
var_dump($aboutPermalink);

$groupId = 1;
$group = ES::group($groupId);
$aboutPermalink = ESR::groups(array('id' => $group->getAlias(), 'type' => 'info', 'layout' => 'item'));
var_dump($aboutPermalink);

$userId = 1;
$user = ES::user($userId);
$aboutPermalink = ESR::profile(array('id' => $user->getAlias(), 'layout' => 'about'));
var_dump($aboutPermalink);
·
Tuesday, 27 December 2022 13:52
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't need to change permalink
I want to change the button as I did in the old versions.
The user has a 'Profile' button instead of the 'About' button
·
Tuesday, 27 December 2022 14:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm, I am really sorry that I am totally lost here.

Do you mean your current issue is when the user clicks on the "About" button link it doesn't redirect to the user's about page?

Is this the issue are you complaining about right now?

or are you referring to you want the user click on the user profile link, it should show the user about page first instead of the user profile timeline?

For example:
1. Click the user profile link > show the user about page information
2. Click the timeline tab > only show the user profile timeline page
·
Tuesday, 27 December 2022 15:06
·
0 Likes
·
0 Votes
·
0 Comments
·
I want the user to have a button called - 'About me'
and the group button was called - 'Main'

But they both refer to the words COM_ES_ABOUT="About"
·
Tuesday, 27 December 2022 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much. You've been very helpful. It works all correctly
·
Tuesday, 27 December 2022 19:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Wednesday, 28 December 2022 09:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post