Phoca and link on CB profile

Phoca Gallery - image gallery extension
HiopsNerevar
Phoca Member
Phoca Member
Posts: 32
Joined: 17 Feb 2011, 18:08
Location: Russia
Contact:

Phoca and link on CB profile

Post 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? :|
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca and link on CB profile

Post by Jan »

Hi, are some menu links exist to the CB profile, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan
If you find Phoca extensions useful, please support the project
HiopsNerevar
Phoca Member
Phoca Member
Posts: 32
Joined: 17 Feb 2011, 18:08
Location: Russia
Contact:

Re: Phoca and link on CB profile

Post 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
Post Reply