[SOLVE] Create a Menu link tu User category + only Image tab

Phoca Gallery - image gallery extension
Chico008
Phoca Member
Phoca Member
Posts: 11
Joined: 05 Sep 2014, 17:43

[SOLVE] Create a Menu link tu User category + only Image tab

Post by Chico008 »

Hi

For my website, i created a category per user, so each user as his own gallery of photos.
I'd like to make a menu, so the user immediatly goes to HIS catagories (each user only have 1 category of his own tu upload his photos)

I see i can make a link to a specific catagory, but not to a category a user own, and i can't make a different link for each user.

How can i do it ?

to explain
the web site : viryphotoclub.fr
in "Galerie Photo", you have categories like "Photo Membre - xxx"
If i am N.Demeure, i would link the link to bring me to "Photo Membre - N.Demeure", if i'm P.Lotton, i want it to go to "PhotoMembre - P.Lotton", etc

It's would be a link under "Galerie Photo" menu
Last edited by Chico008 on 01 Oct 2014, 10:12, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Create a Menu link tu User category

Post by Jan »

If you find Phoca extensions useful, please support the project
Chico008
Phoca Member
Phoca Member
Posts: 11
Joined: 05 Sep 2014, 17:43

Re: Create a Menu link tu User category

Post by Chico008 »

I thought i activated the user control panel, but it was not >_<

Ok, but now in user control pannel, i only want to have the Image tab, not the others, how can i do ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Create a Menu link tu User category

Post by Jan »

Hi, then you need to customize it in the code and remove all the others :idea:

Jan
If you find Phoca extensions useful, please support the project
Chico008
Phoca Member
Phoca Member
Posts: 11
Joined: 05 Sep 2014, 17:43

Re: Create a Menu link tu User category

Post by Chico008 »

I can try this, but can you tell me which file to modify ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Create a Menu link tu User category

Post by Jan »

Hi,
components/com_phocagallery/views/user/view.html.php
components/com_phocagallery/views/user/tmpl/ ...

Jan
If you find Phoca extensions useful, please support the project
Chico008
Phoca Member
Phoca Member
Posts: 11
Joined: 05 Sep 2014, 17:43

Re: [SOLVE] Create a Menu link tu User category + only Image

Post by Chico008 »

Ok, i managed to do what i wanted.

The only need is to edit the file /www/components/com_phocagallery/views/user/default.php
and comment the lines 65 to 81

Code: Select all

echo '<div id="phocagallery-pane">';
//echo JHtml::_('tabs.start', 'config-tabs-com_phocagallery-user', array('useCookie'=>1, 'startOffset'=> $this->tmpl['tab']));
//
//echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-user.png', '') . '&nbsp;'.JText::_('COM_PHOCAGALLERY_USER'), 'user' );
//
//echo $this->loadTemplate('user');
//
//
//echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-folder-small.png', '') . '&nbsp;'.$this->tmpl['categorycreateoredithead'], 'category' );
//
//echo $this->loadTemplate('category');
//
//
//echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-subcategories.png', '') . '&nbsp;'.JText::_('COM_PHOCAGALLERY_SUBCATEGORIES'), 'subcategories' );
//
//echo $this->loadTemplate('subcategories');

echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-images.png','') . '&nbsp;'.JText::_('COM_PHOCAGALLERY_IMAGES'), 'images' );

echo $this->loadTemplate('images');
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [SOLVE] Create a Menu link tu User category + only Image

Post by Jan »

Hi, ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply