[2.3.x] neue Seiten einbauen

Jonny
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | Impressum</title>
$headinclude
</head>
<body>
 $header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
 <tr>
  <td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
   <tr class="tablea_fc">
    <td align="left"><span class="smallfont"><b><a href="index.php?sid=$session[hash]">$master_board_name</a> &raquo; Impressum</b></span></td>
    <td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
   </tr>
  </td>
</tr>
  </table>
</table>
<br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
  <tr>
    <td class="tabletitle" align="left"><span class="normalfont"><b>Impressum</b></span></td>



###########################


hier ein auszug mal aus der impressum tpl, .... überall wo impressum steht , einfach in der neuen xxx.tpl durch xxx ersetzen
NeLL
Vielen Dank Jonny,

Zitat:
Original von Jonny
code:
1:
<title>$master_board_name | Impressum</title>



so hatte ich es dann auch gelöst, weil es mit Sprachvariablen scheinbar nicht klappen will/kann.
hardcore-punk
wie hast du denn die Sprachvariable genannt als du sie erstellt hast?
NeLL
Zitat:
Original von Jonny
Sprachvariable: LANG_WIW_FILE_IMPRESS

Textinhalt: ist im Impressum <a href="impressum.php$SID_ARG_1ST">Impressum</a>

################

so müsste es klappen

Genau so. smile Nur eben ohne "ist im".
Jonny
Zitat:
Original von NeLL
Zitat:
Original von Jonny
Sprachvariable: LANG_WIW_FILE_IMPRESS

Textinhalt: ist im Impressum <a href="impressum.php$SID_ARG_1ST">Impressum</a>

################

so müsste es klappen

Genau so. smile Nur eben ohne "ist im".


die ist nur für WIW



wenn du eine für titel machen willst:

Kategorie:global
Sprachvariable:LANG_GLOBAL_IMPRESSUM
Textinhalt: Impressum

und in der tpl:
<title>$master_board_name | {$lang->items['LANG_GLOBAL_IMPRESSUM']}</title>


so müsste es klappen
NeLL
Ahh, danke! Großartig. smile smile smile
Phoenix Neo
Hallo ihrs. smile

Ich habe da irgendwie ein Problem mit diesem Hack. Öö

Und zwar bekomme ich eine vollkommen weiße Seite, wenn ich die entsprechende Seite aufrufe.

Das template habe ich bereits modifiziert, weil ich zuerst dachte, dass es daran liegen mag.

Ich bin wie folgt vorgegangen und habe die php so entsprechend meinen bedürfnissen angepasst:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<?php                                                    
                              $filename="huntikdb.php";                               
                              require("global.php");                                   
  require("acp/lib/class_parse.php");                      
                              eval("\$tpl->output(\"".$tpl->get("huntikdb")."\");");  
                              if($action=="huntikdb") {                               
                              eval("\$tpl->output(\"".$tpl->get("huntikdb")."\");");  
                              }                                                        
                              ?>                                                       



Das Template habe ich dementsprechend auch unter standarttemplates mit dem Namen huntikdb eingetragen und dort die Änderungen vorgenommen.

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_FAQ_FAQ']}</title>
$headinclude
</head>

<body>
 $header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
 <tr>
  <td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
   <tr class="tablea_fc">
    <td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> &raquo; 
    Die Datenbank der Huntik-Vereinigung </b></span></td>
    <td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
   </tr>
  </table></td>
 </tr>
</table><br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
 <tr align="left">
  <td class="tablecat" colspan="2"><span class="normalfont"><b>Holotome</b></span></td>
 </tr>
 <tr align="left">
  <td class="tableb" style="width:100%"><span class="normalfont">
<iframe src="http://www.anitopia.de/huntik/data/index.php" name="schaufenster" align="middle" height="565" width="800"> </iframe>
</span></td>
 </tr>
 </table>
$footer
</body>
</html>



Woran liegt es, dass ich das ganze leider nicht angezeigt kriege?
Vielen Dank schon im Voraus für eine Rückantwort.

MfG
P.N.