Gossamer Forum
Home : Products : DBMan : Installation :

Still not working - Add | Modify | Delete don't appear after login

Quote Reply
Still not working - Add | Modify | Delete don't appear after login
Only if I set the default permissions to the Admin level can a new user see any of the Add | Modify | Delete option links??

I've posted my default.cfg and html.pl at www.puddlemedia.com/html.pl
and www.puddlemedia.com/default.cfg

These are my Auth settings now:

# 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,1,1,1,0);

# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 1;

# 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 = 1;

# 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 = 8;

# URL to send user if they chose log off. Leave blank and the script will return to
# the logon prompt (although this only makes sense if you are using authentication).
$auth_logoff = "http://www.puddlemedia.com/cgi-bin/aaacta/db.cgi";



Thanks!

LennyFrown
Quote Reply
Re: [CyborgNY] Still not working - Add | Modify | Delete don't appear after login In reply to
This field is listed in both select options and checkbox options.

'Match Time' =>


Several of the setting you're using include this line or something similar:

For this to make sense you should set default off or to 1,0,0,0.

Your default options are set to:

@auth_default_permissions = (1,1,1,1,0);

Try making those corrections and see where you stand.
Quote Reply
Re: [CyborgNY] Still not working - Add | Modify | Delete don't appear after login In reply to
this may not help much, but you got some bad mark up around this area:

Code:
<BR>
<font face="verdana,arial" size=1">
(For "reviews" of restauarants, click on
"Been There, Ate That"</a> icon at
bottom of each listing.)

You're missing an opening quote on size="1"
You've got a closing anchor tag </a> that doesn't seem to relate to anything.

I also noticed you have this in your footer:

Code:
sub html_footer {
# --------------------------------------------------------
# Print the menu.
#
# We only print options that the user have permissions for.
#

print qq!<P align=center><$font>!;
print qq!| <A HREF="$db_script_link_url">Home</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&add_form=1">Add</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&view_search=1">View</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&delete_search=1">Delete</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&modify_search=1">Modify</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&view_records=1&$db_key=*">List
All</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&admin_display=1">Admin</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> ! if ($per_admin);
print qq!|</font></p>!;

}

Which if I'm not mistaken, is basically telling the script not to print anything
unless permissions equal that of "Admin".

I'm not too familiar with this html.pl layout so I'm sorry I could not be of more help.

Good Luck!
Quote Reply
Re: [Watts] Still not working - Add | Modify | Delete don't appear after login In reply to
Ps: Here is how the footer is set up in the "non user-friendly" html.pl (the one I'm more familiar with)

print qq!<P align=center><$font>!;
print qq!| <A HREF="$db_script_link_url">Home</A> !;
print qq!| <A HREF="$db_script_link_url&add_form=1">Add</A> ! if ($per_add);
print qq!| <A HREF="$db_script_link_url&view_search=1">View</A> ! if ($per_view);
print qq!| <A HREF="$db_script_link_url&delete_search=1">Delete</A> ! if ($per_del);
print qq!| <A HREF="$db_script_link_url&modify_search=1">Modify</A> ! if ($per_mod);
print qq!| <A HREF="$db_script_link_url&view_records=1&$db_key=*">List All</A> ! if ($per_view);
print qq!| <A HREF="$db_script_link_url&admin_display=1">Admin</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> |!;
print qq!</font></p>!;
Quote Reply
Re: [Watts] Still not working - Add | Modify | Delete don't appear after login In reply to
Yep, you're a genius -- thanks! It's been driving me nuts for weeks (See my previousposts).

Yaaaay!

(I know that's it now...after looking at it, will fix it later)