Also das ganze funktioniert nur, wenn ich es direkt in die index.htm einbinde.
Die sieht momentan folgendermassen aus :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<!-- START MooSlide -->
<!-- The CSS -->
<link rel="stylesheet" href="include/designs/DDv7/mooslide.css" type="text/css" media="screen" />
<!-- Mootools - the core -->
<script type="text/javascript" src="include/designs/DDv7/js/mootools12.js"></script>
<!-- MooSlide (show/hide login form) -->
<script type="text/javascript" src="include/designs/DDv7/js/mooSlide2-moo12.js"></script>
<script language="javascript" type="text/ecmascript">
window.addEvent('domready',function(){
var myLogin = new mooSlide2({ slideSpeed: 1500, fadeSpeed: 500, toggler:'login', content:'loginPanel', height:250, close: false, effects:Fx.Transitions.Bounce.easeOut , from:'top'});
//optional: AutoStart the slider on page load:
//MyLogin.run();
$('close').addEvent('click', function(e){
e = new Event(e);
myLogin.clearit();
e.stop();
});
});
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.ico" >
<link rel="icon" href="favicon.gif" type="image/gif" >
<title>{TITLE}</title>
<!-- Title Start -->
<script type='text/javascript'>
<!--
var textcount = 0;
var titletext = new Array();
// hier den Titel anpassen
titletext[textcount++] = "Herzlich Willkommen";
titletext[textcount++] = "auf www.mohaa-gaming.de";
titletext[textcount++] = "die >|MG|< Murder Group";
titletext[textcount++] = "Wir suchen Member für";
titletext[textcount++] = "unseren Clan ab 18 Jahre ,";
titletext[textcount++] = "die Spass an Medal of Honor haben";
titletext[textcount++] = "mit Deutsch-Kenntnissen";
titletext[textcount++] = "Und viel Spass am zocken";
titletext[textcount++] = "Besucht uns im eigenen TS 3";
titletext[textcount++] = "Join US and Kill em All !";
// ab hier nichts mehr ändern
var i = 1;
var wo = 0;
var ud = 1;
function animatitle() {
window.document.title = titletext[wo].substr(0, i)+"_";
if ( ud== 0 ) i--;
if ( ud== 1 ) i++;
if ( i== -1 ) {
ud = 1;
i = 0;
wo++;
wo = wo % titletext.length;
}
if ( i == titletext[wo].length + 10 ) {
ud = 0;
i = titletext[wo].length;
}
parent.window.document.title = titletext[wo].substr(0, i) + "_";
setTimeout( "animatitle()", 80 );
}
animatitle();
//-->
</script>
<!-- Title Ende -->
<script type="text/javascript" src="include/includes/js/jquery.js"></script>
<script type="text/javascript" src="include/includes/js/messenger.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="include/includes/css/messenger/chat.css" />
<link type="text/css" rel="stylesheet" media="all" href="include/includes/css/messenger/screen.css" />
<!--[if lte IE 7]>
<link type="text/css" rel="stylesheet" media="all" href="include/includes/css/messenger/screen_ie.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="include/designs/DDv7/style.css">
<script type="text/javascript">
/***********************************************
* Coded by C.C.A.A.
* Visit www.DragonDesigns.de
* Drop-Down-Menu integrated by Erok - www.mohaa-gaming.de
***********************************************/
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
</script>
<link rel="stylesheet" type="text/css" href="include/designs/DDv7/tabcontent.css" />
<script type="text/javascript" src="include/designs/DDv7/tabcontent.js">
/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<script type="text/javascript" src="include/includes/js/fade.js"></script>
<link href="include/designs/DDv7/js/navistyle.css" rel="stylesheet" type="text/css" media="screen">
<script src="include/designs/DDv7/js/navi.js" type="text/javascript"></script>
</head>
<body>
<div id="toppanel">
<div id="loginPanel" class="mooSlide">
<form class="left" method="post">
<h1 class="padlock">Member Login</h1>
<label class="grey" for="log">Username:</label>
<input type="text" name="name" size="30" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="15" style="margin-top:5px; " /><br />
<label class="grey" for="pwd">Passwort:</label>
<input type="password" size="30" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="pass" style="margin-top:5px; " /><br />
<input type="submit" name="user_login_sub" value="Login" class="button_login" style="margin-top:5px; " />
<h1><a href="?user-remind" class="gradualfader"<font color="#FFFFFF">Neues Passwort anfordern</a></h1>
</form>
<div class="sep"></div>
<form class="right" method="post">
<h1>Hier kostenlos registrieren!</h1>
<label for="signup"><b>Username: </b></label>
<input type="text" name="signup" id="signup" value="" size="23" />
<label for="email"><b>Email:</b></label>
<input type="text" name="email" id="email" size="23" />
<input type="submit" name="submit" value="" class="button_register" />
</form>
<div class="clearfix"></div>
<div class="loginClose"><a href="#" id="close"> </a></div>
</div>
<body onload="MM_preloadImages('include/designs/DDv7/images/navi_01_over.png','include/designs/DDv7/images/navi_02_over.png','include/designs/DDv7/images/navi_03_over.png','include/designs/DDv7/images/navi_04_over.png','include/designs/DDv7/images/navi_05_over.png','include/designs/DDv7/images/navi_06_over.png')">
<table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="425" align="left" valign="top" background="include/designs/DDv7/images/DDv7_01.png"><table width="1200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="182" align="left" valign="top"><table width="1200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="257" height="182" align="right" valign="bottom"><table width="257" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="64" height="140"> </td>
<td align="left" valign="top"><script type="text/javascript">
var boxnd = 3;
var chosboxnd = 1;
function toggleboxnd (tkbhow) {
tkbhow = isNaN(tkbhow) ? 1 : tkbhow;
if (tkbhow < 1 || tkbhow > boxnd) {
tkbhow = (chosboxnd < boxnd) ? chosboxnd + 1 : 1;
}
document.getElementById('boxnd_'+chosboxnd).style.display = 'none';
document.getElementById('boxnd_'+tkbhow).style.display = '';
chosboxnd = tkbhow;
}
</script>
<div align="center">
<a href="javascript:void(0);" onclick="toggleboxnd(1);"><img src="include/images/icons/boxen/news.png" class="gradualfader" border="0" alt="Last News"></a>
<a href="javascript:void(0);" onclick="toggleboxnd(2);"><img src="include/images/icons/boxen/comments.png" class="gradualfader" border="0" alt="Last Comments"></a>
<a href="javascript:void(0);" onclick="toggleboxnd(3);"><img src="include/images/icons/boxen/downloads.png" class="gradualfader" cborder="0" alt="Downloads"></a>
</div>
<br />
<div id="boxnd_1">{_boxes_lastnews}</div>
<div id="boxnd_2" style="display:none">{_boxes_lastcomment}</div>
<div id="boxnd_3" style="display:none">{_boxes_downloads}</div></td></td>
<td width="5"> </td>
</tr>
</table></td>
<td width="228" height="182" align="left" valign="bottom"><table width="228" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5" height="140"> </td>
<td align="left" valign="top"><script type="text/javascript">
var boxfm = 4;
var chosboxfm = 1;
function toggleboxfm (tshow) {
tshow = isNaN(tshow) ? 1 : tshow;
if (tshow < 1 || tshow > boxfm) {
tshow = (chosboxfm < boxfm) ? chosboxfm + 1 : 1;
}
document.getElementById('bokx_'+chosboxfm).style.display = 'none';
document.getElementById('bokx_'+tshow).style.display = '';
chosboxfm = tshow;
}
</script>
<div align="center">
<a href="javascript:void(0);" onclick="toggleboxfm(1);"><img src="include/images/icons/boxen/lastforum.png" class="gradualfader" border="0" alt="Last Forum"></a>
<a href="javascript:void(0);" onclick="toggleboxfm(2);"><img src="include/images/icons/boxen/toptopic.png" class="gradualfader" border="0" alt="Top Topic"></a>
<a href="javascript:void(0);" onclick="toggleboxfm(3);"><img src="include/images/icons/boxen/topposter.png" class="gradualfader" border="0" alt="Top Poster"></a>
</div>
<br />
<div id="bokx_1">{_boxes_lastforum_bwmod}</div>
<div id="bokx_2" style="display:none">{_boxes_toptopic}</div>
<div id="bokx_3" style="display:none">{_boxes_topuser}</div></td></td>
<td width="5"> </td>
</tr>
</table></td>
<td width="228" height="182" align="left" valign="bottom"><table width="228" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5" height="140"> </td>
<td align="left" valign="top"><script type="text/javascript">
var boxwar = 4;
var chosboxwar = 1;
function toggleboxwar (tshow) {
tshow = isNaN(tshow) ? 1 : tshow;
if (tshow < 1 || tshow > boxwar) {
tshow = (chosboxwar < boxwar) ? chosboxwar + 1 : 1;
}
document.getElementById('boxwar_'+chosboxwar).style.display = 'none';
document.getElementById('boxwar_'+tshow).style.display = '';
chosboxwar = tshow;
}
</script>
<div align="center">
<a href="javascript:void(0);" onclick="toggleboxwar(1);"><img src="include/images/icons/boxen/lastwars.png" class="gradualfader" border="0" alt="Last Wars"></a>
<a href="javascript:void(0);" onclick="toggleboxwar(2);"><img src="include/images/icons/boxen/nextwars.png" class="gradualfader" border="0" alt="Next Wars"></a>
<a href="javascript:void(0);" onclick="toggleboxwar(3);"><img src="include/images/icons/boxen/warstats.png" class="gradualfader" border="0" alt="Statistic"></a>
</div>
<br />
<div id="boxwar_1">{_boxes_lastwars}</div>
<div id="boxwar_2" style="display:none">{_boxes_nextwars}</div>
<div id="boxwar_3" style="display:none">{_boxes_warstats_2}</div></td></td>
<td width="5"> </td>
</tr>
</table></td>
<td width="250" height="182" align="left" valign="bottom"><table width="248" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" height="140"> </td>
<td align="left" valign="top">{_boxes_topmatch}</td>
<td width="4"> </td>
</tr>
</table></td>
<td width="237" height="182" align="left" valign="bottom"><table width="237" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="11" height="140"> </td>
<td align="left" valign="top">{_boxes_statistik2}</td>
<td width="35"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="50" colspan="3" align="left" valign="top"><table width="1200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="220" height="50" align="left" valign="top"></td>
<td align="left" valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="#" id="login" onclick="MM_nbGroup('down','group1','Login','',1)" onmouseover="MM_nbGroup('over','Login','include/designs/DDv7/images/navi/login_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/login.png" alt="" name="Login" width="120" height="50" border="0" id="login" onload="" /></a></td>
<td><a href="index.php" onclick="MM_nbGroup('down','group1','Home','',1)" onmouseover="MM_nbGroup('over','Home','include/designs/DDv7/images/navi/navi_01_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/navi_01.png" alt="" name="Home" width="120" height="50" border="0" id="Home" onload="" /></a></td>
<td width="120"><a href="javascript:;" target="_top" onclick="return clickreturnvalue();MM_nbGroup('down','group1','Main','',1)" onmouseover="dropdownmenu(this, event, menu1, '140px');MM_nbGroup('over','Main','include/designs/DDv7/images/navi/navi_02_over.png','',1)" onmouseout="delayhidemenu();MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/navi_02.png" alt="" name="Main" width="120" height="50" border="0" /></a></td>
<td width="120"><a href="javascript:;" target="_top" onclick="return clickreturnvalue();MM_nbGroup('down','group1','Clan','',1)" onmouseover="dropdownmenu(this, event, menu2, '140px');MM_nbGroup('over','Clan','include/designs/DDv7/images/navi/navi_03_over.png','',1)" onmouseout="delayhidemenu();MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/navi_03.png" alt="" name="Clan" width="120" height="50" border="0" /></a></td>
<td width="120"><a href="javascript:;" target="_top" onclick="return clickreturnvalue();MM_nbGroup('down','group1','Server','',1)" onmouseover="dropdownmenu(this, event, menu3, '140px');MM_nbGroup('over','Server','include/designs/DDv7/images/navi/navi_04_over.png','',1)" onmouseout="delayhidemenu();MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/navi_04.png" alt="" name="Server" width="120" height="50" border="0" /></a></td>
<td width="120"><a href="javascript:;" target="_top" onclick="return clickreturnvalue();MM_nbGroup('down','group1','Media','',1)" onmouseover="dropdownmenu(this, event, menu4, '140px');MM_nbGroup('over','Media','include/designs/DDv7/images/navi/navi_05_over.png','',1)" onmouseout="delayhidemenu();MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/navi_05.png" alt="" name="Media" width="120" height="50" border="0" /></a></td>
<td><a href="index.php?gbook" onclick="MM_nbGroup('down','group1','Gbook','',1)" onmouseover="MM_nbGroup('over','Gbook','include/designs/DDv7/images/navi/navi_06_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="include/designs/DDv7/images/navi/navi_06.png" alt="" name="GBook" width="120" height="50" border="0" id="Gbook" onload="" /></a></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="60" background="include/designs/DDv7/images/DDv7_02.png"><table width="1200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="260" height="60" align="right" valign="bottom"><table width="260" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="95" height="45"> </td>
<td width="165" align="left" valign="top">
<ul id="countrytabs1" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Menü 1</a></li>
<li><a href="#" rel="country2">Menü 2</a></li>
</ul></td>
</tr>
</table></td>
<td width="541" align="center" valign="middle">{_boxes_ticker}</td>
<td width="260" align="left" valign="bottom"><table width="260" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48" height="45"> </td>
<td width="212" align="left" valign="top">
<ul id="countrytabs2" class="shadetabs">
<li><a href="#" rel="country3" class="selected">Menü 3</a></li>
<li><a href="#" rel="country4">Menü 4</a></li>
</ul></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td background="include/designs/DDv7/images/DDv7_03.png"><table width="1200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" align="right" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40"> </td>
<td>
<div width="197px">
<div id="country1" class="tabcontent">
{_list_menunr1@
<table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" background="include/designs/DDv7/images/menu1.png"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="197" height="37" align="center" valign="middle" class="btitle" background="include/designs/DDv7/images/menu1.png">%1</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top">%2</td>
</tr>
</table>}
</div>
<div id="country2" class="tabcontent">
{_list_menunr2@
<table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" background="include/designs/DDv7/images/menu1.png"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="197" height="37" align="center" valign="middle" class="btitle" background="include/designs/DDv7/images/menu1.png">%1</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top">%2</td>
</tr>
</table>}
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs1")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</td>
</tr>
</table></td>
<td width="700" align="left" valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60"> </td>
<td width="580">{HMENU}</td>
<td width="60"> </td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"> </td>
<td width="670">{EXPLODE}</td>
<td width="15"> </td>
</tr>
</table></td>
</tr>
</table></td>
<td width="250" align="left" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" valign="top">
<div width:210px>
<div id="country3" class="tabcontent">
{_list_menunr3@
<table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" background="include/designs/DDv7/images/menu2.png"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="197" height="37" align="center" valign="middle" class="btitle" background="include/designs/DDv7/images/menu2.png">%1</td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">%2</td>
<td width="13"> </td>
</tr>
</table></td>
</tr>
</table>}
</div>
<div id="country4" class="tabcontent">
{_list_menunr4@
<table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" background="include/designs/DDv7/images/menu2.png"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="197" height="37" align="center" valign="middle" class="btitle" background="include/designs/DDv7/images/menu2.png">%1</td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">%2</td>
<td width="13"> </td>
</tr>
</table></td>
</tr>
</table>}
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs2")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script></td>
<td width="40"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="120" align="center" valign="bottom" background="include/designs/DDv7/images/DDv7_04.png"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="47" align="center" valign="top"><a href="http://www.dragondesigns.de" target="_blank" class="copyright">Copyright by DragonDesigns © 2009-2010</a></td>
</tr>
</table></td>
</tr>
</table>
<script type="text/javascript">gradualFader.init() //activate gradual fader</script>
</body>
</html>
<!-- {_list_DDDmenupoint@<strong><big>·</big></strong><a %1 class="box" href="%2">%3</a><br />}
{_list_hmenupoint@<li><a target="%1" class="box" href="%2">%3</a>|</li>|<br />|</ul></li>}
{_list_hmenubegi@<ul>}
{_list_hmenuende@</ul>}
{_list_vmenupoint@<a target="%1" class="menu" href="%2">%3</a>}
{_list_vmenubegi@}
{_list_vmenuende@}//-->
Jedoch kann das ja nicht wirklich gehen.
Dann versuchte ich es über die {_boxes_panel_login} mit der panel_login.php vom Sliding Login Modul was bei Gecko auf der HP zu finden ist.
Dazu wäre das die php-Datei
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$tpl = new tpl ( 'user/panel_login.htm' );
if ( loggedin() ) {
if ( user_has_admin_right($menu,false) ) {
$tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' );
} else {
$tpl->set ( 'ADMIN', '' );
}
if ( $allgAr['Fpmf'] == 1 ) {
$erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']);
$check_pm = db_result($erg,0);
$nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>';
} else {
$nachrichten_link = '';
}
$tpl->set ( 'SID' , session_id() );
$tpl->set ( 'NACHRICHTEN' , $nachrichten_link );
$tpl->set ( 'NAME', $_SESSION['authname'] );
$tpl->out (0);
} else {
if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; }
if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; }
$regist = '';
if ( $allgAr['forum_regist'] == 1 ) {
$regist = ' <a href="index.php?user-regist">Regist</a>';
}
$tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 );
}
unset($tpl);
?>
und eine panel_login.htm dazu :
<div id="toppanel">
<div id="loginPanel" class="mooSlide">
<form class="left" method="post">
<h1 class="padlock">Member Login</h1>
<label class="grey" for="log">Username:</label>
<input type="text" name="name" size="30" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="15" style="margin-top:5px; " /><br />
<label class="grey" for="pwd">Passwort:</label>
<input type="password" size="30" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="pass" style="margin-top:5px; " /><br />
<input type="submit" name="user_login_sub" value="Login" class="button_login" style="margin-top:5px; " />
<h1><a href="?user-remind" class="gradualfader"<font color="#FFFFFF">Neues Passwort anfordern</a></h1>
</form>
<div class="sep"></div>
<form class="right" method="post">
<h1>Hier kostenlos registrieren!</h1>
<label for="signup"><b>Username: </b></label>
<input type="text" name="signup" id="signup" value="" size="23" />
<label for="email"><b>Email:</b></label>
<input type="text" name="email" id="email" size="23" />
<input type="submit" name="submit" value="" class="button_register" />
</form>
<div class="clearfix"></div>
<div class="loginClose"><a href="#" id="close"> </a></div>
</div>
Jedoch funktioniert das auch nicht, da nach dem Login, der geht, die Box beim erneuten aufrufen nicht auf eingeloggten Modus umschaltet.
Da versuchte ich den original Code der boxen_login.htm einzubauen, dann sieht man aber garnix mehr auf der Homepage. Lediglich der Background wird noch angezeigt ansonsten rein garnichts.
Greetz Erok