overview.php page fpr guests

If you aren't speaking german, you can ask for support or post your request here.
Antworten
kenlhlp
Beiträge: 5
Registriert: 25. Sep 2022, 16:17

overview.php page fpr guests

Beitrag von kenlhlp »

I would like guests to not be able to see announcements, events, etc. and the side menu modules. I only want members to have access to theses items.

I figured out how to setup a guest page, but unable to remove the side menu modules for just the guest page.

This is the page I setup for guests: https://sedaliakennelclub.org/admidio/a ... rview1.php

Members page has all the plug ins available.

Just cannot figure out how to remove the side menu modules for guests.

Any help would be appreciated.

Thanks,
Ken
kenlhlp
Beiträge: 5
Registriert: 25. Sep 2022, 16:17

Re: overview.php page fpr guests

Beitrag von kenlhlp »

I figured it out...no worries..
dkruger
Beiträge: 8
Registriert: 16. Feb 2024, 18:10

Re: overview.php page fpr guests

Beitrag von dkruger »

I would like to achieve the same, can you kindly post the solution you have found ?
Benutzeravatar
fasse
Administrator
Beiträge: 6165
Registriert: 12. Nov 2005, 16:06

Re: overview.php page fpr guests

Beitrag von fasse »

Within the Smarty template system you have the parameter validLogin . This is set to false for guests and true if a valid login exists.

Does this help you to solve your problem?
leroy935
Beiträge: 9
Registriert: 18. Apr 2024, 12:56

Re: overview.php page fpr guests

Beitrag von leroy935 »

I know this thread is old, but I have the same issue. In which folder and file(s) is the validLogin variable?
Benutzeravatar
fasse
Administrator
Beiträge: 6165
Registriert: 12. Nov 2005, 16:06

Re: overview.php page fpr guests

Beitrag von fasse »

Within the template files at adm_themes/simple/template there you can use it. But if you only want to hide menu entries of plugins you can do this in the menu module. Just open a entry there and set a specific role for visibility.
leroy935
Beiträge: 9
Registriert: 18. Apr 2024, 12:56

Re: overview.php page fpr guests

Beitrag von leroy935 »

Thank you for your reply, Fasse. This is such a good app. Well done!

I would prefer the latter part of what you said; "...But if you only want to hide menu entries.."

So for example, when the public goes to the homepage, i.e. before validLogin, then they see the menu titled 'Administration' and under that of course the menu entries, for example; Events, Messages, etc.

I want to hide 'Events' from the public menu, but once the user is validLogin, then show them the Events menu entry.

I know I can Add a new entry, where I can then set the visibility to member, or Manager, or Administrator, etc.
(adm_program/modules/menu/menu.php)

^^ but the 'set visibility' option is not available when I edit the Events menu for example.

I'm guessing the workaround is to create a new menu entry, to the url for Events, and set it's visibility as I want, then disable the admidio system Events menu. << hoping you know what I mean there.. (*disable the Events module through adm_program/modules/preferences/preferences.php#panel_)

Am I missing something?

Please let me know when you can.
Thank you.
Benutzeravatar
fasse
Administrator
Beiträge: 6165
Registriert: 12. Nov 2005, 16:06

Re: overview.php page fpr guests

Beitrag von fasse »

The general view for our default modules can be handled within the preferences. There is a preference "access to the module".
For the event and announcements module you can handle a more granular rights management through the categories/calendars. There you can add the role members to the visibility than only those members will see events / announcements of that category.
leroy935
Beiträge: 9
Registriert: 18. Apr 2024, 12:56

RESOLVED Re: overview.php page fpr guests

Beitrag von leroy935 »

My bad. I got it now. Thank you very much.
Antworten