Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Aug 31, 2001, 05:55 PM
Mario Mario is offline
New Member
 
Member Since: Aug 2001
Posts: 3
Hi,
I saw the question about to make different headers,but it works only with one header.For example,if i want to make a advertising in the cat. GAMES,than is a part of the script:

if ($pod_dir =~ "Games")
{
open (READIT, "$pod_templatedir/Games.html");
}
else
{
open (READIT, "$pod_templatedir/header.html");
}

But what to do with more categories?I doesn't work with 2 times the same script.

Can someone help me please?

With regards,
Mario


advertisement
  #2  
Old Sep 01, 2001, 01:33 AM
BeRKA's Avatar
BeRKA BeRKA is offline
Member
 
Member Since: Aug 2001
Location: Sweden, Stockholm
Posts: 40
To have more than one extra header file You can do like this in the "podvars.pm" file.

if ($pod_dir =~ "Spears,_Britney")
{
open (READIT, "$pod_templatedir/britney.html");
}
elsif ($pod_dir =~ "Madonna")
{
open (READIT, "$pod_templatedir/madonna.html");
}
elsif (($pod_dir =~ "Music") or ($pod_dir =~ "Musik"))
{
open (READIT, "$pod_templatedir/music.html");
}
else
{
open (READIT, "$pod_templatedir/header.html");
}

I hope this helps.
kindly
/BeRKA

  #3  
Old Sep 01, 2001, 06:59 AM
Mario Mario is offline
New Member
 
Member Since: Aug 2001
Posts: 3
Thank you BeRKA,

I am very pleased that i can add more than one advertising for each category.

Thanks again,

Mario

Reply
Views: 385

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
Category Game IX breezer General Social Chat 992 Jun 05, 2007 08:18 PM
category 3 game 4 General Social Chat 1009 May 17, 2007 06:38 PM
Category Game 3 jlove973 General Social Chat 998 May 07, 2007 09:08 PM
Category Game 2 jlove973 General Social Chat 1033 Apr 10, 2007 07:31 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:42 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.