php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2004-2

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 28.11.2004, 12:17  
Erfahrener Benutzer
 
Registriert seit: 19.06.2004
Beiträge: 216
Tschuu
Standard .tpl datei aufrufen!

Hi, hab ein problem! Ich hab einen Quelltext in einer .tpl datei!
Wie rufe ich diese datei auf einer anderen seite auf?

mit

<?php include ("test.tpl"); ?> gehts ja net ... Sorry, aber ich hab keine ahnung dafon (leider)
Tschuu ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 28.11.2004, 12:18  
Gast
 
Beiträge: n/a
Standard

http://de.php.net/filesystem

was kommt den bei include() für eine fehlermeldnug?
 
Alt 28.11.2004, 12:21  
Erfahrener Benutzer
 
Registriert seit: 19.06.2004
Beiträge: 216
Tschuu
Standard

Die header.tpl datei sieht so aus:

Code:
   <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
     <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td background="../../design/des2-2-1.gif" width="11"></td>
        <td bgcolor="F2F2F2" align="center">[img]../design/banner.gif[/img][img]../design/banner.jpg[/img]</td>
        <td background="../../design/des2-2-3.gif" width="12"></td>
       </tr>
       <tr>
        <td background="../design/des2-3-1.gif" height="23"></td>
        <td background="../../design/des2-3-2.gif"></td>
        <td background="../design/des2-3-3.gif"></td>
       </tr>
      </table>
    </tr>    
   </table>



<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
 <tr valign="top">
  <td width="150">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="../design/des1-1-1.gif" width="11" height="34"></td>
    <td background="../design/des1-1-2.gif" align="left"><span class="menuheader2">NAVIGATION</span></td>
    <td background="../design/des1-1-3.gif" width="12"></td>
  </tr>
  <tr>
    <td background="../design/des1-2-1.gif"></td>
    <td bgcolor="F2F2F2" align="left" style="font-size:12px;">
<style type="text/css">
body { font-size: 12px; }
.x { font-size: 12px; }
.y { font-size: 8px; }
</style>
    
	<span class="menuheader">Community</span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Home
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>News
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Forum
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Chat
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Gästebuch
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Shoutbox
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    

    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
	
	
	
    <span class="menuheader">Forum-Navy</span>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
	<span class="menuheader">&raquo;</span>Startseite    
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Mitglieder
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Team
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Suche
	
	<if($wbbuserdata['userid'])><then>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
	<span class="menuheader">&raquo;</span>Profil
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>PN's
	</then><else>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Registrieren
	</else></if>
	
	<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
	<span class="menuheader">&raquo;</span>Admin CP
	</then></if>
    <if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
	<span class="menuheader">&raquo;</span>Moderator CP
	</then></if>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
	
	
	
	
<if($wbbuserdata['userid']==0)>
 <then>
  <a name="login" id="login"></a>
  <if($allowloginencryption==1)><then>
  <script type="text/javascript" src="js/sha1.js"></script>
  <script type="text/javascript" src="js/crypt.js"></script>
  </then></if>
  <form method="post" action="login.php" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>>
  <input type="hidden" name="send" value="send" />
  <input type="hidden" name="sid" value="$session[hash]" />
  <if($allowloginencryption==1)><then>
  <input type="hidden" name="authentificationcode" value="$session[authentificationcode]" />
  <input type="hidden" name="crypted" value="false" /></then></if>
  <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
   <tr>
    <td>
	<table cellpadding="0" cellspacing="0" align="center">
     <tr>
	  <td><span class="menuheader">&raquo;</span><span class="x">Login</span>
</td>
	 </tr>
	 <tr>
      <td>
	   <span class="x">Benutzername:</span>

       <input type="text" name="l_username" maxlength="50" size="17" class="input" tabindex="1" />
	  </td>
	 </tr>
	 <tr>
      <td>
	   <span class="x">Passwort:</span>

       <input type="password" name="l_password" maxlength="30" size="17" class="input" tabindex="2" />
	  </td>
	 </tr>
	 <tr>
	  <td><div align="center" class="y">(<span class="y">Passwort vergessen</span>)</div></td>
	 </tr>
	 <tr>
	  <if($allowloginencryption==1)><then>
      <td><span class="smallfont"><label for="checkbox1">{$lang->items['LANG_GLOBAL_ENCRYPT_TRANSFER']}</label></span></td>
      <td><span class="smallfont"><input type="checkbox" id="checkbox1" name="activateencryption" onclick="activate_loginencryption(document.loginform);" /></span></td></then></if>
      <td><div align="center"><input type="submit" value=" Login "></div></td>
     </tr>
    </table>
	</td>
   </tr>
  </table></form>
  <if($allowloginencryption==1)><then>
  <script type="text/javascript">
   <!--
    activate_loginencryption(document.loginform);
   //-->
  </script></then></if>
 </then>
</if>


<if($wbbuserdata['userid']==1)>
  <then>
   <span class="menuheader">&raquo;</span>Logout
  </then>
 </if>


    
	
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    

    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">ExDi-Clan</span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Mitglieder
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Join Us
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Fight Us
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Warhistory
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Membermap
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    

    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">Service</span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Kontakt
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Teambanner
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Link Us
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Impressum
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Partner
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    

    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">Claninternes</span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Webmail
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    

	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">Administration</span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span>Administration
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    

    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">Statistik</span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../design/space.gif" height="4"></td></tr></table>
    <span class="menuheader">&raquo;</span><?php readfile ("../counter/counter.txt"); ?> Besucher
	
   </td>
   <td background="../design/des1-2-3.gif"></td>
  </tr>
  <tr>
    <td background="../design/des1-3-1.gif" height="22"></td>
    <td background="../design/des1-3-2.gif"></td>
    <td background="../design/des1-3-3.gif"></td>
  </tr>
</table>

  </td>
  <td width="8"></td>
  <td>

<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
  <tr>
    <td background="../design/des1-1-1.gif" width="11" height="34"></td>
    <td background="../design/des1-1-2.gif" align="left"><span class="menuheader2">EXTREME DIMENSION - FORUM</span></td>
    <td background="../design/des1-1-3.gif" width="12"></td>
  </tr>
  <tr>
    <td background="../design/des1-2-1.gif"></td>
    <td bgcolor="F2F2F2" align="center">
Die test.php datei sieht so aus:
PHP-Code:
<?php include ("wbb/templates/header.tpl"); ?>
das ist nicht wirklcih eine fehlermeldung --> www.ex-di.de/test.php
Tschuu ist offline  
Alt 28.11.2004, 12:28  
Gast
 
Beiträge: n/a
Standard

Du fügst die Datei ja auch nur ein, ohne die Template-Variablen mit Werten zu füttern.
 
Alt 28.11.2004, 12:31  
Erfahrener Benutzer
 
Registriert seit: 19.06.2004
Beiträge: 216
Tschuu
Standard

... ah
__________________
MfG: Tschuu
Tschuu ist offline  
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Datei per Buttonklick runterladen... go1denboy PHP Tipps 2008 7 14.06.2008 20:25
php - Datei über .htaccess aufrufen pcschröda Server, Hosting und Workstations 9 10.04.2008 13:37
Datei nur einmal gleichzeitig aufrufen daniel2000 Scriptbörse 2 04.02.2008 11:30
Großer Baum -> Große Datei -> Hohe Ladezeit :( PsychoEagle PHP Tipps 2008 7 22.09.2007 12:44
funktion soll funktion aufrufen, welche datei einbindet PHP Tipps 2006 12 13.03.2006 18:31
Datei durchsuchen Wöllchen Beitragsarchiv 3 02.03.2006 22:23
Aufruf in .tpl Datei? PHP Tipps 2006 3 21.02.2006 02:09
Datei auf FTP-Server ändern ohne lokal abzuspeichern faux PHP-Fortgeschrittene 11 02.09.2005 11:54
mit onclick() Datei aufrufen HTML, Usability und Barrierefreiheit 6 11.08.2005 11:22
Datei aufrufen PHP Tipps 2005-2 7 09.08.2005 18:29
Ordner Struktur auslesen bestimmte datei finden .... silverghost PHP Tipps 2005 3 24.05.2005 13:55
Datei mit php erzeugen Stümper PHP Tipps 2004 4 12.10.2004 12:51
php und ftp PHP Tipps 2004 4 07.10.2004 09:58
[Erledigt] kompilierte C datei über Apache aufrufen! Server, Hosting und Workstations 6 02.09.2004 23:49
URL aus Datei über Parameter aufrufen PHP Tipps 2004 12 27.08.2004 15:29

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
tpl datei span text, tpl datei span, tpl aufrufen, \php in wbb\

Alle Zeitangaben in WEZ +2. Es ist jetzt 23:07 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.