Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

ArmA squad.xml help


Print Track
ArmA & ArmA 2 (& Op. Flashpoint) use a squad.xml in every player's profile to show miscellaneous info such as email adress, squad (clan)-info and personal remark (motto). It also displays the squadlogo as an armpatch on your character and on all vehicles your player is inside and is the leader of.
The same squad.xml can also be used as part of a website.
I'm using it as a roster/memberlist. You can see it here.

What I'm wondering is if something is willing to make a GUI edit function to add, edit and delete members in squad.xml via a webpage.

The classes that needs to be edited are:
<squad nick="">
<name></name>
<email></email>
<web></web>
<picture></picture>
<title></title>

<member id="" nick="">
<name></name>
<email></email>
<icq></icq>
<remark></remark>
<avatar></avatar>
</member>
</squad>

There is always only one squad, but there is one <member> per erm member. See squad - Copy.xml in the archive for a empty squad.xml. The squad.xml in the archive is populated and is the one I'm currently using.

I have attached all the necessary files. Squadlogo.gif is the one shown on my website. Squadlogo.paa is the format used by ArmA 2.
The Bohemia Interactive Wiki has detailed information about the files here.
Anyone willing to make a admin-page that can edit the squad.xml content?

Merged on May 11 2012 at 11:13:22:
I just received this code from someone by email and it does the job and is efficient to use.
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
$fn = "c:/wamp/www/arma2squad/squad.xml";//url to the squad.xml file
if (isset($_POST['content']))
{
$content = stripslashes($_POST['content']);
$fp = fopen($fn,"w") or die ("Error opening file in write mode!");
fputs($fp,$content);
fclose($fp) or die ("Error closing file!");
}
?>

<form action="<?php echo $_SERVER["PHP_SELF"] ?>?page_id=8" method="post">
<textarea rows="40" cols="110" name="content"><?php readfile($fn); ?></textarea>
<br>
<input type="submit" value="Save">
</form>[/syntaxhighlighter]
Shadow_asp attached the following file:
arma_squadxml.7z [87.76kB / 185 Downloads]

0 replies

author Shadow_asp
forumModifications and Requests - 8
replies1 post
viewed1705 times
activeLast updated on 7 years ago

Related

Update XML file via Admin Area?
Started by
J
Jock - 2 posts
Learn PHP5 MYSQL CSS XHTML XML JS IN CLIPRZ
Started by
J
j8ur - 5 posts
Import tool for xml file
Started by
R
RoyalC - 1 post
Google Sitemap XML Infusion
Started by Arda Arda - 17 posts
How to import an xml file into personal pages?
Started by vaesir vaesir - 2 posts
Dynamic xml driving me nuts
Started by
L
lordpsyan - 1 post

Hot Questions

afoster
Help With Error Msg
afoster - 3 posts
M
Guestbook
MysticFire - 14 posts
NetriX
PolarFox
NetriX
PHP-Fusion US THEME
NetriX - 28 posts
Kevin Maschke
Tabbed panel
Kevin Maschke - 53 posts
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Users who participated in discussion: Shadow_asp