Birdie501
04-03-2002, 08:58 PM
Hi,
i just installed the vbhome lite hack. I edited index.php and saved as hunde.php
ok what i want is that
if i call hunde.php the main page with an directory should be displayed.
if i call hunde.php?&name=dino the template dino should be displayed.
if i call hunde.php?&name=dino&typ=ahnentafel the template dino_ahnentafel should be displayed.
if i call hunde.php?&name=dino&typ=koerschein the template dino_koerschein should be displayed.
I used this code:
// ############################### Start Dino ###############################
if ($name=="dino") {
eval("dooutput(\"".gettemplate("dino")."\");");
if ($typ=="ahnentafel") {
eval("dooutput(\"".gettemplate("dino_ahnentafel")."\");");
}
if ($typ=="koerschein") {
eval("dooutput(\"".gettemplate("dino_koerschein")."\");");
}
// eval("dooutput(\"".gettemplate("dino")."\");");
}
// ############################### Ende Dino ###############################
eval("dooutput(\"".gettemplate("home_hunde")."\");");
?>
but there must be an error because if i call e.g.hunde.php?&name=dino&typ=ahnentafel it always show some code from the beginning of the template dino. I know that because if i take a look at the page code in the browser it tells me at the end
<!-- BEGIN TEMPLATE: home_headinclude -->
<meta http-equiv="MSThemeCompatible" content="Yes">
<s
nothing more!
the dino_ahnentafel template code is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle - Dino von der General-Giusanstrasse</title>
$homeheadinclude
</head>
<body>
$homeheader
<table cellpadding="4" cellspacing="1" border="0" width="100%">
text ... Ahnentafel von Dino
</table>
$homefooter
</body>
</html>
Where is the error??
Sorry for my bad english! I am from Germany.
Thanks for your help!
Regards Birdie501
i just installed the vbhome lite hack. I edited index.php and saved as hunde.php
ok what i want is that
if i call hunde.php the main page with an directory should be displayed.
if i call hunde.php?&name=dino the template dino should be displayed.
if i call hunde.php?&name=dino&typ=ahnentafel the template dino_ahnentafel should be displayed.
if i call hunde.php?&name=dino&typ=koerschein the template dino_koerschein should be displayed.
I used this code:
// ############################### Start Dino ###############################
if ($name=="dino") {
eval("dooutput(\"".gettemplate("dino")."\");");
if ($typ=="ahnentafel") {
eval("dooutput(\"".gettemplate("dino_ahnentafel")."\");");
}
if ($typ=="koerschein") {
eval("dooutput(\"".gettemplate("dino_koerschein")."\");");
}
// eval("dooutput(\"".gettemplate("dino")."\");");
}
// ############################### Ende Dino ###############################
eval("dooutput(\"".gettemplate("home_hunde")."\");");
?>
but there must be an error because if i call e.g.hunde.php?&name=dino&typ=ahnentafel it always show some code from the beginning of the template dino. I know that because if i take a look at the page code in the browser it tells me at the end
<!-- BEGIN TEMPLATE: home_headinclude -->
<meta http-equiv="MSThemeCompatible" content="Yes">
<s
nothing more!
the dino_ahnentafel template code is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle - Dino von der General-Giusanstrasse</title>
$homeheadinclude
</head>
<body>
$homeheader
<table cellpadding="4" cellspacing="1" border="0" width="100%">
text ... Ahnentafel von Dino
</table>
$homefooter
</body>
</html>
Where is the error??
Sorry for my bad english! I am from Germany.
Thanks for your help!
Regards Birdie501