By Dave Parker on Wednesday, 29 April 2015
Posted in Technical Issues
Replies 13
Likes 0
Views 562
Votes 0
Hi guys...
Not sure is this is something on my system, or a bug generally. In Settings->User I have the "Profile Default Display" option set to "About". However, when viewing a profile, it's still showing me the Timeline view.
Can you confirm if this is a bug in 1.3.27?
Cheers
Dave
Hello Dave.

I am really sorry because I can't replicate your issue at my local. Can you provide us with FTP access so we can check on this?
·
Thursday, 30 April 2015 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Izzan...
I've supplied the details in the site details.
For your info, it also appears that the "profile completeness" is also not respecting the fact that I've told it to not respect the "optional" fields.
Dave
·
Sunday, 03 May 2015 04:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Dave,

I am sorry for the delay of this reply as it is a long weekend off for us here in Malaysia. I have tried checking your site and it looks like all of your steps are configured to hide during display. See my screen shot here, http://screen.stackideas.com/2015-05-04_1647.png .

I have enabled this for your "Basic Information" tab and it appears correctly now
·
Monday, 04 May 2015 16:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello guys,

There should be a canonical tag inserted on About page (canonical link should point to main profile page)

Because:

index.php?option=com_easysocial&Itemid=999&id=123&lang=en&layout=about&view=profile (about page)

and

index.php?option=com_easysocial&Itemid=999&id=123&lang=en&view=profile (main profile page)


Will display the same page, and same page title, and this cause search engines to report duplicates issue

Rgds
·
Thursday, 02 July 2015 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valentin,

I am sorry for the delay of this reply.

You can add canonical tag inside your /components/com_easysocial/themes/[your default theme]/profile/default.php and find the following line,
<a href="<?php echo FRoute::profile(array('id' => $user->getAlias(), 'layout' => 'about')); ?>" data-info <?php if (!empty($infoSteps)) { ?>data-loaded="1"<?php } ?>>
// replace with
<a href="<?php echo FRoute::profile(array('id' => $user->getAlias(), 'layout' => 'about')); ?>" rel="canonical" data-info <?php if (!empty($infoSteps)) { ?>data-loaded="1"<?php } ?>>


Hope these help.
·
Friday, 03 July 2015 16:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ezrul,

I don't think the about page should be the canonical page, I think the main profile page should be it maybe ?

index.php?option=com_easysocial&Itemid=999&id=123&lang=en&view=profile

Rgds
·
Friday, 03 July 2015 16:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valentin,

I am sorry for the delay of this reply as it weekends for all of us here.

I am sorry for the confusion. You can add the following code inside your /components/com_easysocial/views/profile/view.html.php under the display() function to add the canonical tag for user profile view.
    // Add canonical tag in profile view
$document = JFactory::getDocument();
$canonicalUrl = FRoute::profile(array('id' => $user->getAlias()));
$document->addCustomTag('<link rel="canonical" href="' . $canonicalUrl . '"/>');


Hope these help.
·
Monday, 06 July 2015 14:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

At what line number should it be inserted ?

Rgds
·
Monday, 06 July 2015 14:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valentin,

Try to put at line 245 and see how it goes. By the way it seems like our forum is stripping out some of the words in my previous reply. Refer to my screenshot here for better view, http://screen.stackideas.com/2015-07-06_1429.png
·
Monday, 06 July 2015 14:29
·
0 Likes
·
0 Votes
·
0 Comments
·
This is not oky Ezrul, have you tested on your side ? The canonical tag is wrong
·
Monday, 06 July 2015 14:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valentin,

I'm not quite sure what do you mean the canonical tag is wrong. From the above code, the correct behavior should be like that so that the profile view is unique for each users. If you want it to be display as "/index.php?option=com_easysocial&view=profile" you can replace the canonical url variable,
$canonicalUrl = FRoute::profile(array('id' => $user->getAlias()));
// replace with
$canonicalUrl = FRoute::profile();


Do note that "/index.php?option=com_easysocial&view=profile" will always pointed to the current logged in user profile instead of other user profile. When google trying to crawl your site as guest and go to the url mentioned above, easysocial will redirect it to login page instead.
·
Monday, 06 July 2015 15:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

Let me explain again what need to be achieved:

When you chose "Profile Default Display" as "About" page, the about page, should include a canonical tag in the page source informing search engines that the main url is:

index.php?option=com_easysocial&Itemid=999&id=123&lang=en&view=profile

So when you will view source page of the about page, it should included this:

<link href="index.php?option=com_easysocial&Itemid=999&id=123&lang=en&view=profile" rel="canonical" />

Please discuss with your team, this should be included maybe in future version, otherwise you will put on SEO risk websites of customers which may be penalized because of duplicate content caused by that option.

Rgds
·
Monday, 06 July 2015 15:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valentin,

I am sorry for the delay of this reply.

Thank you for the heads up on this. I will consult with our developers and see what they can do about the canonical url issue for profile page.
·
Tuesday, 07 July 2015 13:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post