Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2006-03-28 09:41:08

dog_biscuits
Member
Registered: 2005-10-14
Posts: 10

Re: mem_self_register

M_i: Much like yourself, I resorted to editting the plugin code and hard-coding the Name and Email address to fix the Array problem. In my case, an internal server error was being generated when trying to send the mail without a valid ‘from’ address, which didn’t give a great impression to site visitors.

I wouldn’t recommend editting plugin code for everyone, but if you’re reasonably comfortable with PHP and don’t mind having to fix your own mistakes (because once you start messing with the plugin code its not fair to expect the developer to help you out) then here’s what I did:

Disclaimer: Don’t try this unless you know what you’re doing

In the function mem_self_register_save()

find the line (near the start):

<code>if ($mem_self_register != ‘register’) return ‘’;</code>

<p>After this line add:</p>

<code>$admin_name = “Your Admin Name”;
$admin_email = “Admin.Email@mysite.com”;</code>

<p>There may be other parts of the plugin that need changed too, but this change was all that was needed for my purposes. I can’t guarantee that it will work for everyone else and you should back-up your plugin code before even trying.</p>

Offline

#146 2006-03-28 09:55:25

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: mem_self_register

dog_biscuits wrote:

I wouldn’t recommend editting plugin code for everyone, but if you’re reasonably comfortable with PHP and don’t mind having to fix your own mistakes (because once you start messing with the plugin code its not fair to expect the developer to help you out) then here’s what I did:

Yes, that’s also what I tried.

I think there must be some other issue going on on my end, because I edit plugin code all the time without any trouble (or at least, none that I can’t fix after a couple of tries…), but each time I try to edit this one – even the smallest thing like adding a comment – sets of error messages.

Ah well, guess my site will survive without it.

Thanks for your help.

- Iris

Last edited by M_i (2006-03-28 09:55:53)

Offline

#147 2006-03-31 16:35:21

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: mem_self_register

Any page that uses the plugin form elements does not validate as XHTML strict.
Here is another fix (apart from the others allready suggested here), that will make your pages validate.
NOTICE:That’s not the plugins fault but due to the native TXP functions, fInput, einput, and hinput.

On approximately line 480 of the plugin code replace the content of the $out variable with this:
<code>$out = n.n.”<form enctype=‘multipart/form-data’ action=’{$action_url}’ method=‘post’>” .’<p>’. eInput(‘self-reg’).’</p>’.’<p>’ . sInput(‘register’) .’</p>’.’<p>’. hInput(‘email_form’,$email_form) . ‘</p>’.’<p>’.hInput(‘mem_self_register’,‘register’) .’</p>’. parse($Form) . “</form>”.n;</code>

I opted for p tags here, your taste might vary,

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#148 2006-04-19 14:01:55

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

Re: mem_self_register

Version 0.7.3: Download

This should resolve the Array problem once and for all. After installing the plugin, go to preferences, verify the admin name/email values are appearing correctly in the field and then resave.

Edit: Might as well fix the documentation mistakes at this time. (v0.7.3)

Last edited by Manfre (2006-04-19 14:09:20)

Offline

#149 2006-04-29 17:40:33

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: mem_self_register

I wanted to ask if this plugin has an option that would force all articles submited as self registered members to be allowed to go live bz administrator? That would really be of use to me.

For example:
If an user is a self registered user he/she is a staff writer, and all staff writer’s articles are “pending” articles (or drafts, since I don’t know what exactly pending does). Staff writers wouldn’t have an option to change article’s state, and then admin can make staff writer’s article a live one.

Is that too much?

If not integrated into this plugin, is the “admin allow after reviw” functionality possible in TXP?

Thanx in front.

Offline

#150 2006-04-30 00:00:21

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

Re: mem_self_register

Dragan wrote:

I wanted to ask if this plugin has an option that would force all articles submited as self registered members to be allowed to go live bz administrator? That would really be of use to me.

For example:
If an user is a self registered user he/she is a staff writer, and all staff writer’s articles are “pending” articles (or drafts, since I don’t know what exactly pending does). Staff writers wouldn’t have an option to change article’s state, and then admin can make staff writer’s article a live one.

Is that too much?

If not integrated into this plugin, is the “admin allow after reviw” functionality possible in TXP?

Thanx in front.
—-

This functionality exists with another set of plugins that I have written, mem_moderation, mem_moderation_article, and mem_moderation_image. These plugins were released initially as a very rough beta and an updated version has not been released since. An official update should happen soon as all the features needed by the project spawning these plugins is coming to a close. Email me and I can send you an beta quality plugin that you can test out.

Offline

#151 2006-05-04 12:41:38

alzy
New Member
Registered: 2005-10-27
Posts: 7

Re: mem_self_register

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.

Offline

#152 2006-05-04 19:00:42

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

Re: mem_self_register

alzy, click on the wizard link inside the plugin help and then copy and paste the url in the browser’s address bar. Also, what plugin version are you using?

Offline

#153 2006-05-05 03:24:50

alzy
New Member
Registered: 2005-10-27
Posts: 7

Re: mem_self_register

Copying and pasting the link still don’t work for me. I thought this was a browser problem but tried on all the other browsers but still doesnt work.

Using version 0.7.3 which I got it from here

Thanks.

Last edited by alzy (2006-05-05 03:25:33)

Offline

#154 2006-05-06 18:23:06

Slashdot
New Member
Registered: 2006-05-06
Posts: 6

Re: mem_self_register

Hello.<br>
First great plug-in. But there is an issue with the mod that I am facing. <br>
The version 0.7 attached in this topic gives me a blank page as mentioned just
before my post here. But the version from your site works just fine.<br>
<br>
The problem I am facing is the following URL should give me a registration form
but it gives me a login form.<br>
<a href=“http://www.cityhistories.net/textpattern/index.php?event=register”>
http://www.cityhistories.net/textpattern/index.php?event=register</a></p>
Also the link to the login page:
http://textpattern.org/textpattern/index.php gives the same form?
So i need the links working plz.

Last edited by Slashdot (2006-05-06 18:54:26)

Offline

#155 2006-05-11 05:45:42

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

Re: mem_self_register

Please read the help and make sure you ran the plugin wizard. After you do that, read the help regarding the mem_self_register_form tag.

Offline

#156 2006-05-15 19:45:06

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

Re: mem_self_register

Does anyone know of a plugin that can generate an email to all the users registered via mem_self_register? I’d like to send out updates to this group of registered members without having to move their names and email addresses into another database.

Offline

Board footer

Powered by FluxBB