Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Modifying Users

Quote Reply
Modifying Users
Hello,

Can users modify their own information after loging on? I would like to allow them to chang their phone number etc... Is this something possible now or a mod that will be added? I would really find it usefull.

Thanks
Shane
www.jeal.com

Quote Reply
Re: Modifying Users In reply to
There is an option in the set up that will allow users to modify their own links without validation, once their link has been validated.

What I _don't_ think exists, is a place to list the fields a user can modify.

There is a place to list the system fields, but this is different:

ie: a user can modify telephone, URL, name, but not email or ID.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Modifying Users In reply to
Thanks for your reply!

Can anybody do me a great favor and modify user.cgi to allow users to view certain fields of theirs that they can modify and update? I have fields such as phone number and company name etc....

Thank you
Shane
www.jeal.com

Quote Reply
Re: Modifying Users In reply to
It is relatively easy...all you have to do is apply the codes in modify.cgi in the user.cgi, but call different subs in the SITEHTML.pm and also call the appropriate table (Users rather than Links).

Regards,

Eliot Lee
Quote Reply
Re: Modifying Users In reply to
Thanks Elliot,

I don't know how to mess with code very well so I'll have to leave this up to someone else. I think this would be really handy for many people.


Shane

Quote Reply
Re: Modifying Users In reply to
Hello,

I made a new script called modifyuser.cgi and am doing fine except for the code to update the users fields. Can somebody help me with this. I'm trying to change fields such as email etc.

sub modify {
# ---------------------------------------------------
#
#

print $IN->header();

my $db = $Links::DB->table('Users');
my ($link, $sth);
my $user = $db->get ($username);

# Add the user in, set defaults for fields not specified.
$user = $Links::IN->get_hash();
my $def = $db->default || {};
foreach (keys %$def) {
$user->{$_} = $def->{$_} unless (exists $user->{$_});
}


print Links::SiteHTML::display ('user_modify', {});
}


Quote Reply
Re: Modifying Users In reply to
this is one of the options I need to.
could you send me your modifyuser.cgi by mail to:
webmaster@ridesworld.com.
I hope I can find something.

By the way. this is an option that should be standard in the next/last Beta