Heyho im ai CMS ist der Counter etwas verbugt, sobald er sich reloaded erscheint in den feld folgendes Klick Hier sind ma die Code dateien von usercounter im ajax ordner und die header datei
Ajax datei:
PHP
<?php
/* mCMS
* A first CMS by Micki
* -------------------------
* Copyright (C) by Micki
* Copyright reserved!
*/
require ('../base.inc.php');
?>
<?php echo $core->serverStatus('users_online'); ?>
Alles anzeigen
Header:
HTML
<!DOCTYPE html>
<html>
<head>
<title>{name} :: {SEITE}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<body oncontextmenu="return false">
<link type="text/css" rel="stylesheet" href="{themeurl}dbox/rem/grid.css">
<script src="/lib/standard/img/jquery.js"></script>
<link rel="stylesheet" href="{themeurl}dbox/rem/hover.css" type="text/css" />
<link rel="stylesheet" href="{themeurl}dbox/rem/animate.css" type="text/css" />
<script src="{themeurl}js/jquery.min.js"></script>
<script src="{themeurl}js/mask/jquery.inputmask.js" type="text/javascript"></script>
<script src="{themeurl}js/lightbox.min.js"></script>
<link href="{themeurl}dbox/rem/lightbox.css" rel="stylesheet" />
<script type="text/javascript" src="{themeurl}js/stafflist.js"></script>
<link rel="icon" href="/favicon.ico"/>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link type="text/css" rel="stylesheet" href="{themeurl}dbox/rem/b29e71b33c3c5b6ac85a204d795e64f3.css">
<script type="text/javascript">
window.onload = function(){
var auto_refresh = setInterval(
function ()
{
$('#useronline').html('');
$('#useronline').load('/inc/ajax.useronline.php').fadeIn("slow");
}, 60000);
}
</script>
</script>
<!- IF NEWS == 1 ->
<script src="{themeurl}js/jquery.slides.min.js"></script>
<script>
$(function() {
$('#slides').slidesjs({
width: 940,
height: 528,
navigation: {
effect: "fade"
},
pagination: {
effect: "fade"
},
effect: {
fade: {
speed: 500
}
},
play: {
interval: 3000,
auto: true,
effect: "fade",
pauseOnHover: false,
}
});
});
</script>
<!- ENDIF ->
<header id="header_top">
<div class="container_12">
<div class="grid_4">
<a href="/me"><div class="logo"></div></a></div>
<div id="onlinecounter">Es sind <font id="useronline"><b>{ONLINE}</b></font> {name}s online!</div>
</div>
</div>
<div class="grid_4">
</div>
<div class="grid_4">
<div class="section" style="float: right;margin-right: -50px;margin-left: 115px;">
<a href="/client" target="_blank" style="text-decoration:none;color:#fff;"><div class="checkin" style="margin-top: 135px;">Einchecken</div></a>
</div>
</div>
</div>
</header>
Alles anzeigen