Exemple #1
0
 /**
  * Retrieves the profile link
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function getLink()
 {
     if (!EB::easydiscuss()->exists()) {
         return parent::getLink();
     }
     $link = DiscussRouter::_('index.php?option=com_easydiscuss&view=profile&id=' . $this->profile->id, false);
     return $link;
 }
Exemple #2
0
 /**
  * Retrieves the profile link
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function getLink()
 {
     if (!EB::jomsocial()->exists()) {
         return parent::getLink();
     }
     $link = CRoute::_('index.php?option=com_community&view=profile&userid=' . $this->profile->id);
     return $link;
 }
Exemple #3
0
 /**
  * Retrieves the profile link
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function getLink()
 {
     if (!$this->exists()) {
         return parent::getLink();
     }
     $link = K2HelperRoute::getUserRoute($this->profile->id);
     return $link;
 }
Exemple #4
0
 /**
  * Retrieves the profile link
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function getLink()
 {
     if (!EB::easysocial()->exists()) {
         return parent::getLink();
     }
     $user = FD::user($this->profile->id);
     $link = $user->getPermalink();
     return $link;
 }
Exemple #5
0
 /**
  * Retrieves the profile link
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function getLink()
 {
     $default = parent::getLink();
     // Check if phpbb exists on the site
     if (!$this->exists()) {
         return $default;
     }
     $query = array();
     $query[] = 'SELECT ' . $this->db->qn('user_id');
     $query[] = 'FROM ' . $this->db->qn('#__users');
     $query[] = 'WHERE LOWER(' . $this->db->qn('username') . ') = LOWER(' . $db->Quote($this->profile->username) . ')';
     $query = implode(' ', $query);
     $this->db->setQuery($query, 0, 1);
     $result = $this->db->loadResult();
     if (!$result) {
         return $default;
     }
     $link = JURI::root() . rtrim($this->path) . '/memberlist.php?mode=viewprofile&u=' . $this->user->id;
     return $link;
 }