How do I put server stats into PHPNUKE?
- Edge100x
- Founder
- Posts: 12957
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Apr 18, 2002 11:04 pm
- Location: Seattle
- Contact:
-
- A regular
- Posts: 42
- Joined: Sun Jul 10, 2005 1:52 pm
there is an html button, and it opens a new dialog where you can paste html in it.Edge100x wrote:The newest version of PHP-Nuke uses a 3rd party script that makes edit blocks more WSIWYG. There should be a button in the block that allows you to choose to see the straight HTML rather than what it interprets to.
However, this doesn't work either...in fact it shows the plain html...and then if you go to edit the block again, you can see the server status inside of the block edit dialog!!
But only one, then everything disappears from the block.
-
- A regular
- Posts: 42
- Joined: Sun Jul 10, 2005 1:52 pm
Ok, what I did was create a custom block called block-ServerStatus.php.Edge100x wrote:When you post HTML code into messages, it makes it so the code doesn't actually get run (for security reasons). You'd need to manually edit the .php code that generated the PHP-Nuke page in order to include more HTML.
This is the code inside the file:
Code: Select all
<?php
if (eregi("block-ServerStatus.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<iframe src="http://rentals.nuclearfallout.net/query/stat.pl?id=sof" width=400 height=600 frameborder=0></iframe>";
?>
http://sofclan.nuclearfallout.net
It's not real pretty yet, but I need to work with it. However, I learned the technique so this should give me some power to do what I want.
-
- A regular
- Posts: 42
- Joined: Sun Jul 10, 2005 1:52 pm
server status
You also can dl and install modules that have game server status
http://www.extremebattlefield.com
http://www.extremebattlefield.com
-
- A regular
- Posts: 42
- Joined: Sun Jul 10, 2005 1:52 pm
Re: server status
A link would be helpful...Sledster wrote:You also can dl and install modules that have game server status
http://www.extremebattlefield.com
Here are two links you may find useful. One is the gameserver module which allows you to have a block on your site that shows server status. Another is CLan Nuke which is a module that contains a decent roster. Please google these also and check for more recent versions as the ones I have posted here for you work nicely with my version of nuke but may not with yours.
Gameserver Module
Clan Nuke Module
Regards,
-e[/url]
Gameserver Module
Clan Nuke Module
Regards,
-e[/url]
-
- New to forums
- Posts: 3
- Joined: Sat Mar 04, 2006 9:02 am
This is what show's up on my front page after editing
Server Status
<?php
if (eregi("block-ServerStatus.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<iframe src=\"http://rentals.nuclearfallout.net/query/stat.pl?id=sex\" width=400 height=600 frameborder=0></iframe>";
?>
<?php
if (eregi("block-ServerStatus.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<iframe src=\"http://rentals.nuclearfallout.net/query/stat.pl?id=sex\" width=400 height=600 frameborder=0></iframe>";
?>
-
- New to forums
- Posts: 3
- Joined: Sat Mar 04, 2006 9:02 am
however
When I'm editing the block I can see the picture. It just doesnt show up on the from page correctly...