Re: Registered Users Plugin

Thanks Andrewman, that worked smile

I had not set "Under the 'Settings' tab, Login select 'required'."
Its not documented that this is required for protection to work (I had asumed this setting was only for wolf internal roles), also the function of setting the page to "Login page" was not clear to me at first.

Now all is fine. Thanks very much smile

http://geovoyagers.de - Powered by wolfcms

77

Re: Registered Users Plugin

Just installed the plugin and read through these posts to try and figure this out but having no luck.
I've installed the plugin and clicked Enable - but it has "error" next to it, just after the version number.

I'm using Wolf 0.7.5 and Reg Users version 0.9.9. Any idea how to get it working?

Thumbs up

Re: Registered Users Plugin

The error just means Wolf CMS is unable to find data online on what the current version is. You can safely ignore that.

What is your problem? Have you checked and completed all of the settings for the plugin?

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

79

Re: Registered Users Plugin

mvdkleijn wrote:

The error just means Wolf CMS is unable to find data online on what the current version is. You can safely ignore that.

What is your problem? Have you checked and completed all of the settings for the plugin?

I'm not sure what else needs checking. I've followed the instructions in readme.txt. There's no tab or settings option when I activate it.

Thumbs up

Re: Registered Users Plugin

mvdkleijn wrote:

I hope to finish that this weekend.

Hi, just wondering if you managed to get an update for this plugin or not since it was a couple of months ago now when you posted this? Is it still in development?

Thanks.

Thumbs up

81

Re: Registered Users Plugin

Those five pages are .html.
One is called registration.html
Should I put this code in it, of course wrapped in html ?
<?php ru_register_page(); ?>

Those files are in the wolfcms root ?

Are there also five .php pages made by the menu, at which to add the same code ?

It is a pity that the documentation is so short.

Thanks

Thumbs up

Re: Registered Users Plugin

Just make a page in the administration panel called "register", and make sure that that page contains the code

<?php ru_register_page(); ?>

There are no real pages created. You create the pages by adding them to the page system and populate it with some Registered Users Plugin functions calls.

The documentation is pretty clear in my opinion. It's all on the about page in your administration backend.

Last edited by s.meijer (2011-12-15 15:54)

83

Re: Registered Users Plugin

s.meijer wrote:

Just make a page in the administration panel called "register", and make sure that that page contains the code:

<?php ru_register_page(); ?>

Thanks for the reply BUT
I have just done this and again go into another white page after registration. And in my email... nothing.

First time since months, for I document difficult steps in a program called ListPro and always succeed in getting there, that it doesnot work, but you said the documentation was pretty clear. I think not.

Last edited by col (2011-12-15 16:41)

Thumbs up

Re: Registered Users Plugin

after a while trying to implement edit page by role, I found out that Registered users in permission_page is actually storing the role_id ,so the table could be better renamed to role_page...
I was trying to modify the code of RegisteredUsers to do this tongue

If I am correct I would like to make a suggestion for future releases. Maybe change the table name to better reflect this ... smile

Last edited by trister (2012-02-23 10:59)

Thumbs up

Re: Registered Users Plugin

It might not be related at all, but since I updated to 0.7.5 SP1, the logout part of this plugin doesn't work... Anyone else found this?

It works in the sense that if you go to the logout page it redirects the user back to the homepage - however the user isn't actually logged out!

Thanks,
Dan

Thumbs up

Re: Registered Users Plugin

You are correct sir. It's a side effect of the CSRF token check that's been added to the logout function to prevent unauthorized logouts. Technically its was a CSRF vulnerability. I was a little hesitant whether I'd treat it as such but decided to do so anyway.

You can temporarily achieve the same effect as the normal logout function by replacing the content of the ru_logout() function in the plugin's index.php by this:

        // Allow plugins to handle logout events
        Observer::notify('logout_requested');

        $username = AuthUser::getUserName();
        AuthUser::logout();
        Observer::notify('admin_after_logout', $username);
        redirect(get_url());
Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: Registered Users Plugin

Hello,
Is there an easy way to add captcha to the registration and the lost password forms? I looked at the Captcha Helper, but I'm not sure it would be useful for me.
Thanks in advance.

Thumbs up

Re: Registered Users Plugin

Ok, got it working with recaptcha, turns out it's quite easy.

Here are a few thoughts about this plugin:

Issue 1: Lost pass function doesn't check if a user with the typed address really exists. It sends the mail with a new pass even if there is no user with that email.

Issue 2: Lost pass is not really working, as it just updates the password field and not the salt field. I fixed it by simply emptying the salt in the query, so that Wolf falls back to the simple sha1 password encryption.

Issue 3:  The template parts (on the settings page of the plugin) could use some kind of "template variables", for example the welcome message consists now 3 parts: header text + random key + footer text

// now it's like:
$message = $welcome_email_pt_head . $code_url . $welcome_email_pt_foot;
// I would do:
$message = str_replace('[confirm_url]', $code_url, $welcome_email_body);

Issue 4: I noticed that when I register with an email containing a "+", something goes wrong when confirming. The script creates a user with empty username and email, and it doesn't get deleted from the registered_users_tmp table.

Thumbs up

Re: Registered Users Plugin

Thanks for the remarks concerning the issues. I'll make sure those work. I'm reworking the plugin anyway since its not very stable in its current form.

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.