Brauche hilfe beim einbinden der Seite ins Forum
Verfasst: 26.04.2005 15:07
Hallo also ich habe folgendes problem bzw bräuchte hilfe möchte meine Seite (die ich jetzt neu mache) ins Forum einbinden damit sich User so über die Hp einloggen/ausloggen kann, ich anzeige kann wer online ist,Abfragen kann ob eingeloggt ist (für bestimmte bereiche im Forum) bräuchte da etwas hilfe da ich das selber nicht richtig hinbekomme
kann mal den code senden der zum Testen dient (und noch nicht fertig ist)
liegt alles im ordner namens Test
wird später noch geändert
hier mal ein link
http://www.rpgstation.de/test/phpbbsite.php
hier die codes
Navi Links:(eigentlich unwichtig)
Navi Rechts mit Loginbox:(geht noch nicht richtig außerdem will ich das wenn man eingeloggt ist da steht das man eingeloggt hat und dann ein Link da ist zum auslogge)
Index:
kann mal den code senden der zum Testen dient (und noch nicht fertig ist)
liegt alles im ordner namens Test
Code: Alles auswählen
Server
| |
| |
Forum Test(hpordner)
hier mal ein link
http://www.rpgstation.de/test/phpbbsite.php
hier die codes
Navi Links:(eigentlich unwichtig)
Code: Alles auswählen
<table align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;">
<tr>
<td class="text" align="center" height="18" width="150" style="background-image: url(images/cellpic.gif); border-bottom: #000000 1px solid;">
<b>Main</b>
</td>
</tr>
<tr>
<td class="text" align="center" height="18" width="150" bgcolor="#5c6679">
<a href="http://www.rpgstation.de/test/phpbbsite.php?inhalt=welcome" target="_top" class="navi">Welcome</a><br>
<a href="http://www.rpgstation.de/test/phpbbsite.php?inhalt=welcome2" target="_top" class="navi">Welcome2</a><br>
<a href="#" target="_top" class="navi">Link 3</a><br>
<a href="#" target="_top" class="navi">Link 4</a><br>
</td>
</tr>
</table>
<br>
<table align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;">
<tr>
<td class="text" align="center" height="18" width="150" style="background-image: url(images/cellpic.gif); border-bottom: #000000 1px solid;">
<b>Die Maker</b>
</td>
</tr>
<tr>
<td class="text" align="center" height="18" width="150" bgcolor="#5c6679">
<a href="#" target="_top" class="navi">Link 1</a><br>
<a href="#" target="_top" class="navi">Link 2</a><br>
<a href="#" target="_top" class="navi">Link 3</a><br>
<a href="#" target="_top" class="navi">Link 4</a><br>
</td>
</tr>
</table><br>
Code: Alles auswählen
<table align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;">
<tr>
<td class="text" align="center" height="18" width="150" style="background-image: url(images/cellpic.gif); border-bottom: #000000 1px solid;">
<b>PotM</b>
</td>
</tr>
<tr>
<td class="text" align="center" height="18" width="150" bgcolor="#5c6679">
<a href="javascript:PotM()" target="_top" class="navi"><img src="http://www.rpgstation.de/PotM/PotM5.png" alt="PotM" width="130" height="95" border="0"></a><br>
</td>
</tr>
</table>
<br>
<table align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;">
<tr>
<td class="text" align="center" height="18" width="150" style="background-image: url(images/cellpic.gif); border-bottom: #000000 1px solid;">
<b>Login</b>
</td>
</tr>
<tr>
<td class="text" align="center" height="18" width="130" bgcolor="#5c6679">
Benutzername: <br><input type="text" name="username"><br>
Passwort:<br> <input type="password" name="password"><br>
Autologin? <input type="checkbox" name="autologin"><br>
<input type="hidden" name="redirect" value="phpbbsite.php">
<input type="submit" name="login" value="Login">
</form>
</td>
</tr>
</table><br>
Code: Alles auswählen
<?php
//Benötigte Dateien und Variablen von phpBB
define('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//Session auslesen und Benutzer-Informationen laden
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>
<head>
<title>RPG Station</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Language" Content="de">
<link rel="stylesheet" type="text/css" href="css/design.css">
<script language="JavaScript">
<!--
function PotM()
{
var breite=500;
var hoehe=500;
var positionX=((screen.availWidth / 2) - breite / 2);
var positionY=((screen.availHeight / 2) - hoehe / 2);
var url='potm.php';
pop=window.open('','PotM','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000');
pop.resizeTo(breite,hoehe);
pop.moveTo(positionX,positionY);
pop.location=url;
}
onerror = stopError;
function stopError()
{return true;}
// -->
</script>
</head>
<body bgcolor="#5c6679">
<table align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;">
<tr>
<td colspan="3" width="1024" style="border-bottom: #000000 1px solid;" align="center">
<img src="images/header.gif" alt="header">
</td>
</tr>
<tr>
<td colspan="3" align="center" height="18" style="background-image: url(images/cellpic.gif); border-bottom: #000000 1px solid;" class="text">
| <a href="http://www.rpgstation.de" target="_top" class="navi">Home</a> | <a href="http://www.rpgstation.de/forum/" target="_top" class="navi">Forum</a> | <a href="staff.php" target="_top" class="navi">Staff</a> | <a href="http://www.rpgstation.de/gb/" target="_blank" class="navi">Gästebuch</a> | Hosted by <a href="http://www.f2k-hosting.net/" target="_blank" class="navi">f2k-Hosting</a> |
</td>
</tr>
<tr align="center">
<td align="center" valign="top" class="text" bgcolor="#687E9A"><br>
<?
include("navigation_links.php");
?>
</td>
<td align="center" valign="top" class="text" bgcolor="#687E9A"><br>
<?
$inhalt=$_GET['inhalt'];
if (!isset ($inhalt)) {
include('home.php');
}elseif($inhalt == "welcome") {
include('welcome1.php');
}elseif($inhalt == "welcome2"){
include('welcome2.php');
}
?>
</td>
<td align="center" valign="top" class="text" bgcolor="#687E9A"><br>
<?
include("navigation_rechts2.php");
?>
</td>
</tr>
</table>
<div class="text"><br></div>
<table width="1024" align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;">
<tr>
<td height="20" align="center" bgcolor="#687E9A" class="text">
<div class="text">
Copyright ©
<?php
$datum=date("Y");
echo $datum;
?> by Eternitysoft(code) und SilverVegeto(design) Best View: 1024*768</div>
</td>
</tr>
</table>