My hobbies are my passion. Whether or not I receive donations, I will continue to do what I love. If you would like to focus my efforts towards a specific project, donating will help (Use the optional instructions/comments field).

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

I already use your mod_self_register, but this looks easier as it is in the form of a plugin as opposed to a mod. I would like to install this, but I don’t want it to interfere with the mod_self_register. How can I “uninstall” mod_self_register (or at least disable it) and use this plugin?

snozle · 06/20/05 12:48 PM · #

snozle, there should not be a need to uninstall mod_self_register because this plugin is not compatible with rc1 and the mod is not compatible with rc3. The lack of overlapping support makes things easy. Upgrade to the latest build of rc3 and then install the plugin.

Manfre · 06/21/05 01:02 AM · #

Hello, being a new user to textpattern… could i ask: how could i install this mod to my textpattern setup? what i only know is that the txt file download is a plugin… and then for the rest.. i’m just confused whether this are forms or what…

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.

zeineath · 08/21/05 11:44 PM · #

step by step docmentation wold great newbies. if you cdould do this, that would be great!

— Ehi Akwara · 08/30/05 10:24 PM · #

I’ve installed your plugin, nice work. Everything “look” fine, but it is not working?

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

Web-Punk · 08/31/05 11:38 AM · #

Look in the plugin help. There is an “Install” link that sets up the preferences.

Manfre · 08/31/05 10:22 PM · #

Thank you for your respons. I’ve already done the “help install” a few times, no luck. I don’t know if I’m doing something wrong or if theres another technical problem?

However, I really need this functionality, so I hope we work it out.

Sincerely

Web-Punk

Web-Punk · 09/01/05 08:46 PM · #

I just experimented with writing a “Plugin_cache_dir” thinking perhaps I needed to let it know something about my dir.

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

????

Web-Punk · 09/02/05 05:24 AM · #

I tried to set this up, but accidentally set up the mem_self_new_user_priv as “publisher” instead of “freelancer.” I thought there would be another set-up screen. Now, I’ve tried to re-install the plug-in, and it says these values are already set. How do I change these values before putting a link to the plug-in on the site? Do I need to do something with the database?

bryan · 11/14/05 11:39 PM · #

okay, I was wrong. it did not set up the mem_self_new_user_priv as “publisher,” but as “none.” I cannot change it to “freelancer.” How can I do this?

bryan · 11/15/05 12:11 AM · #

As with Bryan above, I too have set up the mem_self_new_user_priv to one thing (freelancer, or 5, in my case), and yet new users are created with privs none or 0.

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 · #

Excellent work on this plugin Manfre. However, I too am experiencing the same bug as Iris, as well as the “array bug” as mentioned on the forum. I’m using mem_self_register v0.7.1 on Txp 4.0.3 hosted at Textdrive.

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.

Greg · 03/15/06 11:54 PM · #

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…

diego · 06/14/07 10:13 PM · #

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.

diego · 06/14/07 10:23 PM · #

Dear Manfre,
Using mem_self_register for create their own account What about a forgot password form? Login form?

Pat · 11/24/07 05:30 PM · #

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 · #

Hi, I have the same problem of Sushant!!

What’s the trick?

Marco · 07/02/08 01:01 PM · #

I’m having the same restricted area message? Guidance?

M

Mare · 07/05/08 12:20 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.

Manfre · 07/22/08 02:03 PM · #

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 · #

Hello! It’s just ubeliavable INCREDIBLE porno videos collection!

Pochka · 10/05/08 03:47 AM · #

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!

Ivan · 05/06/09 08:52 AM · #

To get around the restricted area problem, make sure you activate the plugin before you use the wizard.

James · 05/10/09 12:28 AM · #

Commenting is closed for this article.