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
[SOLVE] Create a Menu link tu User category + only Image tab
-
Chico008
- Phoca Member

- Posts: 11
- Joined: 05 Sep 2014, 17:43
[SOLVE] Create a Menu link tu User category + only Image tab
Last edited by Chico008 on 01 Oct 2014, 10:12, edited 1 time in total.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Create a Menu link tu User category
If you find Phoca extensions useful, please support the project
-
Chico008
- Phoca Member

- Posts: 11
- Joined: 05 Sep 2014, 17:43
Re: Create a Menu link tu User category
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 ?
Ok, but now in user control pannel, i only want to have the Image tab, not the others, how can i do ?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Create a Menu link tu User category
Hi, then you need to customize it in the code and remove all the others
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Chico008
- Phoca Member

- Posts: 11
- Joined: 05 Sep 2014, 17:43
Re: Create a Menu link tu User category
I can try this, but can you tell me which file to modify ?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Create a Menu link tu User category
Hi,
components/com_phocagallery/views/user/view.html.php
components/com_phocagallery/views/user/tmpl/ ...
Jan
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

- Posts: 11
- Joined: 05 Sep 2014, 17:43
Re: [SOLVE] Create a Menu link tu User category + only Image
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
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', '') . ' '.JText::_('COM_PHOCAGALLERY_USER'), 'user' );
//
//echo $this->loadTemplate('user');
//
//
//echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-folder-small.png', '') . ' '.$this->tmpl['categorycreateoredithead'], 'category' );
//
//echo $this->loadTemplate('category');
//
//
//echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-subcategories.png', '') . ' '.JText::_('COM_PHOCAGALLERY_SUBCATEGORIES'), 'subcategories' );
//
//echo $this->loadTemplate('subcategories');
echo JHtml::_('tabs.panel', JHtml::_( 'image', $this->tmpl['pi'].'icon-images.png','') . ' '.JText::_('COM_PHOCAGALLERY_IMAGES'), 'images' );
echo $this->loadTemplate('images');
- Jan
- 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
Hi, ok, great to hear it.
Jan
Jan
If you find Phoca extensions useful, please support the project