1. fmpmanager
  2. Support
  3. Tuesday, December 22 2015, 06:20 AM
I am working heavily with Easy Profile, Joomgallery and Komento (including the new Komento plugin). So far, so good. :)

In order to customize Joomgallery, I have to use HTML template override. To keep it simple, I want to add each user's avatar and link to profile in the Joomgallery Details page (which shows detailed information for an individual photo). Is there a way I can include the avatar and link directly into the Joomgallery php code? Thanks!
admin Accepted Answer
Admin
Hi,
Easy Profile have an API for this, try to see docs at http://docs.easy-profile.com/index.php/article/jsnuser-object

Example:
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($user_id);
echo $user->getField('avatar'); // this display avatar image
echo $user->getValue('avatar'); // this display avatar path
echo $user->getLink(); // this display profile URL
  1. more than a month ago
  2. Support
  3. # 1
I don't mean to hijack this thread but I think I'm trying to accomplish a similar task.
I'd like to send clicks from 'com_jsn&view=list' to the user's EasyBlog Bio at 'com_easyblog&view=blogger&layout=listings&id=123'. Is this something done with the API or some other way?
Thank you!
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi ,
no @Thomas, but you can do this with a simple template override (Template override is a Joomla feature):

Follow these steps:
- Copy file /components/com_jsn/views/list/tmpl/default_user.php into /templates/your-template-folder/html/com_jsn/list/default_user.php (create folders)
- Open new file
- Replace all user link with new blogger link, so from:
echo $this->user->getLink();

to:
echo JRoute::_( 'index.php?option=com_easyblog&view=blogger&layout=listings&id=' .  $this->user->id , true );


This is a file for User List menu item type, for User Table menu item type the correct file is table_user.php (instead default_user.php)
  1. more than a month ago
  2. Support
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.