![]() |
Getting Players online status via PHP
How do I do this?
I want to make my website show all the admins on the server's status online: E.g. Hikaru is online now! or Hikaru is offline. Any particular way to do this? |
You can manipulate http://www.graalonline.com/members/viewprofile.php?accname=someaccount to get the online status.
The easiest would be: PHP Code:
There may even be a different file to manipulate, but that's how I know how to do it... |
Nah, the best way is to made graal call a PHP file through graal using requesturl
PHP Code:
|
Anyone got an easier way to do it ... ?
Quote:
|
Quote:
|
Quote:
|
I'll be damned -- It works :o
Line 59: <td>Dual Ortus</td> PHP Code:
|
1 Attachment(s)
Because I'm nice and I was gonna make this for my playerworld eventually anyway:
In Control-NPC: PHP Code:
PHP Code:
online.php: PHP Code:
Change MySQLidb to MySQLdb in the script to switch. MySQLi should be slightly faster though if you're using php4 you'll need to use the MySQL class. In the script you'll need to find your server IP and replace 194.5.30.2 with it, this is to stop people abusing the script. |
If you may remember, MySQL on my computer is busted =]
|
Well I cannot get the member profile to show anything about me. http://www.graalonline.com/members/v...me=JkWhoSaysNi I'm on Dark Nations right now and it doesn't show it.
|
Quote:
|
Um . . .
Don't try that; It bans you if you try to retrieve the content via scripts: HTML Code:
Searching . . .... Any comments? ... |
My MySQL works now, but how do I import tables into it? I assume it's in the MySQL Command Prompt?
|
| All times are GMT +2. The time now is 02:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.