Textpattern CMS support forum

You are not logged in. Register | Login | Help

#371 2011-05-15 15:15:29

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: mem_self_register

I don’t think that’s it. I’m using only 1% of my web host file, disk, and bandwidth quota. But then there’s that mentioning of simplepie.inc in the error message string.


Living the Location-Independent Life: www.NuNomad.com

Offline

#372 2011-05-15 18:26:42

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,548
Website

Re: mem_self_register

The memory limit refers to RAM allocation and is independent of your file space and traffic quota and hosters set limits, particularly on shared servers where lots of accounts reside on a single machine.

But if you are not using simplepie but it is being loaded anyway, I would check what is actually causing it to load. Did you try looking at the tag trace as suggested above?


TXP Builders – finely-crafted code, design and txp

Offline

#373 2011-08-12 22:08:16

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: mem_self_register

I am trying to get the mem_self_register plugin to work (I’ve taken a break from the problem for a few weeks). Anyway, I have done the following:
1. I uploaded a fresh version of Textpattern (ver. 4.4.1) to my live server.
2. I have imported the mem_self_register plugin (from the file: mem_self_register_v0.9.6.gz.txt)
3. I clicked the “Start Install Wizard” from the activated plugin’s “help” page.
4. I followed the steps and was provided this tag: <txp:mem_self_register_form form=“self_register_form” /> which I placed onto a new article.
5. I saved the article and viewed it.
6. I received this error message: “Fatal error: Call to undefined function mem_form() in /var/www/html/example/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 421”.

This is all I’ve done so far. Am I to do anything else?

Your help on this would be greatly appreciated.


Living the Location-Independent Life: www.NuNomad.com

Offline

#374 2011-08-13 08:29:58

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 196
Website

Re: mem_self_register

Hi, laptophobo
mem_self_register works along with mem_form.
Have you installed it ?

Offline

#375 2011-08-13 19:46:23

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: mem_self_register

Thanks for your quick reply.
I hadn’t, but now it’s installed. I checked the Article where the tag is placed and Viewed it. I get this error message: “Fatal error: Call to undefined function mem_form() in /var/www/html/example/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 421”
So, I used the Install Wizard again, and it produced this error message with this report:

Notice: Array to string conversion in /var/www/html/example/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 85

Added pref mem_self_use_ign_db Pref mem_self_admin_email is already installed. Current value is “r.hamel@dotorgwebworks.org” Pref mem_self_admin_name is already installed. Current value is “Admin” Pref mem_self_new_user_priv is already installed. Current value is “Array” Added pref mem_self_admin_bcc Found form self_register_form. Skipping installation of default form. Found form self_register_success. Skipping installation of default form. Found form self_register_email. Skipping installation of default form. Example tag to use in your page template. <txp:mem_self_register_form form=“self_register_form” />

So, I then removed the above form tag and entered this tag:

<fieldset> <legend>Register</legend> <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 /> </fieldset>

This finally produced the registration form. (Yea!) But when I clicked “submit” nothing happened. So, am I still missing a plugin or something?

Any ideas?
Thank you,

Last edited by laptophobo (2011-08-13 20:07:12)


Living the Location-Independent Life: www.NuNomad.com

Offline

#376 2011-08-14 15:56:45

aslsw66
Member
From: Geneva, Switzerland
Registered: 2004-08-04
Posts: 338
Website

Re: mem_self_register

As planeth says, you MUST have mem_form installed as well.

Offline

#377 2011-08-14 16:09:50

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: mem_self_register

Hi eta,

Yes, it too (mem_form) is installed, along with ing_password_protect.

I visited the forum page about Set Up Registration and Login (http://forum.textpattern.com/viewtopic.php?id=25503), which is my goal, and that didn’t provide much detail. I just want to have the ability to require login to view a page, as well as to self register. No doubt this is already done on many Textpattern webs.

Thank you.

Last edited by laptophobo (2011-08-14 16:10:53)


Living the Location-Independent Life: www.NuNomad.com

Offline

#378 2011-08-28 14:20:04

Teemu
Member
From: Shanghai
Registered: 2010-04-27
Posts: 60

Re: mem_self_register

I searched this topic and have same problem as some others before. However I didn’t notice any solutions.

<txp:mem_self_password_reset_form /> sets the password blank

<txp:mem_self_change_password_form /> actually changes the password but in the email it shows up encrypted

I took a look also at Manfre’s bitbucket but the issue is open there.

I’m using TXP 4.4.1, mem_self_register 0.9.7 and mem_form 0.8.4

If anybody have manged to find solutions, help would be appreciated.

Offline

#379 2011-12-10 23:40:59

wavesource
Member
From: Australia
Registered: 2011-08-02
Posts: 53

Re: mem_self_register

Just some notes to self, and others who are installing and using this for the first time, as I lost some time debugging this quite good plugin.

When installing, the installer may go flaky on you, or on reinstallation. Simply track down the mem_self _XXXX entries in the txp_prefs table and edit them directly there – saves a lot of time. Note: if you delete and reinstall the plugin, these config values persist (are not deleted) so you may end up with the same values as previously set, so do take a look at your txp_prefs table to be 100% sure what is going on. It is this installation flakiness and the persistence of these txp_config values that got me into a spin, as I was trusting the plugins installer to do what it advertised it would – don’t!

I also had issues with the plugin breaking when editing through the Admin / Plugins / Edit section; again, direct editing the code in the txp_plugins / mem_self_register table was the trick. Not sure if this was due to the host this site uses, it’s not on our own server so may have some issues of its own, but just saving the plugin code in Plugins/Edit without changing the original plugin was enough to kill it. Weird. Note – this doesn’t happen with the other plugins on this particular TXP installation, so I really can’t say what is going on here. Suffice to say it was confusing!

Used with Stef’s excellent smd_user_manager, you can indeed set a new custom User like “Site Member” (id=7) and have mem_self_register add users to this user type on signup. Again, just check the txp_prefs table for mem_self_new_user_priv

Aside from the forms, the only thing you might need to edit in the plugin itself is the login URL as shown in the emails sent out. By default this is set to {login_url} which is the admin TXP login address, so you can change this to {siteurl} or just directly type in your site URL to have this send people to your homepage, or whatever URL you want.

One other thing: don’t forget that the success message shown to users after sign up is handled by the mem_form plugin. Edit this plugin, search for that pesky string “You have successfully submitted the form” and change it to what you would like your visitors to see after signup. Of course, this would affect all mem_form submissions, but if like me you’re only using mem_form for mem_self_register, then hack away.

Compliments to the TXP team for their ongoing great work with TXP.

Last edited by wavesource (2011-12-10 23:42:45)

Offline

#380 2011-12-11 00:02:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,785
Website

Re: mem_self_register

wavesource wrote:

search for that pesky string “You have successfully submitted the form” and change it to what you would like your visitors to see after signup.

As a future heads up I think you can change this by supplying thanks_form="some_form" in your mem_self_register_form tag, but I’d need to refresh my memory to check this. And there’s a login_url attribute which should avoid you having to hack mem_form to alter that.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB