![]() |
FAQ/Help |
Calendar |
Search |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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
|
|||
|
|||
Thank you BeRKA,
I am very pleased that i can add more than one advertising for each category. Thanks again, Mario |
Reply |
|
![]() |
||||
Thread | Forum | |||
Category Game IX | General Social Chat | |||
category 3 game 4 | General Social Chat | |||
Category Game 3 | General Social Chat | |||
Category Game 2 | General Social Chat | |||
POD header | Community Feedback & Technical Support |