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

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 / 195 Downloads]
Thread Information
Author
Replies
1 post
Views
1,764 times
Last Post
Last updated on 8 years ago
Related Threads
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
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.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Shadow_asp