User Control Panel

Phoca Gallery - image gallery extension
cpm73
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 May 2017, 22:19

User Control Panel

Post by cpm73 »

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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9964
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: User Control Panel

Post by Benno »

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:

Code: Select all

dl.tabs dt.open {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
    z-index: 100;
    color: #000;
}
to:

Code: Select all

dl.tabs dt.open {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
    z-index: 100;
    color: #000;
    display: none;
}
Kind regards,
Benno
cpm73
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 May 2017, 22:19

Re: User Control Panel

Post by cpm73 »

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)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9964
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: User Control Panel

Post by Benno »

Hi,
This is peculiar. In my test environment, it works the way I described. :idea:
See images below:

Before code changing:
Image

After code changing:
Image

Kind regards,
Benno
cpm73
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 May 2017, 22:19

Re: User Control Panel

Post by cpm73 »

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 :)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9964
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: User Control Panel

Post by Benno »

Ok.

Kind regards,
Benno
Post Reply