Access to event for non registered users

  • wirex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #73307 by wirex
Hi,

I'm trying to restrict access to event to registered users only. I have set event access and registration access to Register and it works as expected.
The issue I have is when user is not logged in but he know full url of event he got message: "The event you are trying to access is invalid". I would like to redirect user to login page in such case. Is there any way to do so?


Thanks, Wirex

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #73308 by James Riley
Replied by James Riley on topic Access to event for non registered users
I think you should be able to make it work without modifying the extension's code :)

1) Try changing the default [The event you are trying to access is invalid] message in the Translation tab to something like
[You need to be logged in to register for this event. <br /><a href="/your-login-page/' class="btn">CLICK HERE TO LOG IN</a>]

2) Alternately, your could use an extension like NoNumber's free Modules Anywhere to call a log-in module and insert it into a custom module position in place of the <a ......... /a> above.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 9 years 5 months ago by James Riley. Reason: formatting, add link to Modules Anywehre

Please Log in or Create an account to join the conversation.

  • wirex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #73309 by wirex
Replied by wirex on topic Access to event for non registered users
Hi James,
Thanks for your idea. I thought about just changing translation but then in case of real error user will see this message and this can be a bit confusing ;) Another thing is that "The event you are trying to access is invalid" is show as a message in body of my template and could be overlook by user, specialty on mobiles.

Hope there is another way to redirect user to login page ;)

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #73310 by James Riley
Replied by James Riley on topic Access to event for non registered users
So much for me and my good ideas :laugh:
Hope you're able to find some other way of making it work. Maybe the Devs will consider adding official support for it.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

Please Log in or Create an account to join the conversation.

  • wirex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #73312 by wirex
Replied by wirex on topic Access to event for non registered users
Any idea is good :) It's always nice to have opinion form other point of view. If nothing better can be done I will go with this as walk around ;)

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc