Small tweak for non-DNS servers

If you've programmed a new HuMo-genealogy feature (that you'd like to see included in the official version), please upload and describe your work here.
Post Reply
louwilkinson

Small tweak for non-DNS servers

Post by louwilkinson »

If you're not running a real server, available with DNS and are just doing some type of NAT on an incoming ip, here's something to help with any internal sources. From a thread above...

{appname} is whatever you have under /html.... so for a regular, default, it would be /humogen/

1) i made a folder called sources at the same level as admin, etc....so {appname}/sources

2) i put my internal sources in the folder...in the publication field of the source screen i use /{appname}/sources/this-particular-document.pdf or .png or whatever. i kept your your recommendation of using lower case and no blanks for the names of the documents.

3) in source.php, right after line 77 i added
if (substr($source_publ,0,1)=='/'){
$link=$source_publ;
$source_publ='<a href="'.$link.'">'.$link.'</a>';
$pdflink=1;
}

works great.
Post Reply