Support

  1. raducu19
  2. Support
  3. Saturday, September 03 2016, 01:54 PM
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.
admin 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
raducu19 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
admin 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
raducu19 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
admin Accepted Answer
Admin
Hi,
I see like button (see screenshot)
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 5
raducu19 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
admin 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
raducu19 Accepted Answer
I set the url.
  1. more than a month ago
  2. Support
  3. # 8
admin 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
raducu19 Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 10
admin 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
raducu19 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
admin 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
raducu19 Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 14
admin 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
uem-capitan-ella Accepted Answer
Content Protected
  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 Offline

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

Search Users

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.