<
VAScroll XML
VAScroll XML is available to all administrators that have a site submitted to our website. The XML Feature can show all database details about your airline in just a few lines of code and can be placed on your website for stats or details. This includes how many total votes, hits, views you have on our site as well as we can show you your description and image as well as link. We have made this as simple as we possibly can and just requires a few moments of your time.

Step 1. You will need your Server ID this can be found if you click "Account" then "My Sites" & choose the airline in which you wish to use. (Note...you can use this feature on all your submitted sites) Once on your Airlines Page Look on the "Right Side" of your page under your Banner. Above "Add Comment" it will say "Your Server ID" only you can see this no-one else. This is your server ID Copy This you"ll need it.

VAScroll Example Table
Our VA Stats by VAScroll Cast Your Vote
Name
Votes
Hits

Below is the following code that will pull votes for your virtual airline, place Your Server ID you found in Step 1 in the following code below where it says "YOURSERVERID" place this snippett on your website or wherever to have it show your live count of votes. Above we have Placed An Exaple of our Code as well as a live version. You may also find other variables that can be pulled below.

<!--YOU CAN PLACE THIS ANYWHERE-->
 <?php 
$xml 
simplexml_load_file("https://vascroll.com/xml/xml.php");
?>

<!--PLACE THE SNIPPET BELOW WHERE YOU WANT # OF VOTES TO SHOW-->
<?php echo $xml->server_YOURSERVERID->votes?>

Optional Variables
Server Name $xml->server_YOURSERVERID->title
Total Votes $xml->server_YOURSERVERID->votes
Total Hits $xml->server_YOURSERVERID->hits
Server ID $xml->server_YOURSERVERID->serverid
Server Description $xml->server_YOURSERVERID->description
Website URL $xml->server_YOURSERVERID->link
Instagram Address $xml->server_YOURSERVERID->insta
Facebook Address $xml->server_YOURSERVERID->FACE
Twitter Address $xml->server_YOURSERVERID->TWEET
Youtube Address $xml->server_YOURSERVERID->utube
Server Slogan $xml->server_YOURSERVERID->slogan
Teamspeak Address $xml->server_YOURSERVERID->ts3
Discord Invite $xml->server_YOURSERVERID->discord
Twitch Username $xml->server_YOURSERVERID->twitch
JoinFS IP $xml->server_YOURSERVERID->joinfsip
JoinFS port $xml->server_YOURSERVERID->joinfsport

Code For Our Example Above

<!--start vascroll table-->
 <?php {
$xml simplexml_load_file("https://vascroll.com/xml/xml.php");
?>
<style>
th, td {
  text-align: left;
  padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
  background-color: #4CAF50;
  color: white;
}
A.vascroll {color:red;}
A.vascroll:link  {text-decoration: none; color: red;}
A.vascroll:visited {text-decoration: none; color: red;}
A.vascroll:hover {text-decoration: underline; color: red;}
A.vascroll:active {text-decoration: none; color: red;}
.btn {
display: inline-block;
padding: 9px 12px;
padding-top: 7px;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
color: #5e5e5e;
text-align: center;
vertical-align: middle;
cursor: pointer;
background-color: #d1dade;
-webkit-border-radius: 3px;
-webkit-border-radius: 3px;
-webkit-border-radius: 3px;
background-image: none !important;
border: none;
text-shadow: none;
box-shadow: none;
transition: all 0.12s linear 0s !important;
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.btn-primary {
color: #fff;
background-color: #428bca;
border-color: #357ebd;
}
</style>
<table style="width:40%">
  <tr>
    <th colspan="2">Our VA Stats by <a href="https://vascroll.com/" class="vascroll">VAScroll</a> 
    <a href="<?php echo $xml->server_YOURSERVERID->link ?>" role="button" style="float: right;" class="btn btn-primary btn-cons">
    Cast Your Vote</button></th>
  </tr>
  <tr>
    <td>Name</td>
    <td><?php echo $xml->server_YOURSERVERID->title?></td>
  </tr>
  <tr>
    <td>Votes</td>
    <td><?php echo $xml->server_YOURSERVERID->votes?></td>
  </tr>
  <tr>
    <td>Hits</td>
    <td><?php echo $xml->server_YOURSERVERID->hits?></td>
  </tr>
</table>
  <?php ?>
 <!--end vascroll table--> 
Language: english    Contact us at fsvascroll@gmail.com
Copyright © 2019 VAScroll. All rights reserved.
Page generated in 1574250726.2223 seconds.