Crook
Hallo Leute,
Ich will im Forum ne Seite machen wo news und so stehen!
Also Header und Navi sollten noch auf ihren Plätzen sein und beim Inhalt will ich halt I-Frames einfügen! also Newssysteme von andern anbietern oder Radio...
Ich versuchte es hier mit:
Zitat: |
<?php
$filename="Test.php";
require("global.php");
?> |
ging aber net!
hoffe ihr könnt mir weter helfen!
Blackstar5
php: |
1:
2:
3:
4:
5:
|
<?php
$filename="SEITEN-NAME.php";
require("./global.php");
eval("\$tpl->output(\"".$tpl->get("TPL-NAME.tpl")."\");");
?> |
|
Die Seite kann nichts ausser den Inhalt der TPL Datei wiedergeben, ist dir klar oder?
24Bytes
.tpl muss nicht im name sein
lycoos
Such mal nach dem neue Seiten Hack vom Radiaition. Die Frage wurde schon ein paar mal Beantwortet.
el17
Ich glaube ich hab das von Radition:
1. Du erstellst local ein template:
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
|
<?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 | Euer Seitenname</title>
$headinclude
</head>
<body>
$header
<!-- Ab hier kommt Dein HTML-Code -->
<table>
<tr><td>Hier erscheint Dein Text </td></tr>
</table>
<!-- Hier endet Dein HTML-Code -->
$footer
</body>
</html>
|
|
speicherst es als news.tpl
2. du erstellst eine news.php
code: |
1:
2:
3:
4:
5:
6:
7:
8:
|
<?php
require('./global.php');
eval("\$tpl->output(\"".$tpl->get("news")."\");");
?>
|
|
3. local speichern als news.php
4. mit ftpclient:
die news.php ins root deines boards
die news.tpl ind den Ordner templates.
5. ins acp:
neues template importiren > templates cachen.
fertig.
deinedomain.tld/news.php funzt.
optional den link zu den news in das header.tpl einfügen.
24Bytes
man kann templates auch im ACP erstellen und muss kein .tpl anwenden
auserdem ist es ein wBB1 user im falschem forum...
Crook
Zitat: |
Original von gigafan
man kann templates auch im ACP erstellen und muss kein .tpl anwenden
auserdem ist es ein wBB1 user im falschem forum... |
Ja stimmt, ich hab WBB-Lite, hab shon paar mal versucht, funtzt net!