Google Groups Home
Help | Sign in
User register script
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 31 - Collapse all   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
coolcold  
View profile
 More options Dec 14 2006, 3:30 pm
From: "coolcold" <google.coolc...@dfgh.net>
Date: Thu, 14 Dec 2006 20:30:50 -0000
Local: Thurs, Dec 14 2006 3:30 pm
Subject: User register script
Finally got time to release the user register script. As blogthis.php,
it is released as patch/feature request. Be warned that passwords are
not encrypted.
https://sourceforge.net/tracker/index.php?func=detail&aid=1615995&gro...

CC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 16 2006, 8:48 pm
From: "pier9" <pierre.edel...@gmail.com>
Date: Sun, 17 Dec 2006 01:48:29 -0000
Local: Sat, Dec 16 2006 8:48 pm
Subject: Re: User register script
Hi CC,

Thank you very much. I really need this (and some others most probably
too) and I am really sorry to have taken so long to read my mail and
react.

But I have a few questions after I tried to set this script up.
a) I have inserted a blank user.php file inside the config directory
b)The permission of config folder is rwx        (700)
c) I have done steps 3 and 4 of the instructions

Then what is supposed to happen. Is the self registration to occur from
the new user inputing  his (her) name and pwd inside some fields to
place inside a tiddler?

Cheers and thanks again for the feature+
Pier


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 17 2006, 2:09 am
From: "pier9" <pierre.edel...@gmail.com>
Date: Sun, 17 Dec 2006 07:09:41 -0000
Local: Sun, Dec 17 2006 2:09 am
Subject: Re: User register script
Hi again

After some sleep (and during some) I just answered myself the question
(: go to http://siteUrl/register.php). Sorry for the post before.

It works great !

I'm just wondering, if there are different privilege groups, in which
ones the self registered users end up. Is there a way to assign these
persons to a group?
Best
Pier


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
coolcold  
View profile
 More options Dec 17 2006, 8:12 am
From: "coolcold" <google.coolc...@dfgh.net>
Date: Sun, 17 Dec 2006 13:12:30 -0000
Local: Sun, Dec 17 2006 8:12 am
Subject: Re: User register script
All new users will be in the "user" group. If you are confident in
editting the file, do the following

1/ open register.php
2/ go to line 70 and add a new line after it
3/ put in the following code after it
$content .= '$tiddlyCfg[\'group\'][\'<group name>\'][] =
'.$username.";\n";
replace <group name> with the group name of your choice

CC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 17 2006, 3:00 pm
From: "pier9" <pierre.edel...@gmail.com>
Date: Sun, 17 Dec 2006 12:00:20 -0800
Local: Sun, Dec 17 2006 3:00 pm
Subject: Re: User register script
I'm in trouble :
The site now shows 500 Internal Server error after I deleted the
user.php file which contained the username and password of a self
registered user I created.

I did this because I tried your explanation but I probably misplaced
step 3 (not able to count up to 70 I guess :-(
it showed this error so I deleted everything but I was probably logged
as this user.

I can't recover my sites (3 online versions).
Please Help !
Pier


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
coolcold  
View profile
 More options Dec 18 2006, 3:02 am
From: "coolcold" <google.coolc...@dfgh.net>
Date: Mon, 18 Dec 2006 08:02:45 -0000
Local: Mon, Dec 18 2006 3:02 am
Subject: Re: User register script
Hi,

Try change this line
$content .= '$tiddlyCfg[\'user\'][\''.$username.'\'] =
'.$password.";\n";
to these two
$content .= '$tiddlyCfg[\'user\'][\''.$username.'\'] =
'.$password.";\n";
$content .= '$tiddlyCfg[\'group\'][\'<group name>\'][]
='.$username.";\n";

You can try to use some text editor that shows line number such as
notepad++

After you delete the user.php, have you remove the include_once from
your config files?

CC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 18 2006, 6:39 am
From: "pier9" <pierre.edel...@gmail.com>
Date: Mon, 18 Dec 2006 03:39:29 -0800
Local: Mon, Dec 18 2006 6:39 am
Subject: Re: User register script
Hi,
Sites are back to normal it seems Thank you very much. I will install
another site with all I've learned and experimented so far. I will be
back to the registration after that.
Cheers
Pier

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
coolcold  
View profile
 More options Dec 18 2006, 8:58 am
From: "coolcold" <google.coolc...@dfgh.net>
Date: Mon, 18 Dec 2006 13:58:35 -0000
Local: Mon, Dec 18 2006 8:58 am
Subject: Re: User register script
Hi,

What were the problem before?

CC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 19 2006, 2:15 am
From: "pier9" <pierre.edel...@gmail.com>
Date: Tue, 19 Dec 2006 07:15:36 -0000
Local: Tues, Dec 19 2006 2:15 am
Subject: Re: User register script
Hi,
THis 500 internal server error was maybe due to a misplacement of the
line $content .= '$tiddlyCfg[\'group\'][\'<group name>\'][] =
'.$username.";\n";
then I tried to delete all that pertained to register but I had left
the default.php with the add on line and that was it.
I think that the new user I had tried was logged on when I cleaned the
files but did not dissapear entirely. So I deleted one occurence in the
DB (the tiddler this "new user" created). But that did not revert the
site to normal.
Hope this explaination helps?
Pier

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 19 2006, 2:49 am
From: "pier9" <pierre.edel...@gmail.com>
Date: Tue, 19 Dec 2006 07:49:51 -0000
Local: Tues, Dec 19 2006 2:49 am
Subject: Re: User register script
CC,
please check this unexpected behaviour on http://p.edelman.free.fr/WIK5

this is the user.php file content :
<?php
$tiddlyCfg['user']['kool'] =dude;
$tiddlyCfg['group']['<group name>'][]=kool;
?>
<?php
$tiddlyCfg['user']['abc'] =def;
$tiddlyCfg['group']['user1'][]=abc;
?>

Where kool has a normal view of the site allthough I forgot to indicate
that he should have a user1 status.
Then I changed the register.php file to reflect that on any new
entrant, but abc has a wrong view of the site.

alpha (pwd omega) created straight into the default .php the "old way"
has a user1 privilege and can see the site normally (like kool).
Where's the catch?
Pier


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
coolcold  
View profile
 More options Dec 19 2006, 3:17 am
From: "coolcold" <google.coolc...@dfgh.net>
Date: Tue, 19 Dec 2006 08:17:27 -0000
Local: Tues, Dec 19 2006 3:17 am
Subject: Re: User register script
Hi,

your user.php file content is superb. Fixed the bug. A mistake on my
side. You can download them off sf again.

Cheers,

CC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 19 2006, 4:14 pm
From: "pier9" <pierre.edel...@gmail.com>
Date: Tue, 19 Dec 2006 21:14:37 -0000
Local: Tues, Dec 19 2006 4:14 pm
Subject: Re: User register script
Hi CC

I get this :
Fatal error: Call to undefined function: formatparameters() in
/mnt/132/sdc/0/6/p.edelman/WIK5/register.php on line 50

after I set the groupname as user1 and removed the // in front of this
line (new register file).

Kool and abc have the same view of the site as before, one Ok the other
notOk

I tried to remove the old user.php with their ID pwd and started with a
blank file again, but to no avail.
Any clue to what I did wrong ?
Pier


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
coolcold  
View profile
 More options Dec 19 2006, 6:44 pm
From: "coolcold" <google.coolc...@dfgh.net>
Date: Tue, 19 Dec 2006 23:44:34 -0000
Local: Tues, Dec 19 2006 6:44 pm
Subject: Re: User register script
Sorry, am too tired lately with my work and keep on making mistakes.
Please uncomment the formatParmeters function (removing /* and */).
Otherwise I have updated the one on sf's site. I have also added a new
variable, $user_group, to ease changing default user group in the new
one.

Could you use a new "user.php" and let me know if it works?

Thanks.

CC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pier9  
View profile
 More options Dec 20 2006, 1:09 am
From: "pier9" <pierre.edel...@gmail.com>
Date: Wed, 20 Dec 2006 06:09:22 -0000
Local: Wed, Dec 20 2006 1:09 am
Subject: Re: User register script
Hi CC,

New user darth , pwd : vador created OK, but its rights seem admin
like.

When trying to log it out I get this on top of the header now
Warning: Cannot modify header information - headers already sent by
(output started at /mnt/132/sdc/0/6/p.edelman/WIK5/config/user.php:1)
in /mnt/132/sdc/0/6/p.edelman/WIK5/index.php on line 29

Warning: Cannot modify header information - headers already sent by
(output started at /mnt/132/sdc/0/6/p.edelman/WIK5/config/user.php:1)
in /mnt/132/sdc/0/6/p.edelman/WIK5/index.php on line 30

Warning: Cannot modify header information - headers already sent by
(output started at /mnt/132/sdc/0/6/p.edelman/WIK5/config/user.php:1)
in /mnt/132/sdc/0/6/p.edelman/WIK5/index.php on line 31

the user.php file is empty

and it is not logged out.

the URL shows :
http://p.edelman.free.fr/WIK5/index.php?logout=1&logout=1&

Also, get some rest.
Take care
Pier


    Reply to author    Forward