Gossamer Forum
Home : Products : Links 2.0 : Customization :

HELP! 1.0 Email Password mod MISSING FILES?!

Quote Reply
HELP! 1.0 Email Password mod MISSING FILES?!
Hello, I just downloaded the Email Password mod. by... Kevin Ham Hostglobal.com

It sends Password and Link ID to link owner if they forget.

The readme.txt says there are the following files:

header_footer.cfg
header.html
footer.html
password.cgi
passwordform.html

But the zip contains only:
password.cgi
passwordform.html
readme.txt

missing header_footer.cfg. I've created my own heard.html and footer.html

Where is the cfg file?

Thanks!
Nelson
Quote Reply
Re: HELP! 1.0 Email Password mod MISSING FILES?! In reply to
I think the .cfg file is just for configuring the header and footer file tags.

I don't think it is needed unless it is required in the password.cgi file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




Quote Reply
Re: HELP! 1.0 Email Password mod MISSING FILES?! In reply to
Here is header_footer.cfg (hope I'm not stepping on Dr. Ham's toes)...
Code:
$basepath="/www/your/pathto/links";
$header="header.html"; # change to full path if not in the same directory
$footer="footer.html"; # as header_footer.cfg and the other cgi scripts

$id=" "; # enter in whatever id you want for the end of the footer

##################################################################
# Print the HTML header
##################################################################
sub print_header {
print "Content-type: text/html\n\n";
open (HEADER,"$basepath/$header") | | print "Could not open $basepath/$header $! \n";
while (<HEADER> ) {
print $_;
} # end of while
close (HEADER);
} # end of sub


##################################################################
# Print the HTML footer
##################################################################
sub print_footer {
open (FOOTER,"$basepath/$footer") &#0124; &#0124; print "Could not open $basepath/$footer $! \n";
while (<FOOTER> ) {
print $_;
} # end of while
close (FOOTER);
print "$id\n";
} # end of sub

------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)
Quote Reply
Re: HELP! 1.0 Email Password mod MISSING FILES?! In reply to
I edited this post after finding out what I did wrong.

Below is a part I wasn't clear on and thanks to oldmoney and Eliot who helped me.

# Your admin email address. Do not delete the \ (backslash).
# $admin="directory\@hostglobal.com";
# QUESTION: I changed this code to what's below. Don't know if this is correct.
$admin="/usr/sbin/sendmail -t\@webmaster@alienbike.com";

In addition, I forgot to remove the "#" before the links.def values that password.cgi needed.

duh!

nelson

[This message has been edited by Nelson (edited January 17, 2000).]
Quote Reply
Re: HELP! 1.0 Email Password mod MISSING FILES?! In reply to
 
Quote:
$admin="/usr/sbin/sendmail -t\@webmaster@alienbike.com";

Just your address... webmaster\@alienbike.com


------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)