nickpage work
This commit is contained in:
parent
45ca500cc3
commit
0637c14b23
5 changed files with 76 additions and 82 deletions
|
@ -45,12 +45,17 @@ class nickpage extends module{
|
|||
|
||||
$result=$db->query("SELECT * FROM `" . $config["prefix"] . "v_nickpage` WHERE `username`='".$db->escape($_GET['user'])."' LIMIT 1");
|
||||
$user=$db->fetch_array($result);
|
||||
|
||||
$themedir = $this->getTemplateDir();
|
||||
if(!isset($_GET['user']) || $db->num_rows($result)<=0 || $_GET['user']==''){
|
||||
$db->free_result($result);
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
$user['sitetitle']='Nickpage nicht gefunden';
|
||||
$this->tpl->assign('user',$user);
|
||||
$this->tpl->assign("themepath",'/themes/'.$config['theme']);
|
||||
$this->tpl->assign('domain',$config['domain']);
|
||||
$content=$this->tpl->fetch('nickpage_error.tpl');
|
||||
$core->make_page($content,TRUE,$themedir.'/nickpage.tpl',NULL,NULL);
|
||||
}else{
|
||||
$parser=new textparser();
|
||||
$loggedin = false;
|
||||
|
@ -136,9 +141,9 @@ class nickpage extends module{
|
|||
$data=get_user_room($user['username']);
|
||||
if($data){
|
||||
$user['room']=$data['room'];
|
||||
$user['roomlock']='<img src="'.$path.'/themes/funchat/images/unlocked.png" alt="Offen" />';
|
||||
$user['roomlock']='<img src="'.$config['fullpath'].'/themes/funchat/images/unlocked.png" alt="Offen" />';
|
||||
if($user['roomlocked']){
|
||||
$user['roomlock']='<img src="'.$path.'/themes/funchat/images/locked.png" alt="Abgeschlossen" />';
|
||||
$user['roomlock']='<img src="'.$config['fullpath'].'/themes/funchat/images/locked.png" alt="Abgeschlossen" />';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -193,7 +198,6 @@ class nickpage extends module{
|
|||
$this->tpl->assign('pagination',$pagination);
|
||||
$content=$this->tpl->fetch('nickpage_content.tpl');
|
||||
}
|
||||
$themedir = $this->getTemplateDir();
|
||||
$core->make_page($content,TRUE,$themedir.'/nickpage.tpl',NULL,NULL);
|
||||
}
|
||||
|
||||
|
@ -207,7 +211,14 @@ class nickpage extends module{
|
|||
}
|
||||
return $themedir;
|
||||
}
|
||||
|
||||
function output_entry(){
|
||||
if(!empty($_POST['submit'])){
|
||||
die("Post entry");
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function output_edit(){
|
||||
global $module,$tpl,$config,$db,$log,$core,$error, $session;
|
||||
If($_POST['submit']){
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<title>FunCh.at - Nickpage von {$user.sitetitle}</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</head>
|
||||
<body id="top-nickpage">
|
||||
<div class="wrapper col1">
|
||||
<div id="header">
|
||||
|
@ -21,13 +18,14 @@
|
|||
<br class="clear" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper col4">
|
||||
<div class="wrapper col4" style="border-bottom: none;">
|
||||
<div id="container">
|
||||
<div id="content" style="width:60vw;">
|
||||
<h3>Über {$user.username} <img src="images/{$user.gender}.png"></h3>
|
||||
<div style="float:left; width: 300px;">{$user.fid2}</div><img style="float:right;" src="/forum/{$user.np_picture}" alt="Ist das {$user.username}?">
|
||||
<br class="clear">
|
||||
<div id="comments">
|
||||
<hr>
|
||||
{if $gb!=""}
|
||||
{$pagination}
|
||||
<ul class="commentlist">
|
||||
|
@ -79,7 +77,9 @@
|
|||
{/if}
|
||||
<br class="clear">
|
||||
</div><!-- Row End-->
|
||||
<div class="wrapper col4">
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper col5" style="color:#FEAC49;">
|
||||
<div id="container">
|
||||
<div id="content">
|
||||
{if $loggedin==true}
|
||||
|
@ -95,11 +95,6 @@
|
|||
<br class="clear">
|
||||
</div>
|
||||
|
||||
<div class="wrapper col6">
|
||||
<div id="footer">
|
||||
<br class="clear">
|
||||
</div>
|
||||
</div>
|
||||
<!-- ####################################################################################################### -->
|
||||
<div class="wrapper col7">
|
||||
<p>Für den Inhalt ist ausschließlich der User selbst verantwortlich. Diese Nickpage ist Teil der <a href="//www.funch.at" target="_blank">FunCh.at Community</a>.</p>
|
||||
|
|
38
modules/nickpage/templates/funchat/nickpage_error.tpl
Normal file
38
modules/nickpage/templates/funchat/nickpage_error.tpl
Normal file
|
@ -0,0 +1,38 @@
|
|||
<title>FunCh.at - Nickpage von {$user.sitetitle}</title>
|
||||
</head>
|
||||
<body id="top-nickpage">
|
||||
<div class="wrapper col1">
|
||||
<div id="header">
|
||||
<div class="fl_left">
|
||||
<img src="{$themepath}/images/logo_small.png">
|
||||
</div>
|
||||
<!--<div class="fl_right"><a href="#"><img src="" alt="" /></a></div>-->
|
||||
<br class="clear">
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper col2">
|
||||
<div id="topbar">
|
||||
<div id="topnav">
|
||||
<h1 style="font-size:X-large">{$user.sitetitle}</h1>
|
||||
</div>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper col4" style="border-bottom: none;">
|
||||
<div id="container">
|
||||
<div style="background-color:#FEAC49; color:#F4535A; width:50%; padding:10px; margin:auto;">
|
||||
Diesen User scheint es nicht zu geben.
|
||||
</diV>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ####################################################################################################### -->
|
||||
<div class="wrapper col7">
|
||||
<p>Für den Inhalt ist ausschließlich der User selbst verantwortlich. Diese Nickpage ist Teil der <a href="//www.funch.at" target="_blank">FunCh.at Community</a>.</p>
|
||||
<div id="copyright">
|
||||
<p class="fl_left">© Copyright 2025 FunCh.at</p> <p class="fl_left">|</p> <p class="fl_left"><a href="/t/nutzungsbedingungen.html">Nutzungsbedingungen</a></p> <p class="fl_left">|</p> <p class="fl_left"><a href="/t/datenschutzerklaerung.html">Datenschutzerklärung</a></p>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue