Gossamer Forum
Home : Products : Links 2.0 : Customization :

Adding Resources modification

Quote Reply
Adding Resources modification
I'm running the mod that let's user create a username/password when addign a resources. Now, if the user wants to add more then one listing he has to create a new username/passowrd, baiscally do the whole adding thing again. Is there a mod, that will alow a user to create one usernames/password and just add new resources under that, and mange then under that username/password.



thanks

intellie Crazy
Quote Reply
Re: [intellie] Adding Resources modification In reply to
I haven't seen anything along those lines. phoenix's password mod used the ID and created a password field. Paul's created a username and password field. Neither allowed duplicate keys ( ID or username ). To do what you wanted you would need a third field (probably the ID). Paul's may be the easiest to modify. The duplicate check would need to be modified to check all but the unique username/password combination. The third field could be the ID and would be used to retreive/modify the record. Just thoughts. Someone would need to do the coding for it.


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] Adding Resources modification In reply to
I use Paul's mod, and commented out the red part below (from add.cgi) so that I can use the same username in many links. The most common one is "webmaster.'

open (DB, "<$db_file_name") or &cgierr("Error : unable to open db file: $db_file_name. Reason: $!");
$found = 0;
LINE: while (<DB>) {
(/^#/) and next LINE;
(/^\s*$/) and next LINE;
chomp;
@data = &split_decode($_);
# if ($data[$db_user] eq $in{'Username'}) {
# $found = 1;
# last LINE;
# }
}
close DB;

# $found and &site_html_add_failure("Username already exists.") and return;


Leonard
aka PerlFlunkie