**** UPDATE (split from previous server block snippet)*****
EDIT: I have a new host and have it working now, I have also updated the coding and added the maps (with new ones as well) which were lost
America's Army server status block.
In a PHP block put:
//////////////////////////////////////////////
// America's Army Server Info Block
// based on the PHP Nuke block designed by DivideByZero
//
// Redesigned and converted by Ken McNicholas for TinyPortal block
// Complete Computer Services
// August 20, 2006
//
// TinyPortal 0.86 with SMF 1.1 RC2
//
// The America's Army Server Info Block displays current players
// on a particular America's Army server.
// Set up the configuration info for the server you wish to query
//
//////////////////////////////////////////////
/*
****************************************
****************************************
*** !! User Configuration Section !! ***
****************************************
****************************************
*/
// Server IP you want to query
$aa_ip = 'XXX.XXX.XXX.XXX';
// Server Port - 1716 = default
$aa_port1 = '1716';
// Server Query Port - 1717 = default
$aa_port2 = '1717';
// Server Name
$aa_server_name = 'INSERT NAME TO SHOW HERE';
$aa_server_url = 'http://aaotracker.com/webspec/index.php?addr=';
$aa_lookup_server = 'http://www.aa-mbs.com/serverlookup.php?ip=' . $aa_ip . ':' . $aa_port1 . '';
// URL to where you put the folder containing the map pics (include a trailing slash!)
$aa_image_path = 'http://www.yourdomain.com/pathtoimages/';
// You should only need to change the map array if maps
// are added/deleted/changed, otherwise leave as is
$map = array("Bridge Crossing" => "bridge_crossing.jpg",
"Bridge SE" => "bridge_se.jpg",
"Border" => "border.jpg",
"Canyon" => "canyon.jpg",
"Collapsed Tunnel" => "collapsed_tunnel.jpg",
"District" => "district.jpg",
"Dusk" => "dusk.jpg",
"ES2Border" => "es2_border.jpg",
"FLS Assault" => "fls_assault.jpg",
"Headquarters Raid" => "headquarters_raid.jpg",
"Insurgent Camp" => "insurgent_camp.jpg",
"Interdiction" => "interdiction.jpg",
"JRTC Farm Raid" => "jrtc_farm_raid.jpg",
"Mountain Ambush" => "mountain_ambush.jpg",
"Mountain Pass" => "mountain_pass.jpg",
"Mountain Pass SE" => "mountain_pass_se.jpg",
"Mout McKenna" => "mout_mckenna.jpg",
"Oil Rig" => "oil_rig.jpg",
"OperationShroudedEagle" => "shrouded_eagle.jpg",
"Pipeline" => "pipeline.jpg",
"SF Pipeline" => "pipeline_sf.jpg",
"Radio Tower" => "radio_tower.jpg",
"River Basin" => "river_basin.jpg",
"SMU GH RiverVillage" => "river_village.jpg",
"Rummage" => "rummage.jpg",
"Steamroller" => "steamroller.jpg",
"SF Arctic" => "sf_arctic.jpg",
"SF Oasis" => "sf_oasis.jpg",
"SF Taiga" => "sf_taiga.jpg",
"SF Blizzard" => "sf_blizzard.jpg",
"SF Courtyard" => "sf_courtyard.jpg",
"SF Dockside" => "sf_dockside.jpg",
"SF Extraction" => "sf_extraction.jpg",
"SF PCR" => "sf_pcr.jpg",
"SF Water Treatment" => "sf_water_treatment.jpg",
"SF Village" => "sf_village.jpg",
"SF CSAR" => "sf_csar.jpg",
"SF Hospital" => "sf_hospital.jpg",
"SF Recon" => "sf_recon.jpg",
"SF SandStorm" => "sf_sandstorm.jpg",
"SF SnakePlain" => "sf_snakeplain.jpg",
"SMU GH SFFloodgate" => "sf_floodgate.jpg",
"SMU GH SFRefinery" => "sf_refinery.jpg",
"SMU GH SFOldTown" => "sf_old_town.jpg",
"Swamp Raid" => "swamp_raid.jpg",
"Weapons Cache" => "weapons_cache.jpg",
"Weapons Cache SE" => "weapons_cache_se.jpg",
"Woodland Outpost" => "woodland_outpost.jpg",
"Urban Assault" => "urban_assault.jpg");
/*
****************************************
****************************************
*/
//////////////////////////////////////////////
//
// The rest of this you should leave as is
// unless you are overly industrious :)
//
//////////////////////////////////////////////
// query server for game info
$aa_sock = fsockopen( "udp://" . $aa_ip, $aa_port2);
if($aa_sock != false){
socket_set_timeout($aa_sock, 0, 500000);
fwrite($aa_sock, "\\info\\");
$aa_info = @fread($aa_sock, 8192);
fclose($aa_sock);
}
// create array to hold game info
$aa_infoarr = explode("\\", $aa_info);
$aa_info = array();
$aa_infosize = count($aa_infoarr);
// since first element is unused (element 0) start at element 1
// and populate an associative array (nicer, and easier!)
for ($i = 1; $i < $aa_infosize; $i += 2){
$aa_info[$aa_infoarr[$i]] = $aa_infoarr[$i+1];
}
// get player list
$players = "";
$p = 1;
for ($i = 0; $i < $aa_info['numplayers']; $i++){
$players .= $p . ' - ' . $aa_info['player_' . $i] . '<br />';
$p++;
}
// display info
// Host name and link to detail from FO Online Server Browser
echo '<a href="' . $aa_server_url . $aa_ip . ':' . $aa_port1 . '">' . $aa_server_name . "</a><br />";
//IP:Port address
echo 'IP: ' . $aa_ip . ':' . $aa_port1 . '<br />';
// Map Name
echo 'Map: ' . $aa_info['mapname'] . '<br />';
// Players / Max Players
echo 'Players: ' . $aa_info['numplayers'] . '/' . $aa_info['maxplayers'] . '<br />';
// Round
echo 'Round: ' . $aa_info['current_round'] . '<br />';
//Mission Time
echo 'Time: ' . $aa_info['mission_time'] . '<br />';
$mappic = "";
if (array_key_exists($aa_info['mapname'], $map)){
echo '<img src="' . $aa_image_path . $map[$aa_info['mapname']] . '"><br />';
} else {
echo '<img src="' . $aa_image_path . 'unknown.jpg">';
}
echo '<a href="' . $aa_lookup_server . '">* Server Intel *</a><br />';
echo 'Current Players:<br />';
echo '<a name="scrollingCode"></a>';
// display scrolling player list
echo '<marquee behavior="scroll" align="left" direction="up" height="80" width="90%" scrollamount="2" scrolldelay="100" bgcolor="232323"
loop="infinite" onmouseover="this.stop()" onmouseout="this.start()">';
echo '<a href="' . $aa_lookup_server . '">' . $players . '</a></marquee>';
Edit the configuration section of the code to suit the server you wish to display and upload the attached maps to your site.
/EDIT
**** END UPDATE*****
I cant get it to work either :tickedoff: My server is with SMPM and they suck, maybe thats my problem??? :-\
IP: 209.160.39.51
If someone can help it would be greatly appreciated
Cheers
Hairy
I'm just thinking, maybe it's because I am using the latest versions of SMF and TinyPortal, is it maybe a compatiblity issue?
TP version will not matter.
Perhaps this part in Thurnoks post is why you can't.
QuoteNOTE: Your Host provider must allow the fsockopen() php function on your server otherwise you will get no data. Not all Host providers allow this function. Talk to your Host provider about allowing it if they do not already.
I asked them (SMPM) in a support ticket 4 days ago if their settings would cause that problem and they said "no" but their support is not very knowledgable :uglystupid2:
By "host provider" does that mean the host of the "game" server or the host of your website, I only checked the "game" server host, I searched the PHP settings of my website host but could not see that command listed anywhere.
Cheers
The web server, not the game server needs to have the fsockopen function available.
Ok thanks mate, I will try to sort it out with my web host.
Silly me :idiot2:
Yes... the fsockopen() function in php is disabled by many host providers (your webhost provider for your website). They disable it to help prevent hacking attempts and botting.
If it is disabled by your host provider, you "might" be able to get them to open it for you. In some cases, they will open it to a specific IP address and specific Port number which prevents it from being abused to access servers all over the world. In that case, you need to provide them an IP address and a Port number.
Just got a response and the socket is open, always has been.
But reading the first post:
Quote from: knight111 on August 20, 2006, 06:26:53 PM
now mainly i am looking to get the Server scroller block goin on the new one and need help .... not sure if anyone has coded it or not ... i have searched and found a few things but i really like this block ... you can download the block at Forward observer found here
http://www.forwardobserver.us/modules.php?name=Downloads&d_op=getit&lid=25
if there is anything anyone knows about this i would really apreciate it ... love The TP block setup by the way ... very clean ... great job all
Are there extra files that are needed from that link? all I did was add the code to a block and change the settings to suit my game servers and put some map files in a images directory. (with the code for the images pointing to that folder)
If extra files are needed from the original application then I can't do it because that link is dead.
Cheers
Download Trackers Webspectator2.2 http://aaotracker.com/downloaddb.php?file=39
it comes with an usable Maps-Pack
I've got Turnocs snipplet to work
except for the colormod of MebyMyselve ( that one gives me a parsing error: parse error: syntax error, unexpected T_STRING in /home/cs84521/public_html/Forums/Sources/Load.php(1736) : eval()'d code(35) : eval()'d code on line 67)
A solution woould be welcome but not really neccecary yet
Thanks for everyones help but it's still not working :( I think it's something to do with my host. I even tried just using Trackers Webspectator viewer and just getting a message that the server is unavailable (the one downloaded on my website) the one on trackers website is working.
Cheers
Quote from: Thurnok on July 18, 2007, 07:19:08 AM
The links in the block code? Those are from a server that was running at one time that may or may not still be up. You will need to provide a valid server and port for use of the block itself.
Thurnok i cant find thatblock on Tiny portal :-( is it me ore don't u have it anymore ?
Quote from: AndersAnd on July 22, 2007, 02:22:20 PM
Quote from: Thurnok on July 18, 2007, 07:19:08 AM
The links in the block code? Those are from a server that was running at one time that may or may not still be up. You will need to provide a valid server and port for use of the block itself.
Thurnok i cant find thatblock on Tiny portal :-( is it me ore don't u have it anymore ?
Andersand ; it is a codeblock shown in 3 versions in this topic. Otherwise You can find it at n Turnoks homepage.
how can i convert this script so that it will work in an article?
No need to convert it, just put it in a PHP article.
//////////////////////////////////////////////
// America's Army Server Info Block
// based on the PHP Nuke block designed by DivideByZero
//
// Redesigned and converted by Ken McNicholas for TinyPortal block
// Complete Computer Services
// August 20, 2006
//
// TinyPortal 0.86 with SMF 1.1 RC2
//
// The America's Army Server Info Block displays current players
// on a particular America's Army server.
// Set up the configuration info for the server you wish to query
//
//////////////////////////////////////////////
/*
****************************************
****************************************
*** !! User Configuration Section !! ***
****************************************
****************************************
*/
// Server IP you want to query
$aa_ip = '64.34.201.157';
// Server Name
$aa_server_name = 'aces server';
$aa_server_url = 'http://www.forwardobserver.us/browser/foserverlist.php?ServerIP=';
$aa_lookup_server = 'http://www.aa-mbs.com/serverlookup.php?ip=' . $aa_ip . ':1716';
// Server Port - 1717 = default
$aa_port = '1717';
// URL to where you put the folder containing the map pics (include a trailing slash!)
$aa_image_path = 'http://www.acesarmy.com/forum/server/armygame/';
// You should only need to change the map array if maps
// are added/deleted/changed, otherwise leave as is
$map = array("Bridge Crossing" => "Bridge.jpg",
"Bridge SE" => "Bridge SE.jpg",
"Border" => "Border.jpg",
"Collapsed Tunnel" => "Tunnel-d.jpg",
"Dusk" => "Dusk.jpg",
"FLS Assault" => "FLS-b.jpg",
"Headquarters Raid" => "HQ_Raid.jpg",
"Insurgent Camp" => "Insurgent_Camp-c.jpg",
"JRTC Farm Raid" => "JRTC_Farm.jpg",
"Mountain Ambush" => "Mountain_Ambush-b.jpg",
"Mountain Pass" => "Mountain_Pass.jpg",
"Mountain Pass SE" => "Mountain Pass SE.jpg",
"Mout McKenna" => "MOUT_McKenna.jpg",
"Pipeline" => "Pipeline-b.jpg",
"Pipeline SF" => "Pipeline.jpg",
"Radio Tower" => "Radio_Tower.jpg",
"River Basin" => "River_Basin-c.jpg",
"SF Oasis" => "sf_oasis.jpg",
"SF Taiga" => "sf_taiga.jpg",
"SF Blizzard" => "sf_blizzard.jpg",
"SF Courtyard" => "sf_courtyard.jpg",
"SF Dockside" => "SFdockside.jpg",
"SF Extraction" => "SFextraction.jpg",
"SF PCR" => "sf_pcr.jpg",
"SF Water Treatment" => "sf_water_treatment.jpg",
"SF Arctic" => "sfarctic.jpg",
"SF Village" => "sfvillage.jpg",
"SF CSAR" => "sf_csar.jpg",
"SF Hospital" => "sf_hospital.jpg",
"SF Recon" => "sf_recon.jpg",
"SF SandStorm" => "sf_sandstorm.jpg",
"Swamp Raid" => "Swamp_Raid-a.jpg",
"Weapons Cache" => "Weapons_Cache-d.jpg",
"Weapons Cache SE" => "Weapons_Cache-a.jpg",
"Woodland Outpost" => "woodland_outpost.jpg",
"Urban Assault" => "urban_assault.jpg");
/*
****************************************
****************************************
*/
//////////////////////////////////////////////
//
// The rest of this you should leave as is
// unless you are overly industrious :)
//
//////////////////////////////////////////////
// query server for game info
$aa_sock = fsockopen( "udp://" . $aa_ip, $aa_port);
if($aa_sock != false){
socket_set_timeout($aa_sock, 0, 500000);
fwrite($aa_sock, "\\info\\");
$aa_info = @fread($aa_sock, 8192);
fclose($aa_sock);
}
// create array to hold game info
$aa_infoarr = explode("\\", $aa_info);
$aa_info = array();
$aa_infosize = count($aa_infoarr);
// since first element is unused (element 0) start at element 1
// and populate an associative array (nicer, and easier!)
for ($i = 1; $i < $aa_infosize; $i += 2){
$aa_info[$aa_infoarr[$i]] = $aa_infoarr[$i+1];
}
// get player list
$players = "";
$p = 1;
for ($i = 0; $i < $aa_info['numplayers']; $i++){
$players .= $p . ' - ' . $aa_info['player_' . $i] . '<br />';
$p++;
}
// display info
// Host name and link to detail from FO Online Server Browser
echo '<a href="' . $aa_server_url . $aa_ip . '">' . $aa_info['hostname'] . "</a><br />";
//IP:Port address
echo 'IP: ' . $aa_ip . ':' . $aa_port . '<br />';
// Map Name
echo 'Map: ' . $aa_info['mapname'] . '<br />';
// Players / Max Players
echo 'Players: ' . $aa_info['numplayers'] . '/' . $aa_info['maxplayers'] . '<br />';
// Round
echo 'Round: ' . $aa_info['current_round'] . '<br />';
//Mission Time
echo 'Time: ' . $aa_info['mission_time'] . '<br />';
$mappic = "";
if (array_key_exists($aa_info['mapname'], $map)){
echo '<img src="' . $aa_image_path . $map[$aa_info['mapname']] . '"><br />';
} else {
echo 'Map Unavailable!<br />';
}
echo '<a href="' . $aa_lookup_server . '">* Server Intel *</a><br />';
echo '<a href="aao://' . $aa_ip . '"><img src="' . $aa_image_path . 'joinserver.gif" border="0" alt="Join Server!!"></a><br />';
echo 'Current Players:<br />';
echo '<a name="scrollingCode"></a>';
// display scrolling player list
echo '<marquee behavior="scroll" align="left" direction="up" height="80" width="90%" scrollamount="2" scrolldelay="100" bgcolor="232323"
loop="infinite" onmouseover="this.stop()" onmouseout="this.start()">';
echo '<a href="' . $aa_lookup_server . '">' . $players . '</a></marquee>';
i got this to work in a php BLOCK but it wont work in a php article for me.
this is a link to the article: http://ihf.lp.pl/index.php?page=32
the block is on the right, as u will see it is working.
The code i posted above is what im using
to help you.
what i am trying to do is create a similar thing to this:
http://www.draat.net/servers
thats why i want to put it in an article. once in an article i want to organise it so that it is in columns.
Well it should work if it works in a block. I have no way of testing it, so there's not much I can do. Sorry.
Hey,
I just installed this on my site but looking at the code it no longer works because forwardobserver.com does not exist anymore...
If i am not wrong, the information it gets is from forward observer... You guys are intelligent and get the picture now despite all my ramblings :)
Is it just a matter of changing a lil something round in the code or would the code have to be re-written to work...?
Thank You in advance for help.
Go here.... http://www.airdaleops.com/index.php
They are using the block in question for the servers. You could pm Yapple and get the code. I had it here but can't find it now. Not sure if those are the type of blocks you desire but I assume they are using a different method to query the servers...
I am pretty sure this doesnt work any more for 2.5 servers...because that server tracker gets its info from aa-mbs.com
For 2.5 to work it needs to get its info from game-monitor.com.... :(
Maybe ill ask iGate for a some advise
omega it shud work. ar is using it, but i think rem might have modified it to use aaotracker instead of forward observer.
ohk... I logged onto the forums this morning and it was magically all working :D
I think dan mighta get rem to slightly mod it... tho Lt Arrow tryed it with [Nifty] Melbourne and it didnt work... I think theres some sorta random thing going on with 2.5 servers... Its not just our game server
@ iGate - At one point in time, I believe it was able to work in a php article. I cannot test it any longer either. However, you definately do not want to have it in both a block and an article being shown on the page at the same time. That will cause issues.
Sorry to bump this, but what happened to the attachments under Thurnok's post on the first page. I am interested in this script. Could you repost the attachments?
In the server move we lost quite a few attachments. Thurnok is on an extended break. The only way you'll get it I think is if someone else has it.
Ahh ok. Thanks IchBin. I think the files attached were only images of the server maps anyway. :)
I have updated this snippet:
*Changed the link from forward observer to aao tracker
*Updated map listing to be current
I have also attached the maps I am using (make sure you login to see the attachment).
:coolsmiley:
//////////////////////////////////////////////
// America's Army Server Info Block
// based on the PHP Nuke block designed by DivideByZero
//
// Redesigned and converted by Ken McNicholas for TinyPortal block
// Complete Computer Services
// August 20, 2006
//
// TinyPortal 0.86 with SMF 1.1 RC2
//
// The America's Army Server Info Block displays current players
// on a particular America's Army server.
// Set up the configuration info for the server you wish to query
//
//////////////////////////////////////////////
/*
****************************************
****************************************
*** !! User Configuration Section !! ***
****************************************
****************************************
*/
// Server IP you want to query
$aa_ip = 'XXX.XXX.XXX.XXX';
// Server Name
$aa_server_name = 'INSERT NAME TO SHOW HERE';
$aa_server_url = 'http://aaotracker.com/webspec/index.php?addr=';
$aa_lookup_server = 'http://www.aa-mbs.com/serverlookup.php?ip=' . $aa_ip . ':1716';
// Server Port - 1717 = default
$aa_port = '1717';
// URL to where you put the folder containing the map pics (include a trailing slash!)
$aa_image_path = 'http://www.yourdomain.com/pathtoimages/';
// You should only need to change the map array if maps
// are added/deleted/changed, otherwise leave as is
$map = array("Bridge Crossing" => "bridge_crossing.jpg",
"Bridge SE" => "bridge_se.jpg",
"Border" => "border.jpg",
"Canyon" => "canyon.jpg",
"Collapsed Tunnel" => "collapsed_tunnel.jpg",
"District" => "district.jpg",
"Dusk" => "dusk.jpg",
"ES2Border" => "es2_border.jpg",
"FLS Assault" => "fls_assault.jpg",
"Headquarters Raid" => "headquarters_raid.jpg",
"Insurgent Camp" => "insurgent_camp.jpg",
"Interdiction" => "interdiction.jpg",
"JRTC Farm Raid" => "jrtc_farm_raid.jpg",
"Mountain Ambush" => "mountain_ambush.jpg",
"Mountain Pass" => "mountain_pass.jpg",
"Mountain Pass SE" => "mountain_pass_se.jpg",
"Mout McKenna" => "mout_mckenna.jpg",
"Oil Rig" => "oil_rig.jpg",
"OperationShroudedEagle" => "shrouded_eagle.jpg",
"Pipeline" => "pipeline.jpg",
"SF Pipeline" => "pipeline_sf.jpg",
"Radio Tower" => "radio_tower.jpg",
"River Basin" => "river_basin.jpg",
"SMU GH RiverVillage" => "river_village.jpg",
"Rummage" => "rummage.jpg",
"Steamroller" => "steamroller.jpg",
"SF Arctic" => "sf_arctic.jpg",
"SF Oasis" => "sf_oasis.jpg",
"SF Taiga" => "sf_taiga.jpg",
"SF Blizzard" => "sf_blizzard.jpg",
"SF Courtyard" => "sf_courtyard.jpg",
"SF Dockside" => "sf_dockside.jpg",
"SF Extraction" => "sf_extraction.jpg",
"SF PCR" => "sf_pcr.jpg",
"SF Water Treatment" => "sf_water_treatment.jpg",
"SF Village" => "sf_village.jpg",
"SF CSAR" => "sf_csar.jpg",
"SF Hospital" => "sf_hospital.jpg",
"SF Recon" => "sf_recon.jpg",
"SF SandStorm" => "sf_sandstorm.jpg",
"SF SnakePlain" => "sf_snakeplain.jpg",
"SMU GH SFFloodgate" => "sf_floodgate.jpg",
"SMU GH SFRefinery" => "sf_refinery.jpg",
"SMU GH SFOldTown" => "sf_old_town.jpg",
"Swamp Raid" => "swamp_raid.jpg",
"Weapons Cache" => "weapons_cache.jpg",
"Weapons Cache SE" => "weapons_cache_se.jpg",
"Woodland Outpost" => "woodland_outpost.jpg",
"Urban Assault" => "urban_assault.jpg");
/*
****************************************
****************************************
*/
//////////////////////////////////////////////
//
// The rest of this you should leave as is
// unless you are overly industrious :)
//
//////////////////////////////////////////////
// query server for game info
$aa_sock = fsockopen( "udp://" . $aa_ip, $aa_port);
if($aa_sock != false){
socket_set_timeout($aa_sock, 0, 500000);
fwrite($aa_sock, "\\info\\");
$aa_info = @fread($aa_sock, 8192);
fclose($aa_sock);
}
// create array to hold game info
$aa_infoarr = explode("\\", $aa_info);
$aa_info = array();
$aa_infosize = count($aa_infoarr);
// since first element is unused (element 0) start at element 1
// and populate an associative array (nicer, and easier!)
for ($i = 1; $i < $aa_infosize; $i += 2){
$aa_info[$aa_infoarr[$i]] = $aa_infoarr[$i+1];
}
// get player list
$players = "";
$p = 1;
for ($i = 0; $i < $aa_info['numplayers']; $i++){
$players .= $p . ' - ' . $aa_info['player_' . $i] . '<br />';
$p++;
}
// display info
// Host name and link to detail from FO Online Server Browser
echo '<a href="' . $aa_server_url . $aa_ip . ':1716">' . $aa_server_name . "</a><br />";
//IP:Port address
echo 'IP: ' . $aa_ip . ':' . $aa_port . '<br />';
// Map Name
echo 'Map: ' . $aa_info['mapname'] . '<br />';
// Players / Max Players
echo 'Players: ' . $aa_info['numplayers'] . '/' . $aa_info['maxplayers'] . '<br />';
// Round
echo 'Round: ' . $aa_info['current_round'] . '<br />';
//Mission Time
echo 'Time: ' . $aa_info['mission_time'] . '<br />';
$mappic = "";
if (array_key_exists($aa_info['mapname'], $map)){
echo '<img src="' . $aa_image_path . $map[$aa_info['mapname']] . '"><br />';
} else {
echo '<img src="' . $aa_image_path . 'unknown.jpg">';
}
echo '<a href="' . $aa_lookup_server . '">* Server Intel *</a><br />';
echo 'Current Players:<br />';
echo '<a name="scrollingCode"></a>';
// display scrolling player list
echo '<marquee behavior="scroll" align="left" direction="up" height="80" width="90%" scrollamount="2" scrolldelay="100" bgcolor="232323"
loop="infinite" onmouseover="this.stop()" onmouseout="this.start()">';
echo '<a href="' . $aa_lookup_server . '">' . $players . '</a></marquee>';
Can you update the first post with this instead ? It's easier to find when the first post always holds the newest code available :up: :)
[EDIT]
See that you are not the topic starter, so i think a new topic with your code is better :)
Hi G6, my first post was on page 3 but I have edited with a link to the above info so it's easier for others to find, if and Admin can link to it by editing the first post that would be excellent! :D
http://www.tinyportal.net/index.php/topic,7628.msg144888.html#msg144888
Hope all is well, been a while since I have been here but I always make sure I post anything I think would help others.
Cheers :)
EDIT: A new topic might be good but this topic is linked on the "snippets index" so maybe a moderater can edit the first post to link to the one I just posted? Let me know if you still want a new topic and I will do it.
I splitted the topic instead.
Edit the first post with some text explaining what it is and you can hold this topic updated as you like :up:
All updated, would it be possible to update the "snippet index" to point to this one otherwise you're gonna get new people going to the old one still.
Cheers
i have added it to the [Block] list, it will auto update as the 10th newest blocks available :)
Thanks for this Hairy ! O0
Find a demo of this block here: Http://nwogaming.com
Thanks G6 and V@por, looks good :up:
I have updated the code in the first post with a slight modification, the original code displayed the servers "query" port in the block results but this is silly as people wanting the information to join are actually after the standard port.
I have changed:
// Server Port - 1717 = default
$aa_port = '1717';
To:
// Server Port - 1716 = default
$aa_port1 = '1716';
// Server Query Port - 1717 = default
$aa_port2 = '1717';
And modified the 2 sections within the code that uses this info.
Now my blocks display the correct port for joining them :up:
Further edit:
I have also just added in support for the links to tracker and AAMBS to reflect the standard port you put in, this will be of benefit for those not running the usual "1716" port setup.
Went back to SMF..thanks hairy!