Page Redirection

  • hjames
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #57639 by hjames
Page Redirection was created by hjames
I am using Joomla Content to display my events because of a special customer request.

Part of the solution is to restrict events to certain user groups in Joomla, so to achieve this we are requiring users to register before they can actually join the event. To handle this ACL situation in Joomla we decided to use Membership Pro which handles the ACL needs perfectly. However, the issue comes at the time the user attempts to register for an event.

What happens:
- User is NOT a member of en eligable ACL level - they are taken to an error that looks like the following: screencast.com/t/gzvDMlhHG

What SHOULD happen:
- User is NOT a member of an eligable ACL level - they should be great with a notification of some sort (page redirect, popup, something) that tells them they must be a member of group a, b, c, etc.. whatever it may be to register for that event.

As of now, it simply looks like the website is broken.

Sample where user is not part of the correct ACL: screencast.com/t/tPlKZY15

Need help ASAP!

- James

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #57680 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Page Redirection
Hi James

You can get this get this file, unzip it, upload it to components/com_eventbooking/views/register folder. After that, when users try to register, if they have not logged in, they will be asked to login to continue the registration

Tuan

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

  • hjames
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #57681 by hjames
Replied by hjames on topic Page Redirection
Tuan, this works in the sense that it re-directs the user to the default Joomla Login/Registration page but we are using Membership Pro and need them to be re-direct to its login/register page. Can you provide an updated file that will handle this?

It looks like line 37 of the file above is handling the re-direct currently.

Any help is appreciated.

Thanks,
James

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #57682 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Page Redirection
Membership Pro doesn't have it own login page. The login feature is on membership sign up form. In case you have more than one plans, I don't know what plan users should be redirected to

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

  • hjames
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #57683 by hjames
Replied by hjames on topic Page Redirection
Gotcha, I will do as I did above and make a special content page which holds the plans and a login module and handle it that way.

Was I correct that line 37 is holding the redirect link and it is the line that should be changed with my custom URL?

Also, is it possible to add this as an option in the Configuration of Event Booking or even to each plan? Rather than hacking things up and hoping they are not overwritten on a future release it would be nice to just have an option.

Last, rather than putting this in the folder mentioned above to prevent it from being over written can I place it in my template html folder? If so, which folder?

Thanks,
James

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #57684 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Page Redirection
Yes. Line 37 is correct line to handle the redirect.

Also, is it possible to add this as an option in the Configuration of Event Booking or even to each plan? Rather than hacking things up and hoping they are not overwritten on a future release it would be nice to just have an option


=> Unfortuantely, I could not add this as a standard feature in Events Booking. Seems not many customers need it

Last, rather than putting this in the folder mentioned above to prevent it from being over written can I place it in my template html folder? If so, which folder?


The view class in Joomla could not be override in template folder, so it is not possible to use template override. Template override only works for layout files (files in tmpl folder of each view)

So you will need to keep this "hack" and redo it yourself when you upgrade to future releases of the extension

Tuan

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

  • hjames
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #57685 by hjames
Replied by hjames on topic Page Redirection

=> Unfortuantely, I could not add this as a standard feature in Events Booking. Seems not many customers need it


Tuan, I paid you an additional $50.00 to make me a plugin that would handle the redirects. Now your telling me I am going to have to hack the code each time there is a new release? Sorry, but I don't see where the $50.00 was used?

Thanks,
James

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

  • hjames
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #57686 by hjames
Replied by hjames on topic Page Redirection
I'm on Skype if you care to chat.

James

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #57687 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Page Redirection
I am talking here with a general forum question (without the plugin which we discussed). For the plugin which we discussed, as you see, I have solved part of it by allow auto login in Membership Pro.

I will get back to that work this afternoon. We will talk on Skype on your morning to finalize the project. (I am busy in the morning with support forum/tickets, and could not talk now)

Tuan

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

  • hjames
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #57688 by hjames
Replied by hjames on topic Page Redirection
Thanks Tuan, I am in the US so another 11 hours before I am at work and awake but I will be on Skype at that time.

Thanks,
James

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

Moderators: Tuan Pham Ngoc