User Control Panel
-
cpm73
- Phoca Newbie

- Posts: 3
- Joined: 19 May 2017, 22:19
User Control Panel
Is it possible to remove the subcategories tab in the user control panel? Since I only want user to have the 1 main folder I would rather not have the subcatagory option even be seen by them in their control panel.
- Benno
- Phoca Hero

- Posts: 9964
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: User Control Panel
Hi,
you can set: backend --> Components --> Phoca Gallery --> Control Panel --> Options --> Users --> User Control Panel Settings -->
Maximal Count Of Subcategories=0
Then no user is able to create subcategories.
To hide the tab:
/media/com_phocagallery/css/main/phocagallery.css Line: 427
Change this code:
to:
Kind regards,
Benno
you can set: backend --> Components --> Phoca Gallery --> Control Panel --> Options --> Users --> User Control Panel Settings -->
Maximal Count Of Subcategories=0
Then no user is able to create subcategories.
To hide the tab:
/media/com_phocagallery/css/main/phocagallery.css Line: 427
Change this code:
Code: Select all
dl.tabs dt.open {
background: #ffffff;
border-bottom: 1px solid #ffffff;
z-index: 100;
color: #000;
}Code: Select all
dl.tabs dt.open {
background: #ffffff;
border-bottom: 1px solid #ffffff;
z-index: 100;
color: #000;
display: none;
}Benno
-
cpm73
- Phoca Newbie

- Posts: 3
- Joined: 19 May 2017, 22:19
Re: User Control Panel
Hey Benno, I appreciate the reply and assist. While this did remove a tab, it removed the main catagory tab leaving the subcatagory tab.. I want the reverse (have main tab but no subcat tab)
- Benno
- Phoca Hero

- Posts: 9964
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: User Control Panel
Hi,
This is peculiar. In my test environment, it works the way I described.
See images below:
Before code changing:

After code changing:

Kind regards,
Benno
This is peculiar. In my test environment, it works the way I described.
See images below:
Before code changing:

After code changing:

Kind regards,
Benno
-
cpm73
- Phoca Newbie

- Posts: 3
- Joined: 19 May 2017, 22:19
Re: User Control Panel
Alright got it to work, thank you so much. I'm not sure why it flipped them before, but I went in and tried again and it did it properly this time around. Cheers Benno. NOw I have to figure out why when I click on images tab the main catagory tab disappears and the subcatagories tab appears (then if i click on the subcat tab it disappears and main cat tab appears) lol Best way to learn is to tinker :)
- Benno
- Phoca Hero

- Posts: 9964
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: User Control Panel
Ok.
Kind regards,
Benno
Kind regards,
Benno