Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#157 2006-05-15 20:44:59

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

Re: mem_self_register

There is nothing kept in the database to signify which users have been created with mem_self_register. When the plugin creates a user, it does so in a similiar fashion to Textpattern, except the users have a site configured permission level.

Offline

#158 2006-06-07 20:22:52

LeeUmm
Member
From: Hamilton, Ontario
Registered: 2005-04-22
Posts: 91
Website

Re: mem_self_register

Hi,

Just installed the latest version of this plugin.

When I ran the installation wizard I accidentally set new members permissions to “none”. No biggy I thought and I changed this setting to what I wanted in the admin panel for this plugin.

Still though when members sign up, they are given no permissions. I even deleted the plugin and installed again but nothing.

If I try and run the installation wizard when the plugin is already installed, it tells me it’s skipping the part for the user permissions as they are already found and it tells me the correct level I’m trying to get. 2, not 0.

Where in the code would I edit this to reflect the permissions I wish them to have?

Offline

#159 2006-06-10 21:28:32

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: mem_self_register

You have to set the plugin to Active before entering the help section and running the install wizard. Otherwise you get the blank screen with only the dropdown mentioned above.

– Ben

Offline

#160 2006-06-28 16:18:43

hurty
Member
Registered: 2004-07-17
Posts: 30

Re: mem_self_register

This is a great plugin and has been working flawlessly for us. One user has written to me to say he cannot register. When he fills out the form and clicks submit, the page refreshes and he sees a “1” to the left of the email field on the registration form (no entry is created in the database). I tested, using this person’s email address and I see the same problem. The address is a valid address. (I’ve corresponded with this person using the address in question.) Any clue about what could be causing this error?

Offline

#161 2006-06-29 13:52:35

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

Re: mem_self_register

hurty wrote:

This is a great plugin and has been working flawlessly for us. One user has written to me to say he cannot register. When he fills out the form and clicks submit, the page refreshes and he sees a “1” to the left of the email field on the registration form (no entry is created in the database). I tested, using this person’s email address and I see the same problem. The address is a valid address. (I’ve corresponded with this person using the address in question.) Any clue about what could be causing this error?

Please paste the mem_self_register_form form with attributes that you are using. Also include the contents of the specified form.

Offline

#162 2006-06-29 20:37:13

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: mem_self_register

alzy wrote:

Looks like I’m the only who encountered this problem but when I clicked on the installation wizard. All I get is this and there’s nothing on the advanced preferences page.

Thanks.

@alzy have you activated the plugin? you need to activate it before running the install wizard, i got a similar screen first as well.

Last edited by sekhu (2006-06-29 22:42:32)

Offline

#163 2006-07-04 16:10:52

hurty
Member
Registered: 2004-07-17
Posts: 30

Re: mem_self_register

the form I’m using looks like this:

Join Daytrotter:
<code>
<p>Full Name<br />
<txp:mem_name_warn /><txp:mem_name_input /><br />
Choose Username<br />
<txp:mem_user_warn /><txp:mem_user_input /><br />
Email<br />
<txp:mem_email_warn /><txp:mem_email_input /><br />
<txp:mem_submit />
</p>
</code>

The content submitted was this person’s name, username, and email address. I tried entering this person’s information myself in my browser and encountered the same problem he had. The email address was [his_name]@sbcglobal.net, and the way I eventually got the person into the database was to use my email address to submit the form with his name and username. Then I used phpMyAdmin to change my email address to his email address.

Last edited by hurty (2006-07-04 16:12:19)

Offline

#164 2006-07-04 16:46:37

hurty
Member
Registered: 2004-07-17
Posts: 30

Re: mem_self_register

Manfre wrote:

There is nothing kept in the database to signify which users have been created with mem_self_register. When the plugin creates a user, it does so in a similiar fashion to Textpattern, except the users have a site configured permission level.

on my site, despite the fact that I have the “Use alternate Database” option set to “no,” all the users added via mem_self_register are stored in a table called ign_users rather than in the txp_users table. I’m curious if anyone has already found a way to use this table as input for a mailing list?

Or as an alternative: My hosting service provides an announcement list feature. What would be ideal is the ability to combine a submission to their subscription form as a second action on the form posted to self register. Is that possible? What would be great would be the ability to allow self registering users to check a box on the self register form that would subscribe them to the announce list. Unfortunately, the announce list database tables are not visible to, or directly accessible by the user. Access to those tables is via a web interface only, which is part of the hosting service’s control panel. (Dreamhost)

Last edited by hurty (2006-07-04 20:04:00)

Offline

#165 2006-07-09 00:40:24

daveh
Member
From: Bristol, UK
Registered: 2006-06-24
Posts: 33
Website

Re: mem_self_register

Manfre thanks for the great work on this. I’ve just installed v0.7.3, using TXP 4.0.3.

Getting two errors during install…

Failed to add pref ‘mem_self_use_ign_db’. Incorrect integer value: ‘yesnoradio’ for column ‘position’ at row 1
Failed to add pref ‘mem_self_new_user_priv’. Incorrect integer value: ‘yesnoradio’ for column ‘position’ at row 1

To fix them (and create the prefs) I had to add the ’0,’ before the ‘yesnoradio’ and ‘priv_levels’ in these two lines…
<code>
if ( mem_set_pref(‘mem_self_use_ign_db’,$use_ign_db,‘self_reg’,1,0,‘yesnoradio’)) {
if ( mem_set_pref(‘mem_self_new_user_priv’,$new_user_priv,‘self_reg’,1,0,‘priv_levels’)) {
</code>

Also, at the moment, I am getting Array() errors as reported by many others…

The problem appears to be with the mem_get_pref() function. Where it reads:
<code>
if (!empty($val) && in_array($val,$pref_cache[$name])) return $pref_cache[$name][$val];
else return $pref_cache[$name];
</code>

To fix it, the section should read:
<code>
if (!empty($val) && array_key_exists($val,$pref_cache[$name])) return $pref_cache[$name][$val];
else return $pref_cache[$name];
</code>

Dave

Last edited by daveh (2006-07-09 00:58:37)


—————
Dave-H

Offline

#166 2006-07-09 12:07:59

daveh
Member
From: Bristol, UK
Registered: 2006-06-24
Posts: 33
Website

Re: mem_self_register

Manfre, I’m getting the following warning…

<code>tag_error <txp:mem_self_register_form/> -> Notice: Undefined index: REQUEST_URI on line 475</code>

The line was…

<code>$action_url = $_SERVER[‘REQUEST_URI’];</code>

And I changed it to…

<code>$action_url = isset($_SERVER[‘REQUEST_URI’])?$_SERVER[‘REQUEST_URI’]:’‘;</code>

Which made the warning go away :-) but I hope it won’t break anything.

Dave


—————
Dave-H

Offline

#167 2006-07-13 14:14:53

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: mem_self_register

I was psyched when I found this plug in but I had one question. Open to anyone Is it possible to be able to maybe have a ransom to give the new users, user pages with a profile similar to the forum here? I really want to use TXP for my community site but I am afraid this really keeps me from doing so.

Thanks In Advance


Grrr RRR nnndth grrr Skeek!

Offline

#168 2006-07-13 15:38:53

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

Re: mem_self_register

I’m not entirely sure what you are asking me to add. Are you asking to have a page that allows the user to modify all of their own information? If so, this is already possible, including altering of their password. Below is a sample form that can be included on a page protected by ign_password_protect.

<code>
<div class=“profile-form”>
<txp:mem_user_edit_form>
<txp:mem_message />
Name:<br /><txp:mem_realname_input /><br />
Email address:<br /><txp:mem_email_input /><br />
Telephone number:<br /><txp:mem_phone_input /><br />
Address:<br /><txp:mem_address_input /><br />
<txp:mem_submit />
</txp:mem_user_edit_form>
</div>

<div class=“password-form”>
<txp:mem_change_pass_form form_mail=“email_change_password” />
</div>
</code>

Offline

Board footer

Powered by FluxBB