Page 1 of 1

Phoca and link on CB profile

Posted: 15 Mar 2013, 14:28
by HiopsNerevar
Hi Jan!
I tried set link on Community Builder profile from gallery categories. ex. "JhonDow Gallery - Autumn" and JhonDow - link on profile.
I use that construction in default_catimgdetail.php

Code: Select all

$authorCBlink = JRoute::_( 'index.php?option=com_comprofiler&task=userProfile&user=' .$this->categories[$i]->username, true);
.'  <h2>'. JText::_('COM_PHOCAGALLERY_GALLERY') .' <a href="' . $authorCBlink  . '" >'.$this->categories[$i]->username. '</a> - <a href="'.$this->categories[$i]->link.'" >'.$this->categories[$i]->title_self.'</a></h2> ';
But on site with SEF link looks site.com/component/comprofiler/userprofile/jhondow.html but i want route /component/comprofiler/ in menu item name like site.com/my-profile/userprofile/jhondow.html

You know which way to look? :|

Re: Phoca and link on CB profile

Posted: 16 Mar 2013, 03:14
by Jan
Hi, are some menu links exist to the CB profile, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan

Re: Phoca and link on CB profile

Posted: 16 Mar 2013, 09:03
by HiopsNerevar
fact of the matter that the menu on CB and phoca is created. I use the Jcomments avatars plugin with link on cb profile and there link rewrite correct like menuitem/userprofile/name.html