Boardunity & Video Forum

Boardunity & Video Forum (https://boardunity.de/)
-   Programmierung und Datenbanken (https://boardunity.de/programmierung-datenbanken-f23.html)
-   -   [HILFE]Verlinken von Seiten im wbb2.3.2 (https://boardunity.de/hilfe-verlinken-seiten-wbb2-3-2-a-t3318.html)

toschk 16.07.2005 13:12

[HILFE]Verlinken von Seiten im wbb2.3.2
 
wie 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

utopia 18.07.2005 10:18

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> &raquo; 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

toschk 22.07.2005 09:05

Hey danke funktioniert wunderbar


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:08 Uhr.

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