Roadblock extension - show a periodic message on login
Posted: 14 October 2008 03:43 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  35
Joined  02-11-2008

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.

 Signature 

Eli Van Zoeren
http://elivz.com

Profile
 
 
Posted: 03 November 2009 11:30 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  101
Joined  08-12-2007

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?

Profile
 
 
Posted: 05 November 2009 09:41 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-11-2008

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.

 Signature 

Eli Van Zoeren
http://elivz.com

Profile
 
 
Posted: 06 November 2009 10:24 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  101
Joined  08-12-2007

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

Profile
 
 
Posted: 07 November 2009 03:59 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-11-2008

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?

 Signature 

Eli Van Zoeren
http://elivz.com

Profile
 
 
Posted: 08 November 2009 12:02 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  101
Joined  08-12-2007

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.

Profile
 
 
Posted: 08 November 2009 12:41 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-11-2008

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.

 Signature 

Eli Van Zoeren
http://elivz.com

Profile
 
 
Posted: 09 November 2009 01:13 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  101
Joined  08-12-2007

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.

Profile
 
 
Posted: 09 November 2009 09:55 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-11-2008

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.

 Signature 

Eli Van Zoeren
http://elivz.com

Profile
 
 
Posted: 09 November 2009 10:51 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
RankRank
Total Posts:  101
Joined  08-12-2007

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

Profile
 
 
Posted: 15 November 2009 11:31 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-11-2008

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.

 Signature 

Eli Van Zoeren
http://elivz.com

Profile