Gossamer Forum
Home : Products : DBMan : Customization :

Default user footer settings

Quote Reply
Default user footer settings
When I access my database as the default user the log off option is in the footer. How do I remove this from the default users footer please?

Thanks in advance

----------------------------------
http://www.andrew-banks.co.uk
Quote Reply
Re: [c0052372] Default user footer settings In reply to
I can tell you what I did:

Becasue the default users only do a search, the link to the database is straight to the serach page, and I removed the footer in Search & Search results' page.

To do this, simply remove the line &html_footer; from sub html_view_search & html_view_success.


Good luck, Alon Gal.

Quote Reply
Re: [c0052372] Default user footer settings In reply to
If default users can not modify records you could always change the logoff to:

print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> ! if ($per_mod);

Then it would only be seen by registered users.

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [c0052372] Default user footer settings In reply to
If you want to "hide" just the log off link, make the following addition (in red) to the log off link in sub html_footer

Code:
print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off</A> |! unless ($in{'uid'} eq "default");

I believe the use of "unless" here is okay and seems to work. Somebody correct me if this is not kosher.

<edit>Sorry Lois - didn't see your post in time - I like your suggestion better</edit>

Last edited by:

Watts: Jul 12, 2002, 9:56 AM