realmstatus block ?

phpNuke integration forum

realmstatus block ?

Postby kenetix » Mon Oct 15, 2007 2:50 am

I found this to work 100% with ie and firefox

(this idea came from Ymryl's wow event block)

make a file called block-Realm

Code: Select all
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2005 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}

$go_to_address1="http://WWW.YOURSERVERHERE.COM/realmstats/realm.htm";
$go_to_address=rawurldecode($go_to_address1);

$content   = "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"95\" framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";

?>


put that in your blocks directory

then make a directory in your main nuke folder and name it "realmstats"

inside that makea file called "realm.htm"

put this into that file

Code: Select all
<html>
<head>
<title>Realm Status</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#272727">

<div align="center"><img src="http://WWW.YOURSERVERHERE.COM/roster/realmstatus.php"></div>

</body>

</html>


edit YOURSERVERHERE and bgcolor as needed

this seems kind of complex and maybe overkill but it works well even from my phone on opera mini beta 4
Last edited by kenetix on Mon Oct 15, 2007 2:54 am, edited 1 time in total.
kenetix
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Dec 12, 2006 11:20 am

Re: realmstatus block ?

Postby kenetix » Fri Nov 02, 2007 3:28 am

Code: Select all
<?php

/************************************************************************/
/* PHP-NUKE: Realm Status Block                                         */
/* ===========================                         */
/* refined and better                                                            */
/************************************************************************/

if ( !defined('BLOCK_FILE') ) {
    
Header("Location: ../index.php");
    die();
}

$go_to_address1="http://YOURADDRESSHERE.COM/roster/realmstatus.php";
$go_to_address=rawurldecode($go_to_address1);

$content .= "<div align=\"center\"><img src=\"".$go_to_address."\"></div>";

?>
Last edited by kenetix on Fri Nov 02, 2007 3:30 am, edited 2 times in total.
kenetix
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Dec 12, 2006 11:20 am

realmstatus block ?

Postby Jumanji » Sun Nov 04, 2007 10:57 pm

I use this one on one of my sites. The file is called ShadowsongRS.php and is placed in the blocks directory.

Code: Select all
<?php

if (eregi("block-ShadowsongRS.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

$content = "<center>
<a border='0' href='http://www.wow-europe.com/en/serverstatus/' target='_BLANK'>
        <img border='0' src='http://www.YOURSITEADDRESS/roster/realmstatus.php'>
   </a>   
</a>
</center>";

?>
Last edited by Jumanji on Mon Nov 05, 2007 12:53 am, edited 1 time in total.
Jumanji - Lvl 70 Feral Druid
OnlineWorlds
MMORPG Guild Forum Provider
User avatar
Jumanji
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Tue Jul 11, 2006 12:21 am
Location: UK

realmstatus block ?

Postby ntex » Mon Nov 19, 2007 7:10 pm

None of this work arounds were working for me on roster 1.7.3 was working fine, so I messed around with image location ('cos I reached fine to realmstatus.php but always showed No Status) so it's a very simple fix...

Code: Select all
http://YOUR_COMPLETE_PATH_TO_ROSTER_/roster/realmstatus.php?r=EU-Dentarg


You must define on request your server so you will not get No Status Image, in this case this is my server.

Now it's working fine :)
Last edited by ntex on Mon Nov 19, 2007 7:11 pm, edited 1 time in total.
User avatar
ntex
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Fri Aug 17, 2007 9:58 pm

Previous

Return to phpNuke

Who is online

Users browsing this forum: No registered users and 0 guests

cron