Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2005-10-26 12:22:07

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: mem_self_register

I am using 4.0.1

Offline

#122 2005-10-26 13:16:19

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: mem_self_register

Textpattern: 4.0.1 (r1028)

Offline

#123 2005-11-12 04:30:10

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_self_register

Hi,
I have found some issues with this plug-in.

  • If someone tries to register with a username that already exists, it gets the success message (self_register_success). But, of course, none account is created, because the username already exists. The expected behaviour would be that the user read something like: “Username already exists. Please, choose another username.”
  • if you choose to “use_ign_db -> yes”, then you can turn it off. I mean, if you want to change to “use_ign_db -> no”, you cannot. When you press the install buttom, every seems to work fine, but you get this message: “Pref ‘mem_self_use_ign_db’ is already installed. Current value is ‘1’.”
  • I also get the “Array” in the e-mail signature, the e-mail sender, etc. I’m using 4.0.2.

That’s all by now.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#124 2005-11-18 19:18:06

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_self_register

  • If someone tries to register with a username that already exists, it gets the success message (self_register_success). But, of course, none account is created, because the username already exists. The expected behaviour would be that the user read something like: “Username already exists. Please, choose another username.”

I’ll have to double check this. If it doesn’t give an error, then the next version will.

  • if you choose to “use_ign_db -> yes”, then you can turn it off. I mean, if you want to change to “use_ign_db -> no”, you cannot. When you press the install buttom, every seems to work fine, but you get this message: “Pref ‘mem_self_use_ign_db’ is already installed. Current value is ‘1’.”

Are you able to change the value from within Preferences->Advanced? The installer is only meant to make sure that all values exist. It will not override existing values.

  • I also get the “Array” in the e-mail signature, the e-mail sender, etc. I’m using 4.0.2.

Are you using 0.6.4?

Offline

#125 2005-11-19 04:20:24

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_self_register

manfre wrote: Are you able to change the value from within Preferences->Advanced? The installer is only meant to make sure that all values exist. It will not override existing values.

Ops! I have never seen those options in Preferences -> Advanced.
Yes, I can turn it off from there. Thanks Manfre.

Are you using 0.6.4?

Yes. I’m using 0.6.4 in 4.0.2 official release.

Thanks, Manfre.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#126 2005-12-16 06:05:50

chrisrhee
Member
Registered: 2004-07-01
Posts: 33
Website

Re: mem_self_register

> maniqui wrote:

> bq. manfre wrote: Are you able to change the value from within Preferences->Advanced? The installer is only meant to make sure that all values exist. It will not override existing values.

Ops! I have never seen those options in Preferences -> Advanced.
Yes, I can turn it off from there. Thanks Manfre.

Are you using 0.6.4?

Yes. I’m using 0.6.4 in 4.0.2 official release.

Thanks, Manfre.

I’m getting both the Array problem and the privileges problem running the latest version of the plugin and TXP4.0.2

Offline

#127 2005-12-16 14:29:38

chrisrhee
Member
Registered: 2004-07-01
Posts: 33
Website

Re: mem_self_register

I also get the success page saying an email was sent when I try to register with the same username as an existing user. The account doesn’t seem to be created, but how can I output an error message instead of the success page?

Offline

#128 2005-12-16 16:33:35

chrisrhee
Member
Registered: 2004-07-01
Posts: 33
Website

Re: mem_self_register

I’ve tried a bunch of things to edit the plugin with my somewhat limited PHP knowledge. I’ve gotten rid of the Array junk and starting setting the correct privilege #…

I’m having a hard time with sending an error message for when someone tries to sign up with an existing username/email. No matter what, I get sent to the Success page.

What I’d like to do is check to see if the username and/or email they entered exists in txp_users and if it does, send them back to the sign up form with an error message saying they should pick a different username/email. But I don’t know how to stop the plugin from going to the Success content whenever the Submit button is pressed.

Offline

#129 2006-01-05 22:51:01

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_self_register

I’ve gotten rid of the Array junk and starting setting the correct privilege #…

Hi chrisrhee

can you share the improvements you made in the plug-in?

Also, I hope Manfre is working in the community driven plug-ins combo :)

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#130 2006-01-17 12:17:34

cubeshark
Member
From: USA
Registered: 2005-09-19
Posts: 19
Website

Re: mem_self_register

Will this plugin work for 4.0.3?

I have been able to install, but when i use the form to submit, it just takes me to the homepage. I don’t see the success page, and also i don’t get any emails as well to confirm.

Thanks.


Cheers,

Ritchie

Offline

#131 2006-01-26 20:04:20

dea
New Member
Registered: 2006-01-26
Posts: 2

Re: mem_self_register

cubeshark, I had the same behaviour. Having a look at the html page source I saw that any submission of the registration form would redirect me to the sites root. This brought me to mem_self_register_form() where I found the reason of this behaviour:

<pre>
$action_url = $_SERVER[‘REQUEST_URI’];
$qs = strpos($action_url,’?’);
if ($qs) $action_url = substr($action_url, 0, $qs);
</pre>

<code>$action_url</code> is the submission URI used with the “Submit” button. As it being truncted right at the first question mark, I commented out the line <pre>$qs = strpos($action_url,’?’);</pre> which works fine for me now.

I think, I’m not too cute in doing so as there is no protection against someting like “/?event=…” so I wll rewrite this (and post it here) later. Currently, I’m badly stuck with the “Array” issue…

Using 0.6.4 on 4.0.3 /w messy in a subdir

Last edited by dea (2006-01-26 20:06:06)

Offline

#132 2006-01-26 20:30:19

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_self_register

dea, the line you commented out was the reason it was jumping back to the home page. That line was removing the messy url values from the query string. I didn’t put too much testing in to messy urls. I’ll come up with a fix that will handle messy urls in a cleaner way.

I uploaded 0.6.5 to my site. It has a few minor changes since 0.6.4, most notably the “array” problem. If you come across any problems, let me know.

Offline

Board footer

Powered by FluxBB