• 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!

Linux [TFS 1.0] Geisor not showing players online

Xivin

New Member
Joined
Mar 19, 2008
Messages
277
Reaction score
1
on my website it shows players online is 0 no matter how many people are online it was showing offline but i changed this line in layout.php
Code:
if($config['status']['serverStatus_online'] == 1)
to
Code:
if($config['status']['serverStatus_online'] == 0)
it says server is online but it can not calculate how many players are actually online thanks!
 
this is the bug
Okay, can you post me your layout.php?

Or make this change on yours and let me know if it works:
PHP:
         <?PHP
            if($config['status']['serverStatus_online'] == 0)
                echo ''.$number_of_players_online.'<br />Players Online';
            else
                echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
          ?>

You can find it below this line:
PHP:
<div id="PlayersOnline" onClick="window.location='?subtopic=whoisonline'">
 
Okay, can you post me your layout.php?

Or make this change on yours and let me know if it works:
PHP:
         <?PHP
            if($config['status']['serverStatus_online'] == 0)
                echo ''.$number_of_players_online.'<br />Players Online';
            else
                echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
          ?>

You can find it below this line:
PHP:
<div id="PlayersOnline" onClick="window.location='?subtopic=whoisonline'">

that fixed it bro thanks alot man. also would you have any idea why when i create a account with more than 10 characters i cant login from the account manager on the site also when player makes a donation they do not recieve points any ideas? i have checked all over forums not to much info on the new geisor. thanks man
 
Which donation system are you using? PayGol or PayPal?

Whichever one it is make sure that your database information is written correctly on the paygol/paypal script.
 
paypal

here is only paypal script i have says nothing about database info
Code:
<?php
$paypal_report_url = 'http://anderion.net/paypal_report.php';
$paypal_return_url = 'http://anderion.net/?subtopic=shopsystem';
$paypal_image = 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif';
$paypal_payment_type = '_xclick'; // '_xclick' (Buy Now) or '_donations'

$paypals[1]['mail'] = 'Xivins Email'; // your paypal login
$paypals[1]['name'] = '15 premium points on Xivin Serv for $5.00 USD';
$paypals[1]['money_amount'] = '5.00';
$paypals[1]['money_currency'] = 'USD'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[1]['premium_points'] = 15;
 
Which donation system are you using? PayGol or PayPal?

Whichever one it is make sure that your database information is written correctly on the paygol/paypal script.

here is only paypal script i have says nothing about database info

Code:
<?php
$paypal_report_url = 'http://anderion.net/paypal_report.php';
$paypal_return_url = 'http://anderion.net/?subtopic=shopsystem';
$paypal_image = 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif';
$paypal_payment_type = '_xclick'; // '_xclick' (Buy Now) or '_donations'

$paypals[1]['mail'] = 'Xivins Email'; // your paypal login
$paypals[1]['name'] = '15 premium points on Xivin Serv for $5.00 USD';
$paypals[1]['money_amount'] = '5.00';
$paypals[1]['money_currency'] = 'USD'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[1]['premium_points'] = 15;

double post sorry..
 
here is only paypal script i have says nothing about database info

Code:
<?php
$paypal_report_url = 'http://anderion.net/paypal_report.php';
$paypal_return_url = 'http://anderion.net/?subtopic=shopsystem';
$paypal_image = 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif';
$paypal_payment_type = '_xclick'; // '_xclick' (Buy Now) or '_donations'

$paypals[1]['mail'] = 'Xivins Email'; // your paypal login
$paypals[1]['name'] = '15 premium points on Xivin Serv for $5.00 USD';
$paypals[1]['money_amount'] = '5.00';
$paypals[1]['money_currency'] = 'USD'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[1]['premium_points'] = 15;

double post sorry..

PHP:
$paypal_report_url = 'http://anderion.net/paypal_report.php';
$paypal_return_url = 'http://anderion.net/?subtopic=shopsystem';

Here you must replace those URLs with the urls of your own website
 
PHP:
$paypal_report_url = 'http://anderion.net/paypal_report.php';
$paypal_return_url = 'http://anderion.net/?subtopic=shopsystem';

Here you must replace those URLs with the urls of your own website

i will check it, so theres nothing i need to enter into any files about access to database to add the points?
 
alright cool thanks i appreciate all of your help

if you ever figure out what would cause issue with account names over 10 characters remember this thread :D

Not sure where the issue is with account names longer than 10 but you can edit ajax_check_account.php so players can not make account names with more than 10 characters:

PHP:
<?php
if(!defined('INITIALIZED'))
    exit;

echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>';
$account = strtoupper(trim($_REQUEST['account']));
if(empty($account))
{
    echo '<font color="red">Please enter an account number.</font>';
    exit;
}
if(strlen($account) < 10)
{
    if(!check_account_name($account))
    {
        echo '<font color="red">Invalid account name format. Use only A-Z and numbers 0-9.</font>';
        exit;
    }
    $account_db = new Account();
    $account_db->find($account);
    if($account_db->isLoaded())
        echo '<font color="red">Account with this name already exist.</font>';
    else
        echo '<font color="green">Good account name ( '.htmlspecialchars($account).' ). You can create account.</font>';
}
else
    echo '<font color="red">Account name is too long (max. 9 chars).</font>';
exit;

 
I am having a issue also adding Item_type = Container to the geisor shop how do you add which items are inside the backpack etc i went by this but can't seem to get it to work

Code:
When you add new CONTAINER offer you must set in offer table in database:
id - empty (auto_increment)
points - how many points cost this offer
itemid1 - ID of created items in container
count1 - "count"/"type" of items in container, like SD with 15 shots has count "15", normal item (bag, crossbow, golden armor...) has count "1", count 3 will not create 3 golden armors, use "count2" to give more items
itemid2 - ID of created container (like bag: 1987, ITEM MUST BE CONTAINER AND MUST BE WEARABLE!)
count2 - number of items in container, if you use "bag" (id 1987) as a container you can put 1-8 items, if backpack 1-20, dont set more than max. number of items in container!
offer_type = "container"
offer_description - description of container offer like: "Buy 8 Golden Armors in bag and become rich player! Fight stonger mosters and lose less HP or sell it for much cash!"
offer_name - name of new pacc offer like: "8x Golden Armor"

when i try to seperate the items in itemid1 the box turns red and i can not submit it thanks!
 
Back
Top