Ok, First off, thanks for the great script. It is a life saver, and is so easy to use and modify that you should get money for it! Or at least make it shareware!
I have dbman running on my website at http://www.kickas.org/cgi-bin/dbman/db.cgi and have NO problems with the current setup, but I want to add a new field that only ADMIN can see.
problem is, I have the script set so only ADMIN can edit/modify/delete records.
Here are the current authorizations settings:
$auth_time = 21600; $auth_logging = 1;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 0;
@auth_signup_permissions = (1,0,0,0,0);
$auth_modify_own = 0;
$auth_view_own = 0;
$auth_user_field = -1;
As you can see, only ADMIN can alter the records. The record fields are as follows:
ID => [0, 'numer', 5, 8, 1, '', ''],
As_Name => [1, 'alpha', 40, 255, 1, '', ''],
Full_Name => [2, 'alpha', 40, 255, 0, '', ''],
BirthDay => [3, 'numer', 2, 2, 0, '', ''],
BirthMonth => [4, 'alpha', 3, 3, 0, '', ''],
BirthYear => [5, 'numer', 4, 4, 0, '', ''],
Country => [6, 'alpha', 10, 255, 0, '', ''],
Street => [7, 'alpha', 0, 255, 0, '', ''],
City => [8, 'alpha', 40, 255, 0, '', ''],
State => [9, 'alpha', 40, 255, 0, '', ''],
Zip_Code => [10, 'numer', 5, 12, 0, '', ''],
Email => [11, 'alpha', 50, 255, 0, '', ''],
Home_Page => [12, 'alpha', 50, 255, 0, '', ''],
ICQ_Name => [13, 'alpha', 20, 255, 0, '', ''],
ICQ_Number => [14, 'alpha', 12, 255, 0, '', ''],
ICQ_Remarks => [15, 'alpha', 40, 255, 0, '', ''],
Last_Updated => [16, 'date', 12, 15, 0, &get_date, ''],
);
Now, I want to add:
A record for a phone number, which is only for ADMIN to see!
I picture URL and title for all to see, which is located on the site:
Picture_Title => [19, 'alpha', 20, 20, 0, , ''],
And, finally, I would like to add details about a story that they submitted, if they submitted one as follows:
Story_Title => [21, 'alpha', 20, 20, 0, , ''],
Finally, I need to add a password field for each user, and initialize the password with something that I can email them so that they can edit their own record:
Now, I know that is allot to add to a database that is currently set, and active, with over 150 entries already.
So, my questions is, how do I:
A. Modify the script so that certain fields in the records are not displayed, and are only available to ADMIN.
B. How do I initialize the password protection to allow the current records that I have added and allow the current email address holder to edit them. I have it turned off now. Can I just add the last field for the password, and enter in "changeme" for each field in the db field, or is it encrypted? Or is it stored elswhere?
C. I wrote a small script that grabs all of the birthdays and creates a text file that is called via a SSI call here:
http://www.kickas.org/support/birthday.shtml
I also did this for a ICQ list here:
http://www.kickas.org/com/icqlist.shtml
Can I have dbman output this text file as a SSI call, instead of writing an additional script to create the html file?
D. And lastly, is there a way for me to initiate a cookie feature, where I set a cookie when they visit the main page, and it can display a greeting, update notice, or counter, and grab those settings from the db file? This is a tough one, but I figured I'd throw it out there.
DBMAN and Links 2.0 are literally the back bone of my support group site, and I can't praise these scripts enough. It empowers the visitors, and makes my job a whole lot easier when updating all of the data that the people submit to me.
Contact me at tbk@home.com or whatever you find neccessary!
Thanks again!
I have dbman running on my website at http://www.kickas.org/cgi-bin/dbman/db.cgi and have NO problems with the current setup, but I want to add a new field that only ADMIN can see.
problem is, I have the script set so only ADMIN can edit/modify/delete records.
Here are the current authorizations settings:
Code:
$auth_no_authentication = 0; $auth_time = 21600; $auth_logging = 1;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 0;
@auth_signup_permissions = (1,0,0,0,0);
$auth_modify_own = 0;
$auth_view_own = 0;
$auth_user_field = -1;
As you can see, only ADMIN can alter the records. The record fields are as follows:
Code:
%db_def = ( ID => [0, 'numer', 5, 8, 1, '', ''],
As_Name => [1, 'alpha', 40, 255, 1, '', ''],
Full_Name => [2, 'alpha', 40, 255, 0, '', ''],
BirthDay => [3, 'numer', 2, 2, 0, '', ''],
BirthMonth => [4, 'alpha', 3, 3, 0, '', ''],
BirthYear => [5, 'numer', 4, 4, 0, '', ''],
Country => [6, 'alpha', 10, 255, 0, '', ''],
Street => [7, 'alpha', 0, 255, 0, '', ''],
City => [8, 'alpha', 40, 255, 0, '', ''],
State => [9, 'alpha', 40, 255, 0, '', ''],
Zip_Code => [10, 'numer', 5, 12, 0, '', ''],
Email => [11, 'alpha', 50, 255, 0, '', ''],
Home_Page => [12, 'alpha', 50, 255, 0, '', ''],
ICQ_Name => [13, 'alpha', 20, 255, 0, '', ''],
ICQ_Number => [14, 'alpha', 12, 255, 0, '', ''],
ICQ_Remarks => [15, 'alpha', 40, 255, 0, '', ''],
Last_Updated => [16, 'date', 12, 15, 0, &get_date, ''],
);
Now, I want to add:
A record for a phone number, which is only for ADMIN to see!
Code:
Phone_Number => [17, 'alpha', 20, 20, 0, , ''],I picture URL and title for all to see, which is located on the site:
Code:
Picture_Url => [18, 'alpha', 50, 255, 0, , ''], Picture_Title => [19, 'alpha', 20, 20, 0, , ''],
And, finally, I would like to add details about a story that they submitted, if they submitted one as follows:
Code:
Story_Url => [20, 'alpha', 50, 255, 0, , ''], Story_Title => [21, 'alpha', 20, 20, 0, , ''],
Finally, I need to add a password field for each user, and initialize the password with something that I can email them so that they can edit their own record:
Code:
Password => [22, 'alpha', 12, 12, 0, , ''],Now, I know that is allot to add to a database that is currently set, and active, with over 150 entries already.
So, my questions is, how do I:
A. Modify the script so that certain fields in the records are not displayed, and are only available to ADMIN.
B. How do I initialize the password protection to allow the current records that I have added and allow the current email address holder to edit them. I have it turned off now. Can I just add the last field for the password, and enter in "changeme" for each field in the db field, or is it encrypted? Or is it stored elswhere?
C. I wrote a small script that grabs all of the birthdays and creates a text file that is called via a SSI call here:
http://www.kickas.org/support/birthday.shtml
I also did this for a ICQ list here:
http://www.kickas.org/com/icqlist.shtml
Can I have dbman output this text file as a SSI call, instead of writing an additional script to create the html file?
D. And lastly, is there a way for me to initiate a cookie feature, where I set a cookie when they visit the main page, and it can display a greeting, update notice, or counter, and grab those settings from the db file? This is a tough one, but I figured I'd throw it out there.
DBMAN and Links 2.0 are literally the back bone of my support group site, and I can't praise these scripts enough. It empowers the visitors, and makes my job a whole lot easier when updating all of the data that the people submit to me.
Contact me at tbk@home.com or whatever you find neccessary!
Thanks again!