hi jb....i am having a hard time figuring out how to create different looking add, modify, and search screens. i read a post of yours concerning hiding certain fields in the search screen by copying the html_record_form and renaming it to html_search_form, and then deleting the unwanted fields. that worked great, and now i have a search page that has only the fields i wanted to show up. when the search is run, the display page still shows all the records, which is exactly what i wanted....thank you very much for the post! but the problem i am having now is that when i go to an add, mod, or delete page, i get errors in the fields saying that it couldnt build the field because the fields arent defined. i have not modified any of these subs, and they still have the &html_record_form line in them. am i missing something? if you need to take a look at my code, let me know and i'll be happy to post it.
also....i have set this up so that anyone can view any records....but only the admin(me), and one other user can add, delete, or modify. when the link is clicked on the referring page, the main menu opens, allowing only viewing options...which is fine....but i can't seem to get the full menu with all the permissions to pop up anymore! no login screen or anything. here r my settings:
# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;
# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)
# Enable (1) or disable (0) logging.
$auth_logging = 1;
# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;
# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);
# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 0;
# Permissions a new signup should get.
@auth_signup_permissions = (1,1,1,1,0);
# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 0;
# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
$auth_view_own = 0;
# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = -1;
any help would be greatly appreciated!!! thanx in advance.
chuck
also....i have set this up so that anyone can view any records....but only the admin(me), and one other user can add, delete, or modify. when the link is clicked on the referring page, the main menu opens, allowing only viewing options...which is fine....but i can't seem to get the full menu with all the permissions to pop up anymore! no login screen or anything. here r my settings:
# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;
# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)
# Enable (1) or disable (0) logging.
$auth_logging = 1;
# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;
# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);
# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 0;
# Permissions a new signup should get.
@auth_signup_permissions = (1,1,1,1,0);
# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 0;
# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
$auth_view_own = 0;
# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = -1;
any help would be greatly appreciated!!! thanx in advance.
chuck