Gossamer Forum
Home : Products : DBMan : Customization :

Cookie mod

Quote Reply
Cookie mod
Hi,
I am having a little trouble with this password cookie mod,just in one place...
I use the easy html.pl and it tells me to make the following change...
I dont have that line..
is there a way to put this if statment in anyway
Thanx..
...........................................................

Go to your sub html_login_form routine. We're going to have to do a
little editing. At the top of the routine Change
##############################################################################

<body bgcolor="#DDDDDD" text="#000000">

##############################################################################
To
##############################################################################

<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie;
print qq|

..........................................................
Below is what the top of my, "sub html_login_form" looks like
............................................................
sub html_login_form {
# --------------------------------------------------------
# The login screen.

$page_title = "Login";
&html_page_top;
$submit_button = "Logon";
$reset_button = "Cancel";

# < -- Start page text -- >



Quote Reply
Re: Cookie mod In reply to
You may have to add this to your sub html_page_top

since that is where you HTML body codes would be located.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Cookie mod In reply to
Thanx LoisC,
I have tried all places..but still cant get it to work..However I can place it in the example below and the script will run but no cookie is sent..?????

##########################################################
## Page Layout ##
##########################################################

sub html_page_top {
# --------------------------------------------------------
# This is where you define what all of your web pages will look like.
# You can change the background color, add a background image (be sure to use the
# complete URL to your background image and not a relative URL), define the color of
# normal text and links -- all just as you would do with a regular html page.
# Be sure to leave in the first line -- &html_print_headers -- and to put your html
# formatting between "print qq|" and "|;"

&html_print_headers;

print qq|

<html><head><title>$html_title: $page_title</title></head>


<body ... background=' http://datalink.dyndns.org/datalink/deertile.jpg'>

<center>

<table border=1 bgcolor="#fa9b17" cellpadding=5 cellspacing=3 width=500 align=center valign=top>
<tr><td colspan=2 bgcolor="000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie;
print qq|



<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF"><b>$html_title: $page_title</b></font></td></tr>
<tr><td><p><center><$font_title><b>$page_title</b></font></center>
<center><FONT FACE="MS Sans Serif, arial,helvetica" size=2 COLOR="#FF0000">$required_notice</center></font>
|;

}
sub html_error_page_top {


............................................................


.........................................................
Is there some other place that I might need to place the line below... other than the sub html_page_top for the easy html. The example above runs, but no cookie is sent..??

<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie;
print qq|
...........................................................
I have been on this all day...but cant find the prob...
any help would be great.




Quote Reply
Re: Cookie mod In reply to
I think your best bet would be to find all the posts related to using this mod. You may find something that you need to adjust to get this going for your particular needs.

Try looking at the following references I had saved in my notes:

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

The original thread:
http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001155.html

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=DBCust&Number=13727&page=0&view=collapsed&sb=5

I hope one of these will help you find a solution.


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Cookie mod In reply to
Hi Jumbo,
Did you check in the cookie mod itself that you pasted into the .pl file the date of the cookie expiration? It defaults to the year 2000 as thats when it was written.
5th

Quote Reply
Re: Cookie mod In reply to
I got it fixed,for the easy html, it will work if you place it here,under the end page text.
thanx for all the help ..and ideas..
cheers
Jumbo


Authentication ##
##########################################################
sub html_login_form {





< -- End page text -->

print qq|

<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie;
print qq|