Forum


stop the Jomres Main Menu from showing?

More
3 months 1 week ago - 3 months 1 week ago #47235 by Dario
Hi everyone,

I don't want to show the Jomres Main Menu as long as a user is not logged in - is there any easy way to do it?

I don't really need it and it takes only space above the property list and the property details page that's why I want to eliminate it. Obviously I could simply empty the mainmenu_wrapper_alternate.html template, but then the menu is missing also when a User is logged in and wants to edit properties - and this is when it is needed. Any ideas how to show it only when somenone is logged in?

Jomres Version 9.12.0 and Joomla 3.8.12

Thanks,
Dario
Last edit: 3 months 1 week ago by Dario.
More
2 months 3 weeks ago #47245 by Vince Wooll
Use the Access Control plugin Dario, then make it so that only logged in users can see the menu options. When you install the plugin and visit the AC page the Videos button, which is context sensitive, should include the video on Access Control to give you an idea of how it works.

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
More
2 months 2 weeks ago - 2 months 2 weeks ago #47253 by pauldrijs
Hi Vince, I would prefer to use access control because its so configurable but if I remember right for this particular issue it still leaves the grey empty jomres banner (Main Menu) and the “Account Details” label visible (if not logged in). But say if you think I may have missed some other changes that deal with those issues separately. BTW I don't allow ordinary users to login so I am ok with that limitation.

If it helps, I found a different solution (frig!) that seems to work which does not show the grey jomres banner at all if you are not logged in but does show the full banner if you are, access control can still obviously be applied. To do this I commented out the whole of the "my account section menus” of j09995menu.class.php, (from about line 69). If you think doing this is a bad idea then please just say so. If its not a bad idea it may be the basis of of a programmed solution.

Also just for info (and it may be a problem with my localhost) but when I just tried ACL and set something to “nobody” when I came back to it it showed it as set to “anybody”. Repeated a few times and same result, nobody gets changed to anybody.

Cheers
Paul
Last edit: 2 months 2 weeks ago by pauldrijs.
More
2 months 2 weeks ago #47255 by Vince Wooll
Paul, if the menu is empty (there are no options to show a particular user/class of user) then the menu is automatically hidden.

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
More
2 months 2 weeks ago #47256 by Vince Wooll

pauldrijs wrote: Also just for info (and it may be a problem with my localhost) but when I just tried ACL and set something to “nobody” when I came back to it it showed it as set to “anybody”. Repeated a few times and same result, nobody gets changed to anybody.


What did you try to change?

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
More
1 month 2 weeks ago - 1 month 2 weeks ago #47318 by pauldrijs
Very sorry Vince for not responding sooner, for some reason I didn't spot your question. If I try to change any access control item (add_review, add_review_reply, add_service _to_bill etc etc) to "nobody" then that state is not maintained and if I open the ACL list again I find the ones I had changed to "nobody" have reverted back to "default". Changing an item to anything other than "nobody" saves the change fine. I have just done that on 9.16.1 but first spotted it on 9.15.0. It's not a problem for me, just thought you may want to know.
Cheers
Paul.
Last edit: 1 month 2 weeks ago by pauldrijs.
More
1 month 2 weeks ago #47325 by Vince Wooll
I found a bug in the access control plugin yesterday that mirrors your issue. The plugin has been updated, Paul, to resolve the issue. Do you want to update yours?

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
The following user(s) said Thank You: pauldrijs
More
1 month 2 weeks ago #47330 by pauldrijs
Thanks Vince. Don't worry its not an issue for me, just thought I was going mad! I'll wait and catch the fix when it rolls into a jomres release.
Cheers
Paul.

ABOUT US

Vince portrait smallaladar

Developed and maintained by Vince Wooll and Aladar Barthi, Jomres was initially conceived in early 2005 as a Mambo based solution to a client’s hotel management needs. While it wasn't originally expected to be an online booking system it quickly morphed into one as users requested more and more features.

As the number of feature requests grew Vince knew that he would need to dedicate more time to the project and in July 2005 Jomres was formally released as a commercial project. Since then, Jomres has become one of Mambo’s, and now Joomla’s, longest running projects. It has survived various versions of Mambo, then Joomla 1.0, 1.5, 1.6, 1.7, 2.5 and 3.

Aladar joined the project in 2010 after using Jomres for his own projects. He was active on the forum, helping other members of the community and eventually Vince invited him to join the team. He has since become an integral part of the project and has contributed significantly to it's development over the years.

Whilst not formally part of the Jomres project, Rodrigo Rocco and the team have become firm friends. Rod is a freelancer who specialises in doing custom work for Jomres users and developing custom plugins for the system that take advantage of it's modular design. He has built many useful extensions including his fabulous new Valentina Template Package.

 

Jomres and the Jomres Logo is trademarked and can't be used without written consent from the owner.

www.jomres.net is not affiliated with or endorsed by the Joomla! Project, Open Source Matters or the WordPress project. The Joomla! & WordPress names and logos are used under a limited license granted by Open Source Matters and the WordPress Projects.

© Copyright 2005 - 2018 Woollyinwales IT.