TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 11:03:36 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 127
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 77
  • Total: 77

Add WoW Realm Status on Frontpage

Started by Puchu, March 29, 2006, 07:24:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Molroth


dreadkgt

#31
[FIXED]

Having an odd issue

http://www.therisenguild.net/index.php

Top right TEST block isn't showing the php file. include("wowserverstatus.php"); used in php block

even though

http://www.therisenguild.net/Themes/risen/wowserverstatus.php

Works just fine...

Molroth

Finally im find a host. The DKP site, that we using, is showing the image, and i just link it to a html block :).
http://outcastclan.phpnet.us
Im wery pride of this site /but it is still incomplete, it needs some good looking buttons :)/.

spookdude

I'm getting this error :

Warning: file_get_contents(/server/wowss/wowss_data.txt): failed to open stream: No such file or directory in /home/content/g/o/d/godserver1/html/server/wowserverstatus.php on line 76

Warning: filesize(): Stat failed for /server/wowss/wowss_data.txt (errno=2 - No such file or directory) in /home/content/g/o/d/godserver1/html/server/wowserverstatus.php on line 77


I've set the CHMOD to 777 for every file. Uploaded the TTF's through binary. Double checked my settings. Still no luck. Anyone know what could be causing this problem?

knight111

Quote from: Puchu on March 31, 2006, 05:41:16 AM
Got this error when putting the include("wowserverstatus.php") in a php block

2: file_get_contents(images/wowss/wowss_data.txt): failed to open stream: No such file or directory
File: /home/puchusof/public_html/ridersofsombak/forums/wowserverstatus.php
Line: 76



I have the file in that directory...  it has 777 permissions...  I made sure the .tff files were in binary...


line 76

$info = explode(",", file_get_contents($timestamp));

Its with this grouping

// Check timestamp, update when ready
if (substr($folder_path, -1, 1) != '/') $folder_path = '$folder_path/';
$timestamp = $folder_path . 'wowss_data.txt';
$min = date(i)*1;
$info = explode(",", file_get_contents($timestamp));
if (filesize($timestamp) == 0) { $pass = true; }
if ($min >= ($info[0]+$timer) or $min < $info[0] or $realm or $pass) {



Thanks for the help so far...








i had same prob what i did was create a    folder named      images

because in the code for the wowserverstatus it says this

$folder_path  = 'images/wowss/'; // Path to wowss folder

so u need to have the wowss in the images folder 

and then create a SCRIPTBOX and add this code

<center><img alt="WoW Server Status" src="wowserverstatus.php" /></center>

should work then ... did for me

harlequindreamsx

has the realm stats url on the wow site changed or is it http://www.worldofwarcraft.com/realmstatus/status.xml still? everything is working fine except its not pulling the information needed. i tried looking in the realmstatus.php from the wowroster (which works) but I can't seem to find the url.

kc8pnd

I just set this up on my site, took a little working but did manage to figure it out. Seems the "image/wowss/" was the problem. I could not get the include to work so I just did what the readme file says and used:

<img alt="WoW Server Status" src="wowserverstatus.php" />

Thanks again (: