![]() |
FAQ/Help |
Calendar |
Search |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Thanx for the praise. (Blush)
It is DocJohn that is the true guru! I had almost the same problem with some of the categories that I made special headers for. For example, I had a special header for Hacking, but I didn't want to use that for Regional: Oceania: Australia: New South Wales: Localities: P: Port Hacking What I did was to include all of the path that I wanted in the elsif statement: elsif ($pod_dir =~ "Computers\/Hacking") { open (READIT, "$pod_templatedir/hack.html"); } (The backslash in the path is not needed here, but I usually include it anyway.) Cheers /BeRKA |
Reply |
|
![]() |
||||
Thread | Forum | |||
Header and footer missing! | Community Feedback & Technical Support | |||
Possible POD Table and Header Fix | Community Feedback & Technical Support | |||
How to get more than one header in a category | Community Feedback & Technical Support | |||
POD: How to use different header.html for different categories! | Community Feedback & Technical Support | |||
POD header | Community Feedback & Technical Support |