how to get realm status block

Dragonfly integration forum

how to get realm status block

Postby IslandStyle » Wed Apr 04, 2007 2:30 am

I recently switched from the stand alone version of roster to the DF version. I have a question about pulling the realm status into a seperate block. Withe the standalone version I could use
Code: Select all
<img src="http://www.kalimdortribe.com/Roster/realmstatus.php">

but now with the DF version would i just specift the path to the new file or is there something else that needs to be entered for it?

Thanks in advance for the help
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

how to get realm status block

Postby Karavirs » Wed Apr 04, 2007 3:13 am

Here is my block code for DF realm status change the Whisperwind hardcode

Code: Select all
<div align="center"><A HREF="http://www.worldofwarcraft.com/realmstatus">
<img src="/index.php?name=WoWRosterDF&file=realmstatus" border="0" alt="Whisperwind Status"/></A></div>
Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago

Re: how to get realm status block

Postby Oishisan » Thu Apr 26, 2007 2:53 am

I had a totally different approach to this problem.
I kept getting a blank block with all the above links.

So what i did.. I ripped a block code and made it my own :)

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();
}

  $content .= "<center><img src=\"http://my.website.location/roster/realmstatus.php\" alt=\"WoW Emerald Dream Server Status\" /></center>";

?>


Note that this works for EU servers.
and you can change the CENTER tags to DIV if you like :)
Oishisan
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Wed Jul 19, 2006 6:25 pm

Re: how to get realm status block

Postby secretone » Mon Sep 10, 2007 3:21 am

Thanks for that piece of code. It worked for me using DF 9.1.2.1.
I had to use the code below though. Notice that my install of dragonfly is not in the root.

Code: Select all
<?php
/*********************************************
  CPG Dragonfly CMS
  ********************************************
  Copyright (c)¸ 2004 - 2005 by CPG-Nuke Dev Team
  http://www.dragonflycms.com

  Dragonfly is released under the terms and conditions
  of the GNU GPL version 2 or any later version
********************************************************/

if (!defined('CPG_NUKE')) { exit; }

$content .= "<center><img src=\"http://your.website.location/dragonfly/modules/WoWRosterDF/realmstatus.php\" alt=\"Your Server Status\"

/></center>";


Also notice there is no ending php tag. This is the way of all the blocks I
have looked at.

If you want to do this for your self then the easiest way if you do not
have an editor is to use notepad to create the above code and save it as
block-Realm_Status.php.
Then upload it to your blocks folder of your
dragonfly installation.
You can then go in to admin and then blocks and pick it up from the
Filename drop down box, give it a Title, and change other options as
needed. Press the Create Block button.

Hope that helps,

Secretone
Image
User avatar
secretone
WR.net Apprentice
WR.net Apprentice
 
Posts: 62
Joined: Wed Feb 28, 2007 6:33 pm
Location: Kent, UK

how to get realm status block

Postby Wingforce » Tue Sep 25, 2007 2:45 am

Thanks secretone, that worked great. One change if you are not using LEO then the URL needs to be formatted like
Code: Select all
$content .= "<center><img src=\"http://your.web.site.location/index.php?name=WoWRosterDF&file=realmstatus\" alt=\"Your Server Status\"
User avatar
Wingforce
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Sat Dec 02, 2006 2:51 am
Location: Tampa, FL

Re: how to get realm status block

Postby secretone » Tue Sep 25, 2007 4:09 am

Wingforce wrote:Thanks secretone, that worked great. One change if you are not using LEO then the URL needs to be formatted like
Code: Select all
$content .= "<center><img src="http://your.web.site.location/index.php?name=WoWRosterDF&file=realmstatus" alt="Your Server Status"


Your most welcome, you code has also helped me understand how to call
other stuff in other modules, so thank you :)

Secretone
Image
User avatar
secretone
WR.net Apprentice
WR.net Apprentice
 
Posts: 62
Joined: Wed Feb 28, 2007 6:33 pm
Location: Kent, UK


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron