Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Alex - Banners in footer?

Quote Reply
Alex - Banners in footer?
Hi,

I've got the banners per category working fine using the 'headers' method Alex mentioned in the Resources section, but can you tell me if this can also be done with the 'footer' file?

Cheers

Quote Reply
Re: Alex - Banners in footer? In reply to
Should be, headers and footers are both parsed in the category record.

from nph-build.cgi :

Code:
# Get the header and footer from file if it exists, otherwise assume it is html.
if ($OUT{header} && (length($OUT{header}) < 20) && ($OUT{header} !~ /\s+/) && (-e "$LINKS{admin_root_path}/headers/$OUT{header}")) {
open (HEAD, "<$LINKS{admin_root_path}/headers/$OUT{header}") or die "Unable to open header file: $LINKS{admin_root_path}/headers/$OUT{header}. Reason: $!";
$OUT{header} = join "", <HEAD>;
close HEAD;
}
if ($OUT{footer} && (length($OUT{footer}) < 20) && ($OUT{footer} !~ /\s+/) && (-e "$LINKS{admin_root_path}/footers/$OUT{footer}")) {
open (FOOT, "<$LINKS{admin_root_path}/footers/$OUT{footer}") or die "Unable to open footer file: $LINKS{admin_root_path}/footers/$OUT{footer}. Reason: $!";
$OUT{footer} = join "", <FOOT>;
close FOOT;
}
You can make any of the other fields parsed the same way.



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Alex - Banners in footer? In reply to
Thanks Pugdog!

:)