Support

  1. stephanie-nugent
  2. Support
  3. Monday, May 02 2016, 11:19 PM
Hello! I am trying to integrate JSN to JomClassifieds on this site: http://www.buyandsellrvs.com

On the individual ad pages, I would like to replace the printed username with a link to their profile. (see advertiser details here: http://buyandsellrvs.com/component/jomclassifieds/RVListings/15262-2005--Keystone--Cougar-Super-light?Itemid=53)

I am trying to use the getLink but I am not having success.

I have tried: $user=JsnHelper::getUser( $this->data->id ); echo $user->getLink();
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was night for us.

Your code seems correct,
- Have you included APIs with "require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');"?
- Are you sure that "$this->data->id" return the owner's ID of the element?

try to use "echo $this->data->id;" to test if ID is correct.

I'm sorry but we not have experience with JomClassifieds :(
  1. more than a month ago
  2. Support
  3. # 1
stephanie-nugent Accepted Answer
Pro
Hi, I tried tweaking many things and could not get it to work. I'm not a strong PHP programmer. Can you please look at it?
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry we not have experience with JomClassifieds, so, we are not sure.

try to replace this
$user=JsnHelper::getUser( $this->data->id );
with this
$user=JsnHelper::getUser( $item->userid );

and try to replace this
JsnHelper::getFormatName( $this->data )
with this
$user->getFormatName()
  1. more than a month ago
  2. Support
  3. # 3
stephanie-nugent Accepted Answer
Pro
Aha!! thanks! I got it to work. Thank you so much!!!!
  1. more than a month ago
  2. Support
  3. # 4
  • 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.