We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Roadblock extension - show a periodic message on login

Development and Programming

EliVZ's avatar
EliVZ
37 posts
17 years ago
EliVZ's avatar EliVZ

I have just made available my first EE extension. You can read all about in on my website, but the short version is that it allows you to show a message to your users periodically on login (every session, every week, every year, etc.). I am using this on a client site to display the terms of use to members upon their first login. It also has the capability to track users either by User ID or by individual computer (using cookies), so it several people use the same login credentials they will each see the message.

Please pass on any bugs you find or improvements/requests you see. I will do my best to help. Visit my site for details or download the extension directly.

       
wecreateyou's avatar
wecreateyou
86 posts
16 years ago
wecreateyou's avatar wecreateyou

Great concept! It sounded really cool so I gave it a try and it doesn’t seem to do anything for me. No redirect, no user message, nothing. Any Ideas?

       
EliVZ's avatar
EliVZ
37 posts
16 years ago
EliVZ's avatar EliVZ

I have to admit that I haven’t looked at the code for this extension since last year, so I’m not sure what the problem might be. I assume that you did enable the extension and changed the settings as appropriate? You need to enter either a url to redirect to or message text, otherwise nothing will happen.

Let me know if that helps, or if you can give me any more detail on your EE version and extension settings.

       
wecreateyou's avatar
wecreateyou
86 posts
16 years ago
wecreateyou's avatar wecreateyou

The extension is definitely enabled but no joy. I tried it with a template in the field and without. I’m running 1.6.8 and PHP 5.x

       
EliVZ's avatar
EliVZ
37 posts
16 years ago
EliVZ's avatar EliVZ

Do you have any other extensions installed that could be interfering? Given the way Roadblock works this seems unlikely, but I’m sure it’s possible.

Oh, one thing that I just realized may not have been clear: this only shows the message when a user logs on in the frontend (a template that includes the {exp:member:login_form} tag). You will never see a message when logging in to the Control Panel. Is that the issue, by chance?

       
wecreateyou's avatar
wecreateyou
86 posts
16 years ago
wecreateyou's avatar wecreateyou

I did take into account everything you mentioned, I think the problem is likely that I am conflicting with another extension. Not a conflict in the code but I think there’s another extension in my routine that controls user login. I’ll sort it out and let you know.

Thanks for the responses. I do appreciate your help.

       
EliVZ's avatar
EliVZ
37 posts
16 years ago
EliVZ's avatar EliVZ

Let me know what you find out. You can always try disabling all the other extensions and then re-enable one at a time until it stops working. If you can figure out which extension it is conflicting with, I will see what I can do to work around the problem.

       
wecreateyou's avatar
wecreateyou
86 posts
16 years ago
wecreateyou's avatar wecreateyou

The conflict doesn’t seem to be a coding one. I have the Twomile Login Redirect plugin installed and I think that’s over-riding Roadblock’s redirect.

It would be great to combine the two addons. They don’t do the same thing exactly, Twomile’s has a greater degree of control for login redirects, but the Roadblock approach and concept (custom message) would be an awesome addition to it’s functionality.

Thanks again for sharing the plugin and your time/thoughts.

       
EliVZ's avatar
EliVZ
37 posts
16 years ago
EliVZ's avatar EliVZ

So all you would need is a setting for the url to redirect to if we’re not showing the user your roadblock message? I should be able to add that pretty easily. I will try to make time for that in the next few days and post and update here.

       
wecreateyou's avatar
wecreateyou
86 posts
16 years ago
wecreateyou's avatar wecreateyou

That sounds great! All the while bypassing that unsightly EE login confirmation page. I look forward to trying this out.

       
EliVZ's avatar
EliVZ
37 posts
16 years ago
EliVZ's avatar EliVZ

Wecreateyou-

Okay, I finally got around to adding the option to redirect to another url of you choosing when the roadblock is not shown (skipping the “logged in” system message). I have to admit I haven’t tested it super-thoroughly, so definitely let me know if you find any bugs (that said, there is very little new code from the last version, so it should be fairly stable).

Hope this fixes your problems! Tell me if it doesn’t.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.