TinyPortal

Development => Block Codes => Topic started by: Puchu on March 29, 2006, 07:24:25 AM

Title: Add WoW Realm Status on Frontpage
Post by: Puchu on March 29, 2006, 07:24:25 AM
http://53x11.com/?articleno=10

That site has a zip file to add to a website to show realm status...

I'm too much of a n00b to get it to work :-/

I want to know how to make that work on my frontpage and either on a side bar or top bar.


Also possible to make it show multiple realms...


All help would be greatly appreciated!!!
Title: Re: Add WoW Realm Status on Frontpage
Post by: Xarcell on March 29, 2006, 02:54:25 PM
It seems pretty easy with excellent instructions. Hoiwever you need GD library, which is a type of image converter if I'm not mistaken. Ask your host provider.

I'm moving this to block code snippets. Excellent find...
Title: Re: Add WoW Realm Status on Frontpage
Post by: Xarcell on March 29, 2006, 02:55:53 PM
I need more details on where your having your problem in order to help you. I can't explain how to do it any better than what the readme does. If I knew about which part your having trouble with, I give examples of what you would need.

Title: Re: Add WoW Realm Status on Frontpage
Post by: Puchu on March 29, 2006, 09:17:34 PM
I tried to do it liek I saw some people who were German do it on the SMF website...  But since I cant speak German im not sure what exactly they are discussing... They had it show up on their index.template I more or less would liek to make a small block on the right or left showing it there.  I have made a few blocks, asrticles, ect before, but none of which envolved anything like this.


I've played a round a bit and I Got the box to show, and I got an image to show...

The GD thing I will have to look into more when i find the time tonightm and I will then go and try again and then come back here once I get my information...


http://ironwolves-guild.net/forum/index.php  that is the site the has the realm status on it.  I want mine in a block on the left or right next to the forum... or just on the frontpage, I figure there won't be much difference between left right and frontpage...
Title: Re: Add WoW Realm Status on Frontpage
Post by: Puchu on March 30, 2006, 05:26:16 AM
Okay did some digging around, my server has php 4.4.1  according to teh GD site, GD jsut needs to be activated, its already installed, I have no idea how to do anything with php especially like this...


So basically my problem atm seems to be more or less actually gettign GD to install, or get activated...

I also have
Apache version    1.3.34 (Unix)
PERL version    5.8.7


I right now just have no idea what files need modified or if I need to contact people to get it setup...


am I going to have to call my web hosting company to simply install such a thing???  I have Fantastico, and can manage alot of things...
Title: Re: Add WoW Realm Status on Frontpage
Post by: Xarcell on March 30, 2006, 05:38:50 AM
Open a phpblock

Insert: include("wowserverstatus.php");

That's all I believe, if you did your settings right.
Title: Re: Add WoW Realm Status on Frontpage
Post by: Xarcell on March 30, 2006, 05:39:57 AM
The readme tells you "exactly" which files to modify and how. Just read it throughly, slowly...

You can install it yourself in about 5 minutes...
Title: Re: Add WoW Realm Status on Frontpage
Post by: 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...






Title: Re: Add WoW Realm Status on Frontpage
Post by: Hawkes on April 12, 2006, 05:15:02 AM
I got it up and running on my site tonight.  I had to CHMOD the entire wowss folder and I could only use the img tags... not the php block.
Title: Re: Add WoW Realm Status on Frontpage
Post by: blackrose on April 18, 2006, 01:22:55 PM
If you unpack the zip file there is no image folder...search for it in the php file and alter the settings, or make an image folder and move images in there..I was just lazy and changed the file :P

up n running in less then a minute and im a php noob, not even able to make a simple "hello" script ;) Read again, you will make it :D
Title: Re: Add WoW Realm Status on Frontpage
Post by: Puchu on May 17, 2006, 01:00:51 AM
twas something stupid I was overlooking... got it fixed...  but if I make it try to load images it wont load the forums...  but I can get the text version...

    * GD support: yes
    * GD Version: bundled (2.0.28 compatible)
    * FreeType Support: yes
    * FreeType Linkage: with freetype
    * T1Lib Support: no
    * GIF Read Support: yes
    * GIF Create Support: yes
    * JPG Support: yes
    * PNG Support: yes
    * WBMP Support: yes
    * XBM Support: yes
    * JIS-mapped Japanese Font Support: no


thats what I got with the info php file...

says if the png and gd support say yes then it should work...


so...  guessing something wrong with gd library then???
Title: Re: Add WoW Realm Status on Frontpage
Post by: gd1107 on June 01, 2006, 07:19:06 PM
i get the following error:

Parse error: syntax error, unexpected '<' in .../Sources/Load.php(1608) : eval()'d code(34) : eval()'d code on line 1
   
Title: Re: Add WoW Realm Status on Frontpage
Post by: G6Cad on June 01, 2006, 07:20:50 PM
Some added script dont work as it should, Check the files added or code added by you and see if you find whats wrong.
Title: Re: Add WoW Realm Status on Frontpage
Post by: Drahkar on June 04, 2006, 05:23:48 AM
Also if you are having problems with the graphical version of this little applet, there is also an option you can set to make it use text only. thts what I did as it fits better with my site design. (You can customize how it displays the text easily enough as well.)
Title: Re: Add WoW Realm Status on Frontpage
Post by: gd1107 on June 05, 2006, 07:57:41 PM
OK, i got a bit further, but either a) the xml isn't parsing or b) it's not writing to the file wowss/wowss_data.txt

I don't get an error, but it looks more like a problem with the original developer than the snippet for TP
Title: Re: Add WoW Realm Status on Frontpage
Post by: Omniverse on June 06, 2006, 09:56:40 PM
I've been toying with this too...

It all works fine except it won't pull the data needed, and I can't figure out why.

All it will say is "no status source"

http://www.gaminghole.org/WoW/server/wowserverstatus.php

Everything is set correctly, no idea why its not pulling the data.
Title: Re: Add WoW Realm Status on Frontpage
Post by: Puchu on June 15, 2006, 02:26:15 AM
That is weird, I only had that happen once ever, and it was more or less when the servers we down and the wow realm site was being hit about a million times with everybody checking...



The none graphical version works fine with mine.  I moved it about and finally got it where I want it...


as for the no source problem... make sure your link is correct, maybe it is being directed inccorectly or something...  but I really dont know... did you try using other realms as well to see if it is a problem with that realm???
Title: Re: Add WoW Realm Status on Frontpage
Post by: lougster on June 22, 2006, 12:45:12 AM
How do you run the gd_php.php or where do you get it from?


What dir do the files need to be put in exactly to work. I have it in public_html/smf/Themes/TP_WoW-DK/images/ with the wowss and wowserverstatus.php being underneath this.

I created an html box on my forums and inserted this in:
<center><img alt="WoW Server Status" src="wowserverstatus.php" /></center>

Do I have to show correct path name for the img tag, or do I have to move the folder and file to another directory?  I believe I added everything I need in the wowserverstatus.php file.  Also, do I not need wowss base image file and gd_info_php?

As it is right now, I get a red x for where the picture should be.

If anyone could help me on this, I would appreciate it.
Title: Re: Add WoW Realm Status on Frontpage
Post by: IchBin on June 22, 2006, 01:31:25 AM
If you get a red x on the image, right click and choose properties and it will show you where you need to put the images.
Title: Re: Add WoW Realm Status on Frontpage
Post by: sysengr on June 22, 2006, 05:52:36 AM
Actually... I tried to install that several weeks ago, but the realm status page on WOW is gone and I believe they took their feed online so we can no longer use it.  I have gone to many other web sites that have been running it and it was dead on all of them.

I hope I am wrong about this, but you may be kicking a dead horse.

http://www.gaminghole.org/WoW/server/wowserverstatus.php

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.gaminghole.org%2FWoW%2Fserver%2Fwowserverstatus.php&hash=59690e334862d654a927f8c54b1100b9ae84a23f)

I think I may be wrong.. I am seeing signs of life..  I am off to tinker...

Two hours later now.. I give up.  I can get the text option to work on many servers, but some with an " ' " in it will not work.. I can not access the Sen'jin server but I can Azgalor.  Stil the graphics part is jacked up and fails no matter what I try.

Go here: http://53x11.com/?articleno=10
Title: Re: Add WoW Realm Status on Frontpage
Post by: lougster on June 22, 2006, 12:35:50 PM
Moved the file to correct folder.  I dont think it is pulling from the wowss folder correctly.  My source provider says that GD is installed.  In wowserverstatus.php, changed server name to "Stonemaul", path is correctly pointed to location of wowss.  Stumped on how to fix this any further.
Title: Re: Add WoW Realm Status on Frontpage
Post by: lougster on June 22, 2006, 07:08:44 PM
I finally got it to work.  Thanks.    :)
Title: Re: Add WoW Realm Status on Frontpage
Post by: alex32 on June 24, 2006, 06:17:13 AM
Parse error: syntax error, unexpected '<' in /usr/home/gregf/public_html/forums/Sources/Load.php(1607) : eval()'d code(34) : eval()'d code on line 1

i cant figure out how to fix this error could i get some help pleasE? :)
Title: Re: Add WoW Realm Status on Frontpage
Post by: hugo on June 25, 2006, 06:06:22 AM
I can't get it work in block too, when i go http://localhost/tinyportal/wowserverstatus.php it works fine, i can see the image, but when i make a block with include("wowserverstatus.php"); it says this error when i want go to my site:

Image â€Ã...“http://localhost/tinyportal/index.phpâ€Ã, cannot be displayed, because it contains error.

just a blank page with this error message, weird :X
Title: Re: Add WoW Realm Status on Frontpage
Post by: Molroth on June 29, 2006, 03:52:32 PM
Im installed the stuff, got the images library, the whole directory is 777, and it didnt works...

I have this error message in the phpbox:
Parse error: syntax error, unexpected ':' in /www-users/o/u/outcast/Sources/Load.php(1040) : eval()'d code(34) : eval()'d code on line 1

im using smf 1.7

Plz help me! :)
Title: Re: Add WoW Realm Status on Frontpage
Post by: Molroth on July 01, 2006, 05:36:42 PM
Anyone can suggest a free host, where i can run this script?
Title: Re: Add WoW Realm Status on Frontpage
Post by: G6Cad on July 01, 2006, 07:04:16 PM
Look in server and host board here. I think there is some free hosts there you can try.
Title: Re: Add WoW Realm Status on Frontpage
Post by: Crip on July 01, 2006, 07:26:36 PM
What is WoW Realm ???
Title: Re: Add WoW Realm Status on Frontpage
Post by: gundamzero on July 01, 2006, 08:59:32 PM
Quote from: crip on July 01, 2006, 07:26:36 PM
What is WoW Realm ???
It's an online game from Blizzard called World of Warcraft.  I just started playing. 
A realm is a server in this case
http://www.worldofwarcraft.com
http://www.worldofwarcraft.com/realmstatus/
http://www.worldofwarcraft.com/info/basics/realmtypes.html
Title: Re: Add WoW Realm Status on Frontpage
Post by: Crip on July 01, 2006, 10:28:50 PM
aye ok. :)
Title: Re: Add WoW Realm Status on Frontpage
Post by: Molroth on July 02, 2006, 11:03:58 AM
Thx G6! :D
I will try it.
Title: Re: Add WoW Realm Status on Frontpage
Post by: dreadkgt on July 05, 2006, 02:13:43 AM
[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...
Title: Re: Add WoW Realm Status on Frontpage
Post by: Molroth on July 05, 2006, 06:17:20 AM
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 :)/.
Title: Re: Add WoW Realm Status on Frontpage
Post by: spookdude on September 11, 2006, 07:49:40 PM
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?
Title: Re: Add WoW Realm Status on Frontpage
Post by: knight111 on February 20, 2007, 10:44:42 PM
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
Title: Re: Add WoW Realm Status on Frontpage
Post by: harlequindreamsx on January 30, 2008, 09:58:10 PM
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.
Title: Re: Add WoW Realm Status on Frontpage
Post by: kc8pnd on February 04, 2008, 10:29:56 AM
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 (: