Fri May 20, 2005
Self Registration Plugin (mem_self_register)
This plugin is designed to enable community driven sites. Users will be able to register themselves for an account to access the system. This plugin is compatible with the ign_user_password plugin alternate user table. This plugin provides user side tags for generating an html form where users can edit their account information.
Features:
- Users can create their own accounts, with an admin defined privileges.
- Installation wizard located in plugin help.
- Configurable registration form that can appear anywhere on a Textpattern site.
- Configurable email message that is sent to users upon successful creation of account. Admin will also receive a copy of this email.
- No modifications are needed to Textpattern code.
- Configurable user side form that allows users to edit their Real Name or Email address.
- Configurable user side form that allows users to change their password.
- Support for ign_password_protect 0.4’s alternate user database.
Revisions
- 2005.05.20 – 0.1 Initial Release
- 2005.05.29 – 0.2
- Fixed if_self_registered plugin.
- Prefixed all template tags with “mem_” to prevent tag collision.
- 2005.06.08 – 0.2.1
- Fixed tag name prefix so it matches documentation.
- Changed require calls to require_once to prevent include errors.
- 2005.06.09 – 0.2.2
- Reduced the scope of including files.
- 2005.07.05 – 0.3
- Added email validation. Fixed if_self_registered error on initial form submission.
- 2005.07.25 – 0.4 Textpattern RC4
- Updated plugin to be compatible with Txp RC4.
- 2005.09.01 – 0.5 Textpattern 4.0
- Added user-side profile support. txp:mem_change_password_form, txp:mem_user_edit_form
- Fixed form so warning messages appear if a field is left blank.
- Added Installation Wizard and updated plugin description to mention install in help.
- 2005.09.07 – 0.6
- Added support for ign_password_protect 0.4, which added an alternate user table.
- 2005.09.08 – 0.6.1
- Replaced str_ireplace with eregi_replace for php4 compatability (thanks igner)
- Fixed mem_profile.
- 2005.09.08 – 0.6.2
- txp:mem_profile will now work when inside ign_password_protect tags.
- Install Wizard will properly detect when self_register_form exists.
- 2005.10.25 – 0.6.4
- Fixed “Array” bug.
- 2006.07.18 – 0.8
- Initial Support for arbitrary extra fields
Ransom has been paid. You may download it here.
file:
mem_self_register.txt [59.37KB]
Category: Textpattern
download: 7277
User Self Registration Documentation
…has been removed from this page. View the help included when installing the plugin. As of version 0.5, this plugin also has an install wizard to get you going.
Comment
If I may ask: Could you provide a step-by-step process of a complete (basic/comprehensive) integration of this plugin for beginners like me…
Thanks.
— Ehi Akwara · 08/30/05 10:24 PM · #
It’s installed, active and I’ve been to the “Preferences” and “Advanced Preferences” but it just doesn’t show up on my textpattern page?
Can you help
Web-Punk
However, I really need this functionality, so I hope we work it out.
Sincerely
Web-Punk
Now I get an error message on my textpattern page:
Warning: main(): Unable to access /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/setup/index.php in /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/index.php on line 27
Warning: main(/usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/setup/index.php): failed to open stream: No such file or directory in /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/index.php on line 27
Warning: main(): Failed opening ’/usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/setup/index.php’ for inclusion (include_path=’.:’) in /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/index.php on line 27
When I go back to admin and try to clear the Plugin_Cache_dir I also get an error message there saying:
Warning: main(): Unable to access /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/setup/index.php in /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/index.php on line 27
Warning: main(/usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/setup/index.php): failed to open stream: No such file or directory in /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/index.php on line 27
Warning: main(): Failed opening ’/usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/setup/index.php’ for inclusion (include_path=’.:’) in /usr/home/web/web32718/demonstrationer.dk/megafonen/textpattern/index.php on line 27
????
The setting shows up correct (i.e. 5) in the Advanced Preferences, but the output is as if that setting is on 0.
Could this be a bug?
Otherwise, great plugin!
— iris · 03/09/06 10:33 AM · #
Iris, if you’re still having problems, you can edit the plugin so that it will write the privilege setting you want (5 in your case) to the database.
On line 540 (2 lines after ”$rs = safe_insert”) change:
’$new_user_priv’,
to:
‘5’,
or whichever privilege number you like.
Thanks again for this plugin Manfre.
thanks for this great plugin! Is there a way to mail the user their password if they forget it?
— kit · 05/14/06 06:54 PM · #
Hi Manfe – any way to limit the email value to a specific domain? So that only users with a valid email from, for example, “mysite.com” could register? Thanks and cool plugin!
— ryan · 12/21/06 08:59 AM · #
bryan and iris, in case you haven’t solved the problem yet, you need to change the values of mem_self_new_user_priv in the mySQL database, under the txp_pref table…
hi Manfre, you mentioned adding adding “Initial Support for arbitrary extra fields”. is it possible for me to to (easily) add an address and phone number field in the registration form? awesome plugin.
Dear Manfre,
Using mem_self_register for create their own account What about a forgot password form? Login form?
Hi, I tried to install the mem_self_register plugin onto a local server hosted Textpattern 4.0.6 installation. Whenever I click the “start installation wizard” option, it takes me to a page which says restricted area. I am the only person registered in the Textpattern installation and I am the admin. Please help.
— Sushant · 06/24/08 08:12 AM · #
This plug in does not work at all.
There are tag errors that come up, in particular on mem_name. After submitting a new user, it does not store the name, realname or email. It incorrectly sets the privilege level to 1 for all users.
During installation an error comes up:
Notice: Array to string conversion in /var/www/website/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 84
The admin account is never created (I have checked the database table txp_users).
— Kerry · 07/22/08 01:51 PM · #
Please include the plugin version(s) and textpattern version when reporting an error. Without those vital pieces of information, I usually file it at the far bottom of my todo list.
Hi Manfre,
mem_form: 0.4.1
mem_self_register: 0.9.1
textpattern: 4.0.6
Another problem: a bad string in the txp_prefs for the admin email address.
— Kerry · 07/22/08 02:18 PM · #
Another bug:
<txp:mem_self_register_form />
Does does not show any registration form by default.
— Kerry · 07/22/08 03:08 PM · #
More bugs:
There is a major problem with mem_form. It is putting double quotes within double quotes around the class attribute of all form variables.
— Kerry · 07/22/08 03:10 PM · #
Manfre, you need to change your help documentation. You got the wrong double quotes around your examples and starter templates.
— Kerry · 07/22/08 03:27 PM · #
You need to also put in your help file that administrators should go to the Advanced Preferences panel to change the settings.
— Kerry · 07/22/08 03:45 PM · #
Hi Manfre
I am trying to install but when i try and upload it gives me the following error:
—
Precondition Failed
The precondition on the request for the URL /textpattern/index.php evaluated to false.
—
Any ideas why that is or what i have done wront i just copied the # mem_self_register v0.9.1 into the plugin box
Thanks
Simon
— Simon · 08/05/08 12:37 PM · #
Sorry – ignore my previous post
http://textpattern.com/faq/89/412-precondition-failed
doh!
— Simon · 08/05/08 12:53 PM · #
I’m install plugin 0.9.1 at txp 4.0.8, men_form 0.5.4.
Then i was creared form reg like this:
<code>
<txp:mem_form_text name=“RealName” label=“Full Name” /><br /> <br />
<txp:mem_form_text name=“name” label=“Username” /><br /> <br />
<txp:mem_form_email name=“email” label=“E-Mail” /><br /> <br />
<txp:mem_form_submit />
</code>
But form not work, because there is no action on submit button!
Commenting is closed for this article.





