User Self Registration- Add User Plugin

Creating and modifying plugins.
fan4chevy
Posts: 4
Joined: Wed Jul 13, 2005 5:52 am

User Self Registration- Add User Plugin

Post by fan4chevy »

I am not sure who created the User Self Registration which is a great asset.

However, I am noticing a few things that may improve this mod and have a few questions pertaining to it.

1. When you click on the activation link in the email that is sent after you register, it takes you to a page that has the same register fields. If you put your information in the fields it tells you that the username is already taken. This confuses the heck out of you.

Solution: Perhaps where the activation link takes you should have the proper log-in fields to sign into your account rather than the initial register fields.

2. Where do I go to change the field in the email to my liking?

Thanks,

Charles
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: User Self Registration- Add User Plugin

Post by garvinhicking »

Maybe you can try to edit the plugins/serendipity_plug_adduser/ directory and look at the two PHP files. They contain the email text that is generated.

I thought that the activation link leads just to a page where a message can be seen that the registration was successful?! Currently have no time to really look into it, I'm sorry.

Best regards
,Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
fan4chevy
Posts: 4
Joined: Wed Jul 13, 2005 5:52 am

Post by fan4chevy »

Thanks Garvin,

I take it that you are the creator of the plug-in? Dispite it all, I really appreciate the plugin as it is a major feature that in my opinion was missing.

Here is the area it is actually taking me too when you click the email activation link:
--------------------------------------------------------------------------

The account has been successfully enabled. You can now log in to the administative panel of this blog, the link to ther is contained in your activation email.
Here you can register yourself as an author for this blog. Just enter your data, submit the form and receive further instructions via mail.

Username
Password
Email
fan4chevy
Posts: 4
Joined: Wed Jul 13, 2005 5:52 am

Is anyone else using this script

Post by fan4chevy »

Is anyone else using this plug in with the same issues? Does anyone know how to fix this bug to where it will go to the correct log in page for email activation?

Your help is appreciated as I can't use this plug in until it is working properly. Eagerly awaiting.

Charles
Thomas
Regular
Posts: 130
Joined: Tue Sep 21, 2004 2:00 pm
Location: Stockerau/NÖ/A
Contact:

Post by Thomas »

If I'm right the user self registration is inserting the users as authours (level 1 I guess). I know that you can disable the right to post anything except comments for users on level 1. What are now the defaults for newly self-registerted users? And can it be set in the plugin?

I just thought it might be a good idea to attract interest when users have to register before seeing the content. :)

Regards, Thomas
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

Even if the smtp server is down the plugin assumes success and tells your account has been created and that you will receive a response.

Code: Select all

User Self-Registration

Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for xxxxxx@yyyyyy.com in W:\www\s9\plugins\additional_plugins\serendipity_plugin_adduser\common.inc.php on line 107
Your account has been created. You should receive an E-Mail with all the necessary information shortly.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, that's right. We had a "silent" dependency that your server setup is right...

I have fixed this in the latest revision now and added an error as well as send better mail headers.

Thanks and regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Hide Register sidebar

Post by vastneonwolf »

Hi Garvin,
Is there a way to hide the Register sidebar if you are already logged in?
Everybody's children are so special. It makes you wonder where all the ordinary grown-ups come from.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Hide Register sidebar

Post by garvinhicking »

Hi!

I think this can be done with the "Hide Sidebar" plugin in a generic way...if not, it would be easy to patch into the plugin.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
iLife06
Regular
Posts: 6
Joined: Mon Aug 07, 2006 5:30 pm

Post by iLife06 »

We're having the same issue that started this thread - users are taken to a page which states that the account was not enabled. The new users are added to the authors table and to the pending authors table, however can't login (they get an error stating an invalid username/password was used).

How are the new users actually approved? Simply by replying to the email? Which, in our case, takes the user to a bad URL.

We did discover that if the admin changes the new users password then the new user is able to login. However, the user is never taken out of the pending authors table.

This has us scratching our heads...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
iLife06 wrote:We're having the same issue that started this thread - users are taken to a page which states that the account was not enabled. The new users are added to the authors table and to the pending authors table, however can't login (they get an error stating an invalid username/password was used).
You can configure the Self-Registration plugin so that either authors are inserted "straight into the database" of if they need email approval first.

New authors can only get into the serendipity_authors table, if the "Straight insertion" is activated. If that happens, no approval is involved at all. How does an entry for such an author look like in the serendipity_authors table?

If approval though is configured, an email will be sent to the new author. This mail contains a HTTP Link that a user has to click on to approve his account. Serendipity will then copy the pending_author to the authors table.

If you say, users are taken to a Bad URL, how does that URL look like exactly? It might be that because of a long URL the URL is split into two parts, and not the full URL is clicked on by the users?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
iLife06
Regular
Posts: 6
Joined: Mon Aug 07, 2006 5:30 pm

Post by iLife06 »

Garvin,
The URL that's given is below.
http://www.my_domain_name.com/index.php?serendipity%5Badduser_activation%5D=429b0a1c5efi38v7b891f8eb69237ea5#adduser

We've checked to make sure that there are no line wrap issues in the link.

The page the user is taken to then displays the following message.
"The account could not be enabled. Maybe you copied the wrong URL from your activation email?"
Any help is appreciated.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

How did you configure the plugin exactly, which options did you set how?

Can you check your pending_authors table and check if the 'hash' column of the users listed there matches your submitted hash: '429b0a1c5efi38v7b891f8eb69237ea5'?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
iLife06
Regular
Posts: 6
Joined: Mon Aug 07, 2006 5:30 pm

Post by iLife06 »

Garvin,

1) Sidebar: User Self-Registration version 1.10
Forbid creating entries? NO
Rights: Publishing entries? YES
Show sidebar login box: YES
Straight insert? NO

2) Event Plugins: User Self-Registration version 2.18
Only registerd users may post comments? YES
Prevent identity faking YES

The hash values matched via the pending_authors table and the url submitted as well.

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Which other event plugins and versions are you using, and in which order?

It looks like sth is interfering...

Regards,
Garin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply