|
#1
| |||
| |||
[HILFE]Verlinken von Seiten im wbb2.3.2wie binde ich eine selbstgemachte seite in wbb ein. Ich hab schon versucht am anfang der seite $header und am ende der seite $footer zu schreiben aber er zeigt immer nur die einzelne page an. hoffe ihr könnt mir helfen. Ausserdem funktioniert das direkte verlinken auch nicht. z.B: die Community.php soll mit header und footer angezeigt werden, aber wenn ich drafgehe öffnet er nur die community.php selbst LINK mfg toschk |
|
#2
| |||
| |||
| Die community.php sollte so aussehen: Code: <?php
$filename = 'community.php';
require('./global.php');
:
: hier dein php-Code
:
eval("\$tpl->output(\"".$tpl->get("community")."\");");
?>
Die community.tpl sollte grob so aussehen: ACP -> Templates bearbeiten -> Template hinzufügen: community Code: <?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_START_TITLE']}</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> » Community</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><td class="tabletitle" align="left"><b>Community</b></td></tr>
<tr>
<td class="tablea">
:
: hier dein html-Code
:
</td>
</tr>
</table>
$footer
</body>
</html>
Das Schema stellt eine typische wBB-Seite dar. cu |
|
#3
| |||
| |||
| Hey danke funktioniert wunderbar |
![]() |
| Stichworte |
| - |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Seiten Statistiken | Marty | Boardunity-Talk | 0 | 15.03.2004 10:39 |
| Was ist mit den vBulletin Seiten? | Jan Stöver | Boardunity-Talk | 8 | 16.12.2003 16:12 |