View Single Post
 
Old Nov 17, 2001, 02:59 PM
freddy freddy is offline
Member
 
Member Since: Oct 2001
Location: USA
Posts: 40
Hi Gang:

Several posts back our very own CGI guru BerKa gave us the ability to attach different headers to different categories in the podvars.pm script. This allowed me to place targeted banners in the different headers -aka- I made one for "Autos" and run automotive banners in that header.

ANYWAY - I stumbled across a minor problem (very minor). I made a header for the directory entitled "Home".

elsif ($pod_dir =~ "Home")
{
open (READIT, "$pod_templatedir/furniture_hdr.html");

Being an old Simpson's fan I decided to look up Homer Simpson. When I entered the directory, my "Home" furniture header came up with it. The POD script saw the word 'Home' inside the word 'Homer' and reacted appropriately...

SOLUTION - I changed

elsif ($pod_dir =~ "Home")

TO

elsif ($pod_dir =~ "Home/")

...and everything appears to be working just fine. The multiple headers are more discriminatory. This script works wonders for my type of arrangement. I hope BerKa does'nt get tired of me saying thanks. Thanks again BerKa.

*note: only use the / at the end of actual directories -aka- House/ WILL NOT WORK unless there is an actual directory path with House/ in it (examp)

/Arts/Music/Styles/Dance/House/
OR
/Arts/Music/Styles/Dance/House/History/

freddy

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