Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
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

advertisement
  #2  
Old Nov 18, 2001, 07:43 AM
BeRKA's Avatar
BeRKA BeRKA is offline
Member
 
Member Since: Aug 2001
Location: Sweden, Stockholm
Posts: 40
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
Views: 504

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Header and footer missing! vivekar Community Feedback & Technical Support 6 Dec 19, 2001 03:44 PM
Possible POD Table and Header Fix freddy Community Feedback & Technical Support 2 Oct 20, 2001 11:53 PM
How to get more than one header in a category Mario Community Feedback & Technical Support 2 Sep 01, 2001 06:59 AM
POD: How to use different header.html for different categories! BeRKA Community Feedback & Technical Support 1 Aug 29, 2001 07:04 PM
POD header kalico Community Feedback & Technical Support 0 Jun 12, 2001 01:49 AM


All times are GMT -5. The time now is 08:13 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.