From b46c7941db55b0fd911e19b3a103f3f3eb5dd001 Mon Sep 17 00:00:00 2001 From: genuineparts Date: Wed, 4 Jun 2025 22:19:12 +0200 Subject: [PATCH] making nickpages work and more --- .htaccess | 23 +- modules/mybbnews/templates/default/news.tpl | 4 +- modules/nickpage/nickpage.output.php | 7 +- .../nickpage/templates/default/nickpage.tpl | 53 +-- .../templates/default/nickpage_content.tpl | 159 +++------ themes/austria/css/layout.css | 337 ++++++++++++------ themes/austria/footer.tpl | 103 ++++-- themes/austria/header.tpl | 3 +- 8 files changed, 360 insertions(+), 329 deletions(-) diff --git a/.htaccess b/.htaccess index af2affa..e35472c 100644 --- a/.htaccess +++ b/.htaccess @@ -13,6 +13,7 @@ RewriteBase / RewriteRule error/(.*)\.html$ index.php?task=error&sub=$1 +RewriteRule np/(.*) index.php?task=nickpage&user=$1 RewriteRule ^register/(.*)? register.php?regstring=$1 RewriteRule ^avatar/(.*)? index.php?task=rp&sum=avatar&id=$1 RewriteRule ^chat/reports/(.*)? index.php?task=chat&sub=report&uid=$1 @@ -26,27 +27,5 @@ RewriteRule logs.html index.php?task=chat&sub=logs [QSA,L] RewriteRule private.html index.php?task=chat&sub=privatelogs [QSA,L] RewriteRule ^guidelines.html$ /text/rules.html [R=301,L] RewriteRule ^(.*\.html?)$ index.php?task=text&url=$1 [L] -RewriteRule profile/(.*) index.php?task=rp&sub=show&name=$1 -RewriteCond %{HTTP_HOST} ^chat\.coppertopia\.net$ -RewriteRule ^in.html$ ?task=chat&sub=in [QSA,L] -RewriteCond %{HTTP_HOST} ^chat\.coppertopia\.net$ -RewriteRule ^$ ?task=chat [QSA,L] -RewriteCond %{HTTP_HOST} ^chat\.coppertopia\.net$ -RewriteRule ^online.html$ ?task=chat&sub=online [QSA,L] -RewriteCond %{HTTP_HOST} ^chat\.coppertopia\.net$ -RewriteRule ^style.css$ /modules/chat/style.css [QSA,L] -RewriteCond %{HTTP_HOST} ^chat\.coppertopia\.net$ -RewriteRule ^mobile.css$ /modules/chat/mobile.css [QSA,L] - -RewriteCond %{HTTP_HOST} ^logs\.coppertopia\.net$ -RewriteRule ^user/(.*)/key/(.*)$ ?task=chat&sub=privatelogs&user=$1&key=$2 [QSA,L] -RewriteCond %{HTTP_HOST} ^logs\.coppertopia\.net$ -RewriteRule ^id/(.*)$ ?task=chat&sub=privatelogs&id=$1 [QSA,L] -RewriteCond %{HTTP_HOST} ^logs\.coppertopia\.net$ -RewriteRule ^pdf/(.*)$ ?task=chat&sub=privatelogs&id=$1&out=pdf [QSA,L] -RewriteCond %{HTTP_HOST} ^logs\.coppertopia\.net$ -RewriteRule ^user/(.*)$ ?task=chat&sub=privatelogs&user=$1 [QSA,L] -RewriteCond %{HTTP_HOST} ^logs\.coppertopia\.net$ -RewriteRule ^$ ?task=chat&sub=logs [QSA,L] diff --git a/modules/mybbnews/templates/default/news.tpl b/modules/mybbnews/templates/default/news.tpl index d6bffa6..657ca03 100644 --- a/modules/mybbnews/templates/default/news.tpl +++ b/modules/mybbnews/templates/default/news.tpl @@ -16,7 +16,7 @@

{$n.text}

-

{$n.comments} Kommentar(e)

+

{$n.comments} Kommentar(e)

{foreachelse} -{/foreach} \ No newline at end of file +{/foreach} diff --git a/modules/nickpage/nickpage.output.php b/modules/nickpage/nickpage.output.php index 7b2f07d..e24a2f7 100644 --- a/modules/nickpage/nickpage.output.php +++ b/modules/nickpage/nickpage.output.php @@ -54,7 +54,7 @@ class nickpage extends module{ $user['sitetitle']='Nickpage von '.$user['username']; - $result=$db->query("SELECT * FROM `" . $this->mybb_conf["prefix"] . "users` WHERE `uid`='".$user['fuid']."' LIMIT 1"); + $result=$db->query("SELECT * FROM `" . $this->mybb_conf['prefix'] . "users` WHERE `uid`='".$user['fuid']."' LIMIT 1"); $forum=$db->fetch_array($result); $db->free_result($result); @@ -62,7 +62,7 @@ class nickpage extends module{ $chat=$db->fetch_array($result); $db->free_result($result); - $result=$db->query("SELECT count(`id`) as `count` FROM `" . $config["prefix"] . "npguestbook` WHERE `guid`='".$user['uid']."'"); + $result=$db->query("SELECT count(`id`) as `count` FROM `" . $config['prefix'] . "npguestbook` WHERE `guid`='".$user['uid']."'"); $gb_count=$db->fetch_array($result); $gb_pages=ceil($gb_count['count']/$count); $db->free_result($result); @@ -132,7 +132,7 @@ class nickpage extends module{ //$data=get_user_room($user['username']); if($data){ $user['room']=$data['r']; - $user['roomlock']=''.$data['s'].''; + $user['roomlock']=''.$data['s'].''; } //$forum['buddylist']; if($session->userdata['uid']!=""){ @@ -174,7 +174,6 @@ class nickpage extends module{ $db->free_result($result); } } - $tpl->assign('loggedin',$session->); $tpl->assign('friends',$friendl); $tpl->assign('user',$user); $tpl->assign('forum',$forum); diff --git a/modules/nickpage/templates/default/nickpage.tpl b/modules/nickpage/templates/default/nickpage.tpl index 6d7affa..4e7b5a0 100644 --- a/modules/nickpage/templates/default/nickpage.tpl +++ b/modules/nickpage/templates/default/nickpage.tpl @@ -1,39 +1,5 @@ - - - - - - - - - - {$user.sitetitle} - AustriaChat.net - Die Österreichische Chatcommunity - - - - - - - - - - - - - - - - - - - - +{$user.sitetitle} - FunCh.at - Die Österreichische Chatcommunity @@ -55,8 +21,8 @@

Über mich:

Alter: {$user.age}