Gossamer Forum
Home : Products : DBMan : Customization :

Problems when users use 'default'???

Quote Reply
Problems when users use 'default'???
I just read replay post from Eliot regarding the dbman's problem when users post their posting without loging in (using 'default' user.)
Is it true? I have the board is up and running and so far is okay by letting users use 'default' instead of directing them to sign on.

on the posting below, Beagle has a problem with letting people use 'default', and the records only show 50 records, is it true?

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001622.html

Well, I hope there is a technic how to let people not logging in and use 'default' and still can post without giving any problem to our lovely DBman.
Quote Reply
Re: Problems when users use 'default'??? In reply to
Well, a quick and dirty solution is change the following codes:

Code:
while ($status eq "duplicate key error" and $db_key_track) {
return "duplicate key error" if ($counter++ > 50);
$in{$db_key}++;
$status = &validate_record;
}

to the following codes:

Code:
while ($status eq "duplicate key error" and $db_key_track) {
return "duplicate key error" if ($counter++ > 5000);
$in{$db_key}++;
$status = &validate_record;
}

in the sub add_record routine.

Notice that I changed 50 to 5000. While this will not set-up an unlimited number of posts, it will increase the value past 50.

The codes would have to be further edited to allow unlimited posts.

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------