Hello,
I want the upload form to only show up in the member control panel.
It is currently also displayed in the category view for logged-in users.
How can I change this?
Upload via Member Control Center only
-
- Phoca Member
- Posts: 13
- Joined: 03 Mar 2023, 14:22
- Benno
- Phoca Hero
- Posts: 9119
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Upload via Member Control Center only
Hi,
which Joomla! version?
which Phoca Gallery component version?
which PHP version?
Kind regards.
Benno
which Joomla! version?
which Phoca Gallery component version?
which PHP version?
Kind regards.
Benno
-
- Phoca Member
- Posts: 13
- Joined: 03 Mar 2023, 14:22
Re: Upload via Member Control Center only
I have Joomla version 4.2.8
Phoca Gallery is in version 4.5.2
and the PHP version is 8.1
Phoca Gallery is in version 4.5.2
and the PHP version is 8.1
- Benno
- Phoca Hero
- Posts: 9119
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Upload via Member Control Center only
Hi,
in backend, go to the category under which you see the upload field in frontend and set 'Upload Rights' = 'Nobody'.
Kind regards,
Benno
in backend, go to the category under which you see the upload field in frontend and set 'Upload Rights' = 'Nobody'.
Kind regards,
Benno
-
- Phoca Member
- Posts: 13
- Joined: 03 Mar 2023, 14:22
Re: Upload via Member Control Center only
Hi Benno,
i think you misunderstood me. I would like the upload form to be displayed. But only in the member control center.
I think it's realizable with :not(). But I still don't understand how it works. A German-language tutorial with exercises would not be bad. Do you have a hint for me?
I believe the member control center has the class .pg-ucp-view and the upload form has the id #phocagallery-upload. Now I can somehow say with :not() that #phocagallery-upload should always be hidden unless #phocagallery-upload is inside .pg-ucp-view.
Can you explain me the instruction I need?
i think you misunderstood me. I would like the upload form to be displayed. But only in the member control center.
I think it's realizable with :not(). But I still don't understand how it works. A German-language tutorial with exercises would not be bad. Do you have a hint for me?
I believe the member control center has the class .pg-ucp-view and the upload form has the id #phocagallery-upload. Now I can somehow say with :not() that #phocagallery-upload should always be hidden unless #phocagallery-upload is inside .pg-ucp-view.
Can you explain me the instruction I need?
- Benno
- Phoca Hero
- Posts: 9119
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Upload via Member Control Center only
Hi,
Deine Anforderung war:
Das wird dann in der Kategorieansicht komplett ausgeblendet und nur noch im Mitgliederkontrollzentrum angezeigt.
Freundliche Grüße,
Benno
Deine Anforderung war:
Und genau das passiert nicht mehr, wenn Du den Parameter 'Hochladerechte=Niemand' in jeder Kategorie setzt, in der Du im Frontend in der Kategorieansicht das Uploadformular findest.Ich möchte, dass das Upload-Formular nur im Mitgliederkontrollzentrum angezeigt wird.
Derzeit wird es auch in der Kategorieansicht für eingeloggte Benutzer angezeigt.
Wie kann ich das ändern?
Das wird dann in der Kategorieansicht komplett ausgeblendet und nur noch im Mitgliederkontrollzentrum angezeigt.
Freundliche Grüße,
Benno
-
- Phoca Member
- Posts: 13
- Joined: 03 Mar 2023, 14:22
Re: Upload via Member Control Center only
Wenn ich mir die Hochladerechte nehme, kann ich doch auch über das Mitgliederkontrollzentrum nichts mehr hochladen?
https://abload.de/image.php?img=2023-03 ... iucdda.png
Ist es besser wenn ich auf deutsch oder englisch schreibe? Ich bin zwar nicht gut in englisch und muss den Google Translator benutzen. Aber ich dachte da das Forum auf englisch ist, habe ich auch auf englisch zu schreiben
https://abload.de/image.php?img=2023-03 ... iucdda.png
Ist es besser wenn ich auf deutsch oder englisch schreibe? Ich bin zwar nicht gut in englisch und muss den Google Translator benutzen. Aber ich dachte da das Forum auf englisch ist, habe ich auch auf englisch zu schreiben
- Benno
- Phoca Hero
- Posts: 9119
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Upload via Member Control Center only
Hi,
Ich werde Jan mal dazu befragen...
Wir alle nutzen falls notwendig Übersetzungsprogramme.
Freundliche Grüße,
Benno
Leider hast Du Recht (gerade getestet). Registrierte Mitglieder, die im Mitgliederkontrollzentrum eine Kategorie/Subkategorien angelegt haben sehen, wenn sie eingeloggt sind, in der Kategorieansicht für die von ihnen erstellte Kategorie/Subkategorien (und nur für diese) das Uploadformular. Und leider lässt sich das auch per CSS nicht ausblenden, sonst wird das Formular im Mitgliederkontrollzentrum ebenfalls nicht angezeigt.Wenn ich mir die Hochladerechte nehme, kann ich doch auch über das Mitgliederkontrollzentrum nichts mehr hochladen?
Ich werde Jan mal dazu befragen...
Hier kann jeder schreiben wie er will. Tschechisch, deutsch, englisch, holländisch, französisch, spanisch....Aber ich dachte da das Forum auf englisch ist, habe ich auch auf englisch zu schreiben
Wir alle nutzen falls notwendig Übersetzungsprogramme.
Freundliche Grüße,
Benno
-
- Phoca Member
- Posts: 13
- Joined: 03 Mar 2023, 14:22
Re: Upload via Member Control Center only
Ok, dank dir!
Wenn du etwas rausgefunden hast, lass es mich bitte wissen! ;)
Wenn du etwas rausgefunden hast, lass es mich bitte wissen! ;)
- Jan
- Phoca Hero
- Posts: 47887
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload via Member Control Center only
Hallo,
ja, es gibt dafür kein Parameter, aber man kann es per CSS machen und man kann zwischen Kategorie und UCP View unterscheiden:
Category View:
UCP View
Jan
ja, es gibt dafür kein Parameter, aber man kann es per CSS machen und man kann zwischen Kategorie und UCP View unterscheiden:
Category View:
Code: Select all
.pg-category-view .phTabs {
display: none;
}
Code: Select all
.pg-ucp-view .phTabs {
display: none;
}
If you find Phoca extensions useful, please support the project