View Single Post
 
Old Oct 07, 2001, 09:39 PM
freddy freddy is offline
Member
 
Member Since: Oct 2001
Location: USA
Posts: 40
Everyone gather round...

BERKA IS A GENIUS!!! The script works well. I don't physically see any slow down with the results. The header option is all I really require as the banners are generally located within the header. For those of you not sure exactly where to placed the script from BerKa I replaced the line:

open (READIT, "$pod_templatedir/header.html");

with the lines:

if ($pod_dir =~ "Software")
{
open (READIT, "$pod_templatedir/music.html");
}
elsif ($pod_dir =~ "Software")
{
open (READIT, "$pod_templatedir/music.html");
}
elsif ($pod_dir =~ "Fitness")
{
open (READIT, "$pod_templatedir/music.html");
}
elsif (($pod_dir =~ "Music") or ($pod_dir =~ "Musik"))
{
open (READIT, "$pod_templatedir/music.html");
}
else
{
open (READIT, "$pod_templatedir/header.html");
}

(compliments to BerKa)

Note I put "Software" twice.
The one behind "if" pulled the normal header. So I placed it again behind "elsif" which works like a charm. SImply insert your banner rotation script into the appropriate header and there you have it! (Compliments to BerKa)

Please note that you can assign multiple categories to the same alternate header... -aka - Fitness, Nutrition can go to the same alternate header displaying banners for Fitness Centers etc...

Thanks a million BerKa.

__________________
Trust your ad to See My Ad.Com - www.seemyad.com