• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Dynamic Support by Paxton dont works on widnet layout... How?

Only "Loading..."

Let me test it at tibiacom layout

....Works in tibiacom ¬¬

Whats in tibiacom layout that only works there? TT__TT
 
folder ajax
open players.php

use

LUA:
<?
if(isset($_POST['action'])){
$dbhost = 'localhost';
$dblogin = 'root';
$dbpass = 'password';
$dbname = 'database';
mysql_connect($dbhost, $dblogin, $dbpass);
mysql_select_db($dbname);
$sql = mysql_query("SELECT * FROM `players` WHERE `online` = '1'");
$amount = mysql_num_rows($sql);
echo $amount; }
else
echo "Error";
?>
 
Still dont works...

I think is something at tibiacom layout config.php file... i will try to find what it is.. :C
 
Layout.php
Find: (Line ~653)

PHP:
echo $config['status']['serverStatus_players'].'<br />Players Online';
you have?
PHP:
echo '<div id="players" style="display: inline;">Loading...</div><br>Players Online';

layout.php and on line ~14 add this line:
PHP:
<script type="text/javascript" src="<?PHP echo $layout_name; ?>/jquery.js"></script>

change your players.php
PHP:
<?php
# Dynamic status by Paxton.
# Version 2.0
#Downloaded from Otland.net
session_start();


if(isset($_POST['action'])) {

    #Host to your database
    $dbHost = "localhost";
    #Login to your database
    $dbLogin = "root";
    #Password to your database
    $dbPass = "kubus00";
    #Name of your database
    $dbName = "acc";
    #Minimum interval between updates with database
    $interval = 2;
    
    
    #There is no need of changing nothing below this line.
    #Don't change anything until you exactly know what you are doing.
    $now = time();
    if($now-$_SESSION['lastTime'] >= $interval) {
        $db = new MySQLi($dbHost, $dbLogin, $dbPass, $dbName);
        $sql = $db->query("SELECT count(1) FROM `players` WHERE `online` = '1'");
        $cmd = $sql->fetch_array();
        echo $cmd[0];
        $_SESSION['lastUpdate'] = $cmd[0];
        $_SESSION['lastTime'] = $now;
        $db->close();
    }
    else
        echo $_SESSION['lastUpdate'];
    

}
else
    echo "<i>Dynamic Status by Paxton | Version 2.0</i>";

?>
 
Look at what is happening is that the temp is for the pedestal online so it does not work put a photo of where is the status of onlines and if it is not a pedestal does not work

It is possible, but adding a pedestal in the web page. as well as put it on my server of onus would website
www.necroven.com/test
I Install a pedestal of dragon gif. in WoW Layout.

Unfortunately you will not do anything in this layout doesn't work
 
Last edited:
Back
Top