Support

  1. radu radu
  2. Support
  3. Saturday, September 03 2016, 01:54 PM
  4.  Subscribe via email
Facebook like work only for main page, not of profiles. Any chance to solve this problem? I put the code on profile.php but the like is for main page.
Easy Profile Support Accepted Answer
Admin
Hi,
Easy Profile not have any file called profile.php, you can try to add your code in file /components/com_jsn/views/profile/tmpl/default.php.

NOTE: We do not recommend to works so, the best way is to create a override and change new file:
- copy file from /components/com_jsn/views/profile/tmpl/default.php to /templates/your-template-folder/html/com_jsn/profile/default.php
- Add the code to the new file
This is a Joomla override feature.
  1. more than a month ago
  2. Support
  3. # 1
radu radu Accepted Answer
My fault, i mean /public_html/components/com_jsn/views/profile/tmpl/default.php
i try copy that in template, but same result.
  1. more than a month ago
  2. Support
  3. # 2
Easy Profile Support Accepted Answer
Admin
Hi,
we does not support custom code, anyway, we will take a look but we need your site details (you can use the form below the reply in "Site Details" tab)
  1. more than a month ago
  2. Support
  3. # 3
radu radu Accepted Answer
I put the url to see/test.
References
  1. http://muncitorul.com/index.php/profilul-meu/barbu
  1. more than a month ago
  2. Support
  3. # 4
Easy Profile Support Accepted Answer
Admin
Hi,
I see like button (see screenshot)
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 5
radu radu Accepted Answer
My problem is this: when a person click the "like" on that profile, the "like" will go for the main page, not for the profile himself.
  1. more than a month ago
  2. Support
  3. # 6
Easy Profile Support Accepted Answer
Admin
Ah ok,

this is a problem of your code, you need to specify URL in Facebook like code. see screenshot from page https://developers.facebook.com/docs/plugins/like-button?locale=en_US

Facebook Like button not like current page, it like specified URL.
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 7
radu radu Accepted Answer
I set the url.
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 8
Easy Profile Support Accepted Answer
Admin
In the source code of your page I see homepage URL (see screenshot). So Like is about homepage. You need to fix this.

In facebook page you will see only a generator for code when it ask you URL.
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 9
radu radu Accepted Answer
What url should i write to facebook like to work for profile not for homepage. On facebook.com to show you like http://muncitorul.com/index.php/profilul-meu/barbu not muncitorul.com.
I try http://muncitorul.com/index.php/profilul-meu/ but don't work, it's show you like http://muncitorul.com/index.php/component/users/?view=login
  1. more than a month ago
  2. Support
  3. # 10
Easy Profile Support Accepted Answer
Admin
This is correct for user "barbu": http://muncitorul.com/index.php/profilul-meu/barbu
  1. more than a month ago
  2. Support
  3. # 11
radu radu Accepted Answer
I want a link to work for all profiles separate. This what i mean. I can't go on facebook and make custom code for every new user.
  1. more than a month ago
  2. Support
  3. # 12
Easy Profile Support Accepted Answer
Admin
Hi,
sorry for late reply, it was night for us.

You need to use a PHP code to do this, link is different for each users, try to use something like this:

<?php echo substr( JURI::root() , 0 , -1 ) . $user->getLink( ) ; ?>


Docs About function "getLink" at http://docs.easy-profile.com/index.php/article/jsnuser-object
  1. more than a month ago
  2. Support
  3. # 13
radu radu Accepted Answer
Hi,
sorry for late reply, it was night for us.

You need to use a PHP code to do this, link is different for each users, try to use something like this:

<?php echo substr( JURI::root() , 0 , -1 ) . $user->getLink( ) ; ?>


Docs About function "getLink" at http://docs.easy-profile.com/index.php/article/jsnuser-object


Hi, thanks for help. Sorry for my bad knowledge.

If you dont mind, in wich file should i use this code ?
  1. more than a month ago
  2. Support
  3. # 14
Easy Profile Support Accepted Answer
Admin
Hi,
now your code in default.php is something like this:

<div class="fb-like" data-href="YOUR_LINK" data-layout="standard" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>


you need to put something like this:

<div class="fb-like" data-href="<?php echo substr( JURI::root() , 0 , -1 ) . $user->getLink( ) ; ?>" data-layout="standard" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>
  1. more than a month ago
  2. Support
  3. # 15
Üm Capitan Ella Accepted Answer
:D
  1. more than a month ago
  2. Support
  3. # 16
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.