Layout and other changes
|
@ -126,13 +126,13 @@ class chat extends ajax_module{
|
|||
}
|
||||
if($session->userdata['rp_admin']==1){
|
||||
$js="var menu = [
|
||||
{ name: \"kick\", action: function (element) { sendMsg(\"/k \"+$(element).attr('id')); } },
|
||||
{ name: \"jail\", action: function (element) { sendMsg(\"/jail \"+$(element).attr('id')); } },
|
||||
{ name: \"kick\", action: function (element) { window.socket.send(\"/k \"+$(element).attr('id')); } },
|
||||
{ name: \"jail\", action: function (element) { window.socket.send(\"/jail \"+$(element).attr('id')); } },
|
||||
{ name: \"gag\", action: function (element) { socket.send(\"/gag \"+$(element).attr('id')); } },
|
||||
{ name: \"toggle private\", action: function (element) { sendMsg(\"/tpc \"+$(element).attr('id')); } },
|
||||
{ name: \"ignore\", action: function (element) { sendMsg(\"/ig \"+$(element).attr('id')); } },
|
||||
{ name: \"invite\", action: function (element) { sendMsg(\"/i \"+$(element).attr('id')); } },
|
||||
{ name: \"catch\", action: function (element) { sendMsg(\"/c \"+$(element).attr('id')); } },
|
||||
{ name: \"toggle private\", action: function (element) { window.socket.send(\"/tpc \"+$(element).attr('id')); } },
|
||||
{ name: \"ignore\", action: function (element) { window.socket.send(\"/ig \"+$(element).attr('id')); } },
|
||||
{ name: \"invite\", action: function (element) { window.socket.send(\"/i \"+$(element).attr('id')); } },
|
||||
{ name: \"catch\", action: function (element) { window.socket.send(\"/c \"+$(element).attr('id')); } },
|
||||
{ name: \"whisperwindow\", action: function (element) { if ($('#'+$(element).attr('id')+'_whisper').length > 0){
|
||||
$('#'+$(element).attr('id')+'_whisper').dialog('open');
|
||||
$('#'+$(element).attr('id')+'_whisper').dialog('moveToTop');
|
||||
|
@ -140,12 +140,12 @@ class chat extends ajax_module{
|
|||
create_whisper($(element).attr('id'),\"\");
|
||||
} } },
|
||||
{ name: \"report\", action: function (element) { reportwindow($(element).attr('id')); } },
|
||||
{ name: \"reports\", action: function (element) { sendMsg(\"/rel \"+$(element).attr('id')); } }
|
||||
{ name: \"reports\", action: function (element) { window.socket.send(\"/rel \"+$(element).attr('id')); } }
|
||||
];";
|
||||
}else{
|
||||
$js="var menu = [
|
||||
{ name: \"ignore\", action: function (element) { sendMsg(\"/ig \"+$(element).attr('id')); } },
|
||||
{ name: \"invite\", action: function (element) { sendMsg(\"/i \"+$(element).attr('id')); } },
|
||||
{ name: \"ignore\", action: function (element) { window.socket.send(\"/ig \"+$(element).attr('id')); } },
|
||||
{ name: \"invite\", action: function (element) { window.socket.send(\"/i \"+$(element).attr('id')); } },
|
||||
{ name: \"report\", action: function (element) { reportwindow($(element).attr('id')); } }
|
||||
];";
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class chat extends module{
|
|||
if($db->num_rows($result)<=0){
|
||||
$core->message('Sorry', 'You have to create a <a href="/create_char.html">Char</a> to participate.',FALSE,$config['path'].'/index.php');
|
||||
}*/
|
||||
$rooms=array(array('room'=>'Lounge','selected'=>'selected="selected"'),array('room'=>'Flirt','selected'=>''));
|
||||
$rooms=array(array('room'=>'Lounge','selected'=>'selected="selected"'),array('room'=>'Flirt','selected'=>''),array('room'=>'Quiz','selected'=>''));
|
||||
$this->tpl->assign('options',$rooms);
|
||||
if($session->userdata['allow_grimdark']==0){
|
||||
$this->tpl->assign('usercount',$data['usercount']);
|
||||
|
|
|
@ -12,7 +12,7 @@ No users.
|
|||
<strong><a>{$key}</a></strong> <img src="/themes/austria/images/locked.png" style="border:none;" /><br />
|
||||
{/if}
|
||||
{foreach from=$user.u item=i}
|
||||
<a id="{$i.n}" class="notice"><img src="/themes/austria/images/{$i.i}" style="border:none;" /></a>{$i.l}<a href="/np/{$i.n}" target="_blank" style="color:#{$i.c}; margin-left: 8px;">{$i.n}</a></span> <img src="/themes/austria/images/{$i.g}.png" style="border:none;" /><br />
|
||||
<a id="{$i.n}" class="notice"><img src="/themes/austria/images/{$i.i}" style="border:none;" /></a>{$i.l}<a href="/np/{$i.n}" target="_blank" style="color:#{$i.c}; margin-left: 8px;">{$i.n}</a></span> <img src="/themes/archer/images/{$i.g}.png" style="border:none;" /><br />
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
@ -22,4 +22,4 @@ No users.
|
|||
{$js}
|
||||
$(".notice").rightClickMenu(menu);
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
|
@ -6,7 +6,7 @@ Raum: <select name="room">
|
|||
<option value="{if $option.value==''}{$option.room}{else}{$option.value}{/if}" {$option.selected}>{$option.room}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<a href="//austriachat.net/chat/online.html" target="_blank">Es {$befinden} {$usercount} User im Chat.</a>
|
||||
<a href="//funch.at/chat/online.html" target="_blank">Es {$befinden} {$usercount} User im Chat.</a>
|
||||
<br /><br />
|
||||
<input type="submit" value="Eintreten" /><br />
|
||||
<br /><br />
|
||||
|
@ -20,3 +20,4 @@ Raum: <select name="room">
|
|||
Sorry, niemand online:-(
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,48 +1,72 @@
|
|||
<div class="pmnotice"></div>
|
||||
<footer>
|
||||
<footer class="s-footer">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="twelve columns">
|
||||
<ul class="social-links">
|
||||
<li><a href="https://twitter.com/austriachatnet"><i class="fa fa-twitter"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="six columns info">
|
||||
{if $user.is_admin==1}
|
||||
<div class="row s-footer__top">
|
||||
<div class="column">
|
||||
{if $user.is_admin==1}
|
||||
mySQL Queries: {$queries} | Memory usage: {$memory}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<h3 class="social">Navigation</h3>
|
||||
{/if}
|
||||
</div>
|
||||
</div> <!-- end footer__top -->
|
||||
|
||||
<ul class="navigate group">
|
||||
<li><a href="/index.php">Home</a></li>
|
||||
<li><a href="/impressum.html">Impressum</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row s-footer__bottom">
|
||||
|
||||
<p class="copyright">© Copyright 2017 AustriaChat.net. Design by <a title="Styleshout" href="http://www.styleshout.com/">Styleshout</a>.</p>
|
||||
|
||||
</div> <!-- End row -->
|
||||
<div class="large-6 tab-full column s-footer__info">
|
||||
</div>
|
||||
|
||||
<div id="go-top"><a class="smoothscroll" title="Back to Top" href="#top"><i class="fa fa-chevron-up"></i></a></div>
|
||||
<div class="large-6 tab-full column">
|
||||
<div class="row">
|
||||
<!--<div class="large-8 tab-full column">
|
||||
|
||||
</footer> <!-- End Footer-->
|
||||
{literal}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
<h3 class="h6">Photostream</h3>
|
||||
|
||||
ga('create', 'UA-96528626-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
<ul class="photostream group">
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
<li><a href="#0"><img alt="thumbnail" src="images/thumb.jpg"></a></li>
|
||||
</ul>
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
<script src="/js/odo/odometer.min.js"></script>
|
||||
</div>-->
|
||||
|
||||
<div class="large-4 tab-full column">
|
||||
<h3 class="h6">Navigation</h3>
|
||||
|
||||
<ul class="s-footer__list s-footer-list--nav group">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/nutzungsbedingungen.html">Nutzungsbedingungen</a></li>
|
||||
<li><a href="/datenschutzerklaerung.html">Datenschutzerklärung</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ss-copyright">
|
||||
<span>© Copyright 2025 FunCh.at.</span>
|
||||
<span>Design by <a href="https://www.styleshout.com/">StyleShout</a></span>
|
||||
</div>
|
||||
|
||||
</div> <!-- end footer__bottom -->
|
||||
|
||||
|
||||
<div class="ss-go-top">
|
||||
<a class="smoothscroll" title="Back to Top" href="#top">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0l8 9h-6v15h-4v-15h-6z"/></svg>
|
||||
</a>
|
||||
</div> <!-- end ss-go-top -->
|
||||
|
||||
</footer> <!-- end Footer-->
|
||||
|
||||
|
||||
<!-- Java Script
|
||||
================================================== -->
|
||||
<script src="{$themepath}/js/main.js"></script>
|
||||
<script src="/js/odo/odometer.min.js"></script>
|
||||
{$footer}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
{$header}
|
||||
<div id="content-wrap">
|
||||
|
||||
<div id="content-wrap-chat">
|
||||
<div class="chatrow">
|
||||
|
||||
<div id="main" class="nine columns">
|
||||
<div id="chat" style="height:100%;">
|
||||
<div class="topbar"><a id="notchan">Ding</a> | <a href="//funch.at/forum/help-8.html" target="_blank" onclick="return popup('//funch.at/forum/help-8.html','width=800, height=800, resizeable,scrollbars=yes');">Hilfe</a> | <a href="//funch.at/forum/misc.php?action=smilies&popup=true" target="_blank" onclick="return popup('//funch.at/forum/misc.php?action=smilies&popup=true','width=600, height=600, resizeable,scrollbars=yes');">Smilies</a> | <a id="notsw">Benachrichtigung: An</a> | <a id="scrolling">Scrolling: An</a> | <a id="whwindow">{$whtext}</a> | <a id="submit">{$submit}</a> | <a id="logout">Logout</a></div>
|
||||
|
||||
<div id="chatlog" style="z-index:1; height:600px; position:relative;"></div>
|
||||
<textarea id="text" autocomplete="off" spellcheck="true" style="z-index:2; float: right; position: relative; background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #000000; width: 92%; height:20px; color: #{$col};" ></textarea>
|
||||
</div>
|
||||
<div id="main" class="ten columns" style="height:100%;">
|
||||
<div id="chat" style="height:80vh;">
|
||||
<div class="topbar"><a id="notchan">Ding</a> | <a href="//funch.at/forum/help-8.html" target="_blank" onclick="return popup('//funch.at/forum/help-8.html','width=800, height=800, resizeable,scrollbars=yes');">Hilfe</a> | <a href="//funch.at/forum/misc.php?action=smilies&popup=true" target="_blank" onclick="return popup('//funch.at/forum/misc.php?action=smilies&popup=true','width=600, height=600, resizeable,scrollbars=yes');">Smilies</a> | <a id="notsw">Benachrichtigung: An</a> | <a id="scrolling">Scrolling: An</a> | <a id="whwindow">{$whtext}</a> | <a id="submit">{$submit}</a> | <a id="logout">Logout</a></div>
|
||||
<div id="chatlog" style="z-index:1; position:relative;"></div>
|
||||
<textarea id="text" autocomplete="off" spellcheck="true" style="z-index:2; float: right; position: relative; background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #000000; width: 100%; max-width: 870px; height:20px; color: #{$col};" ></textarea>
|
||||
</div>
|
||||
</div> <!-- end main -->
|
||||
<div id="sidebar" class="three columns">
|
||||
<div class="userlist">
|
||||
|
@ -18,7 +15,6 @@
|
|||
</div>
|
||||
{$rightnav}
|
||||
</div> <!-- end sidebar -->
|
||||
|
||||
</div> <!-- end row -->
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
@ -28,8 +24,8 @@
|
|||
size: '10px',
|
||||
width: '95%',
|
||||
wheelStep: 10,
|
||||
height: '580px',
|
||||
start: 'bottom'
|
||||
height: '90%',
|
||||
start: 'bottom'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,74 +1,91 @@
|
|||
<!DOCTYPE html>
|
||||
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]-->
|
||||
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]-->
|
||||
<!--[if IE 9 ]><html class="no-js ie ie9" lang="en"> <![endif]-->
|
||||
<!--[if (gte IE 8)|!(IE)]><!--><html class="no-js" lang="de"> <!--<![endif]-->
|
||||
<head>
|
||||
|
||||
<!--- Basic Page Needs
|
||||
================================================== -->
|
||||
<meta charset="utf-8">
|
||||
<title>Funch.at - Die Österreichische Chatcommunity</title>
|
||||
<meta name="keywords" content="oe3 Ö3 chat sms.at uboot.com chatcommunity webchat austria oesterreich forum" />
|
||||
<meta name="author" content="Funch.at" />
|
||||
<meta content="FunCh.at - Die Österreichische Chatcommunity" property="og:title" />
|
||||
<meta name="keywords" content="oe3 Ö3 chat sms.at uboot.com chatcommunity webchat austria oesterreich forum" />
|
||||
<meta name="author" content="FunCh.at" />
|
||||
<meta name="description" content="Die kostenlose und werbefreie Österreichische Chatcommunity. Endlich wieder Chatten wie im Uboot, sms.at, Orf Chat, usw. Wir sehen uns!" />
|
||||
<link href="https://funch.at/chat" rel="Chat"/>
|
||||
<link href="https://funch.at/forum" rel="Forum"/>
|
||||
{$meta}
|
||||
<!-- mobile specific metas
|
||||
================================================== -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
|
||||
<!-- CSS
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="de">
|
||||
<head>
|
||||
<!--- basic page needs
|
||||
================================================== -->
|
||||
<link rel="stylesheet" href="{$themepath}/css/default.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/layout.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/media-queries.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/font-awesome/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" href="/js/odo/odometer-theme-minmal.css" />
|
||||
<!-- Script
|
||||
<meta charset="utf-8" />
|
||||
<title>Funch.at - Die Österreichische Chatcommunity</title>
|
||||
<meta
|
||||
content="Funch.at - Die Österreichische Chatcommunity"
|
||||
property="og:title"
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="oe3 Ö3 chat sms.at uboot.com chatcommunity webchat austria oesterreich forum"
|
||||
/>
|
||||
<meta name="author" content="Funch.at" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Die kostenlose und werbefreie Österreichische Chatcommunity. Endlich wieder Chatten wie im Uboot, sms.at, Orf Chat, usw. Wir sehen uns!"
|
||||
/>
|
||||
{$meta}
|
||||
<link href="https://funch.at/chat" rel="Chat" />
|
||||
<link href="https://funch.at/forum" rel="Forum" />
|
||||
<!-- mobile specific metas
|
||||
================================================== -->
|
||||
<script src="js/modernizr.js"></script>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1"
|
||||
/>
|
||||
|
||||
<!-- Favicons
|
||||
<!-- CSS
|
||||
================================================== -->
|
||||
<link rel="stylesheet" href="{$themepath}/css/default.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/layout.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/media-queries.css" />
|
||||
<link rel="stylesheet" href="/js/odo/odometer-theme-minmal.css" />
|
||||
|
||||
<!-- Script
|
||||
================================================== -->
|
||||
<script src="{$themepath}/js/modernizr.js"></script>
|
||||
<script defer src="{$themepath}/js/fontawesome/all.min.js"></script>
|
||||
|
||||
<!-- Favicons
|
||||
================================================== -->
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="192x192"
|
||||
href="/android-icon-192x192.png"
|
||||
/>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
</head>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Header
|
||||
<body>
|
||||
<!-- Header
|
||||
================================================== -->
|
||||
<header id="chattop">
|
||||
<nav id="nav-wrap">
|
||||
<header id="chattop">
|
||||
<nav id="nav-wrap">
|
||||
<a class="mobile-btn" href="#nav-wrap" title="Navigation zeigen"
|
||||
>Zeige Menü</a
|
||||
>
|
||||
<a class="mobile-btn" href="#" title="Navigation verstecken"
|
||||
>Verstecke Menü</a
|
||||
>
|
||||
|
||||
<a class="mobile-btn" href="#nav-wrap" title="Navigation zeigen">Zeige Menü</a>
|
||||
<a class="mobile-btn" href="#" title="Navigation verstecken">Verstecke Menü</a>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<ul id="nav" class="nav">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li class="current"><a href="/chat">Chat<span class="odometer">{$users}</span></a></li>
|
||||
<li class="has-children"><a href="/forum">Forum</a>
|
||||
<ul>
|
||||
{foreach from=$forum item=f}
|
||||
<li><a href="{$f.link}">{$f.name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="archives.html">Archives</a></li>
|
||||
</ul> <!-- end #nav -->
|
||||
|
||||
</div>
|
||||
|
||||
</nav> <!-- end #nav-wrap -->
|
||||
|
||||
</header> <!-- Header End -->
|
||||
<div class="row">
|
||||
<ul id="nav" class="nav">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li class="current">
|
||||
<a href="/chat">Chat<span class="odometer">{$users}</span></a>
|
||||
</li>
|
||||
<li class="has-children">
|
||||
<a href="/forum">Forum</a>
|
||||
<ul>
|
||||
{foreach from=$forum item=f}
|
||||
<li><a href="{$f.link}">{$f.name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="archives.html">Archives</a></li>
|
||||
</ul>
|
||||
<!-- end #nav -->
|
||||
</div>
|
||||
</nav>
|
||||
<!-- end #nav-wrap -->
|
||||
</header>
|
||||
<!-- Header End -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -11,23 +11,21 @@ class plugins_chatusers{
|
|||
function chatuser_refresh(){
|
||||
global $db, $config, $footer;
|
||||
$footer .= "<script type=\"text/javascript\">
|
||||
<!--
|
||||
function chatusers()
|
||||
{
|
||||
$.ajax({
|
||||
url: \"/ajax.php?task=chatusers\",
|
||||
timeout: 1000,
|
||||
success: function(data) {
|
||||
$('.odometer').html(data);
|
||||
$('.odometer-inside').html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
chatusers();
|
||||
setInterval(\"chatusers()\",60000);
|
||||
// -->
|
||||
</script>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -7,7 +7,7 @@ class module_mybbnews extends admin_module{
|
|||
$info["file"]="mybbnews";
|
||||
$info["author"]="genuineparts";
|
||||
$info["version"]="1.0.0";
|
||||
$info["url"]="http://www.austriachat.net";
|
||||
$info["url"]="http://www.becast.ar";
|
||||
return $info;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,22 +1,26 @@
|
|||
<h2>News</h2>
|
||||
{foreach from=$news item=n}
|
||||
<article class="entry">
|
||||
<header class="entry-header">
|
||||
<h2 class="entry-title">
|
||||
{$n.title}
|
||||
</h2>
|
||||
<div class="entry-meta">
|
||||
<ul>
|
||||
<li>{$n.date}</li>
|
||||
<span class="meta-sep">•</span>
|
||||
<li><a href="/np/{$n.username}">{$n.username}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<p>{$n.text}</p>
|
||||
</div>
|
||||
<p><small><a href="/forum/thread-{$n.tid}.html">{$n.comments} Kommentar(e)</a></small></p>
|
||||
</article> <!-- end entry -->
|
||||
{foreachelse}
|
||||
{/foreach}
|
||||
<article class="entry">
|
||||
<header class="entry-header">
|
||||
<h2 class="entry-title">{$n.title}</h2>
|
||||
<div class="entry-meta">
|
||||
<ul>
|
||||
<li>{$n.date}</li>
|
||||
<span class="meta-sep">•</span>
|
||||
<li><a href="/np/{$n.username}">{$n.username}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<p>{$n.text}</p>
|
||||
</div>
|
||||
<p>
|
||||
<small
|
||||
><a href="/forum/thread-{$n.tid}.html"
|
||||
>{$n.comments} Kommentar(e)</a
|
||||
></small
|
||||
>
|
||||
</p>
|
||||
</article>
|
||||
<!-- end entry -->
|
||||
{foreachelse} {/foreach}
|
||||
|
|
Before Width: | Height: | Size: 44 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 1.5 KiB |
|
@ -28,14 +28,18 @@ If (!defined("in_astat")) {
|
|||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
}
|
||||
$session->page_begin("Nickpage", FALSE);
|
||||
use Smarty\Smarty;
|
||||
|
||||
class nickpage extends module{
|
||||
var $mybb_conf,$session;
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$this->mybb_conf = $this->fetchboardconfig();
|
||||
}
|
||||
|
||||
function output(){
|
||||
global $module,$tpl,$config,$db,$log,$core,$error, $session;
|
||||
global $module,$config,$db,$log,$core,$error, $session;
|
||||
|
||||
$count=20;
|
||||
|
||||
|
@ -49,12 +53,13 @@ class nickpage extends module{
|
|||
$user['sitetitle']='Nickpage nicht gefunden';
|
||||
}else{
|
||||
$parser=new textparser();
|
||||
|
||||
$loggedin = false;
|
||||
$db->free_result($result);
|
||||
|
||||
$user['sitetitle']='Nickpage von '.$user['username'];
|
||||
|
||||
$result=$db->query("SELECT * FROM `" . $this->mybb_conf['prefix'] . "users` WHERE `uid`='".$user['fuid']."' LIMIT 1");
|
||||
if($session->userdata['uid']!=0){
|
||||
$loggedin = true;
|
||||
}
|
||||
$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 +67,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);
|
||||
|
@ -76,8 +81,8 @@ class nickpage extends module{
|
|||
}else{
|
||||
$user['age'] = 'unbekannt';
|
||||
}
|
||||
|
||||
if(!$_GET['page'] || $_GET['page']=="first"){
|
||||
$page = 0;
|
||||
if(!isset($_GET['page']) || $_GET['page']=="first"){
|
||||
$start=0;
|
||||
}elseif($_GET['page']=="last"){
|
||||
$page=$gb_pages-1;
|
||||
|
@ -118,10 +123,10 @@ class nickpage extends module{
|
|||
$user['chattime']=$this->intervall($chat['chattime']);
|
||||
$user['reviewnum']=$reviews['count'];
|
||||
switch($chat['rights']){
|
||||
case(3):
|
||||
case(99):
|
||||
$user['chatright']='Chatadmin';
|
||||
break;
|
||||
case(2):
|
||||
case(50):
|
||||
$user['chatright']='Chat-VIP';
|
||||
break;
|
||||
}
|
||||
|
@ -136,6 +141,7 @@ class nickpage extends module{
|
|||
}
|
||||
//$forum['buddylist'];
|
||||
if($session->userdata['uid']!=""){
|
||||
|
||||
$result=$db->query("SELECT `buddylist` FROM `" . $this->mybb_conf["prefix"] . "users` WHERE `uid`='".$session->userdata['fuid']."' LIMIT 1");
|
||||
$friends=$db->fetch_array($result);
|
||||
$db->free_result($result);
|
||||
|
@ -174,16 +180,17 @@ class nickpage extends module{
|
|||
$db->free_result($result);
|
||||
}
|
||||
}
|
||||
$tpl->assign('friends',$friendl);
|
||||
$tpl->assign('user',$user);
|
||||
$tpl->assign('forum',$forum);
|
||||
$tpl->assign('domain',$config['domain']);
|
||||
$tpl->assign('gb',$gb);
|
||||
$tpl->assign('pagination',$pagination);
|
||||
//$content=$this->tpl->fetch('nickpage_content.tpl');
|
||||
|
||||
$this->tpl->assign('friends',$friendl);
|
||||
$this->tpl->assign('user',$user);
|
||||
$this->tpl->assign('forum',$forum);
|
||||
$this->tpl->assign('loggedin',$loggedin);
|
||||
$this->tpl->assign('domain',$config['domain']);
|
||||
$this->tpl->assign('gb',$gb);
|
||||
$this->tpl->assign('pagination',$pagination);
|
||||
$content=$this->tpl->fetch('nickpage.tpl');
|
||||
}
|
||||
$tpl->assign('user',$user);
|
||||
$core->make_page($content,TRUE,$config['fullpath'].'/modules/nickpage/templates/default/nickpage.tpl',NULL,NULL);
|
||||
$core->make_page($content,TRUE,$config['fullpath'].'/modules/nickpage/templates/default/nickpage_content.tpl',NULL,NULL);
|
||||
}
|
||||
|
||||
function output_edit(){
|
||||
|
|
|
@ -13,13 +13,15 @@
|
|||
<div id="content-wrap">
|
||||
<div class="row add-bottom">
|
||||
<div class="six columns add-bottom">
|
||||
<h3>Über {$user.username}</h3>
|
||||
<h3>Über {$user.username} <img src="images/{$user.gender}.png" style="float: right;"></h3>
|
||||
<p><img class="pull-left" src="/forum/{$user.np_picture}" alt="Ist das {$user.username}?">
|
||||
{$user.fid2}</p><div id="gender"><img src="/npimages/{$user.gender}.png" /></div>
|
||||
{$user.fid2}</p>
|
||||
</div>
|
||||
<div class="six columns add-bottom">
|
||||
<h3>Über mich:</h3>
|
||||
{if $user.birthdayprivacy != none}
|
||||
<p>Alter: {$user.age}<br />
|
||||
{/if}
|
||||
<ul>
|
||||
<li><a href="//{$domain}/forum/private.php?action=send&uid={$user.fuid}">PN an {$user.username}</a></li>
|
||||
<li>Forenposts: <a href="//{$domain}/forum/search.php?action=finduser&uid={$user.fuid}">{$forum.postnum}</a></li>
|
||||
|
@ -48,9 +50,10 @@
|
|||
</div>
|
||||
</div> <!-- Row End-->
|
||||
{/if}
|
||||
<hr>
|
||||
|
||||
<div class="row section-head">
|
||||
{if $gb!=""}
|
||||
<hr>
|
||||
{$pagination}
|
||||
{foreach from=$gb item=g}
|
||||
<div class="twelve columns">
|
||||
|
@ -73,13 +76,22 @@
|
|||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
{else}
|
||||
<hr>
|
||||
<div class="twelve columns">
|
||||
<p>Keine Einträge. Schreib doch einfach einen. ;-)</p>
|
||||
</div>
|
||||
<hr>
|
||||
{/if}
|
||||
{if $loggedin==true}
|
||||
<h3>Gästebucheintrag schreiben:</h3>
|
||||
<form action="/np/{$user.username}/gbentry" method="post">
|
||||
<textarea name="gbeintrag" id="gb"></textarea>
|
||||
<input type="hidden" name="user" value="{$g.username}" />
|
||||
<input type="submit" class="button" name="submit" value="Absenden">
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
|
|
@ -38,7 +38,11 @@
|
|||
================================================== -->
|
||||
<script src="{$themepath}/js/modernizr.js"></script>
|
||||
<script defer src="{$themepath}/js/fontawesome/all.min.js"></script>
|
||||
<!--<script src="{$themepath}/js/jquery-3.2.1.min.js"></script>-->
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="{$themepath}/js/wysibb/jquery.wysibb.min.js"></script>
|
||||
<link rel="stylesheet" href="{$themepath}/js/wysibb/theme/default/wbbtheme.css" />
|
||||
<!-- Favicons
|
||||
================================================== -->
|
||||
<link rel="shortcut icon" href="favicon.png" />
|
||||
|
@ -46,10 +50,17 @@
|
|||
|
||||
<!-- Java Script
|
||||
================================================== -->
|
||||
<script src="{$themepath}/js/jquery-3.2.1.min.js"></script>
|
||||
|
||||
<script src="{$themepath}/js/main.js"></script>
|
||||
<script src="/js/odo/odometer.min.js"></script>
|
||||
{$footer}
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var wbbOpt = {
|
||||
buttons: "bold,italic,underline,strike,sup,sub,|,img,link,|,code,quote"
|
||||
}
|
||||
$("#gb").wysibb(wbbOpt);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -28,6 +28,7 @@ class module_text extends admin_module{
|
|||
`menue` int(11) NOT NULL default '0',
|
||||
`title` varchar(80) NOT NULL default '',
|
||||
`url` varchar(120) NOT NULL,
|
||||
`rightnavi` enum('false','true') NOT NULL,
|
||||
`active` enum('true','false') NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `author` (`author`),
|
||||
|
|