XML Database League

Plugin to can display in a simple form with MyBB to generate a League Stats, Football Clubs / Leagues and Tournaments Information
Version: 1.2
Autor: DiegoPino
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 06.07.2015
Letzte Aktualisierung: 21.10.2015
Support: https://www.mybb.de/forum/thread-32574.html (1 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 5
XML Database League
Database with Extensible Markup Language (XML) And Extensible Stylesheet Language (XSL).

I will Like to Created a Database with Extensible Markup Language (XML) And Extensible Stylesheet Language (XSL).
The purpose is to develop a SimpleCode Database League to can display in a simple form to generate a League, Football Clubs / Leagues and Tournaments Information Like: Teams, Logos, Players

Database XML Schema Diagram:
  • League
    • Teams
    • Logo
    • Legends Players
    • City
    • Stadium
  • Standings



Note:
Based on my studies learning XML & XSL
github.com/Diego-Pino/XML-Database-League


XML & XSLT Example OnLine XML Database League Test

Download:
http://community.mybb.com/mods.php?action=view&pid=549

Version 1.2
  • Performance and update info plugin
  • Add Style font-family: Verdana
  • Logos teams Update in Folder images/xmleague
  • Add Code JavaScript
  • Add Template: Home » Template Sets » Global Templates » Add Template » xmleague_template
  • Video Tutorial: Add Template » xmleague_template

Version 1.1:
  • Add Image to Teams of Premier League Database in file .Xml
  • Created Stylesheet to Display Images in file .Xsl
  • Created Folder images
  • Premier League Base Update with Info

Version 1.0:
  • Code Base development in XML & XSLT
  • Premier League Base
  • Schema Xml
  • Plugin Codebase development in MyBB
  • Templante MyBB

MyBB Add Templante Code XML Database League.

Code
<html>
<head>
<title>XML Database League</title>
{$headerinclude}

<style>
table, th, td {
 border: 1px solid black;
 border-collapse:collapse;
 background-color: #E1EEF4;

}

th, td {
 padding: 5px;
 font-family: Verdana ;
 font-size: 18px;
 line-height: 15.4px;

}

p    {color:green}

</style>

<script type="text/javascript">
           if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
               xmlhttp = new XMLHttpRequest();
           }
           else {// code for IE6, IE5
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
           }
           xmlhttp.open("GET", "xmleague.xml", false);
           xmlhttp.send();
           xmlDoc = xmlhttp.responseXML;
           var x = xmlDoc.getElementsByTagName("Team");

           function displayXMLeague(i) {
               var leagueElement = x[i];
               Team_Name = (leagueElement.getElementsByTagName("Team_Name")[0].childNodes[0].nodeValue);
               description = (leagueElement.getElementsByTagName("description")[0].childNodes[0].nodeValue);
               City = (leagueElement.getElementsByTagName("City")[0].childNodes[0].nodeValue);
               Stadium = (leagueElement.getElementsByTagName("Stadium")[0].childNodes[0].nodeValue);

               var players = leagueElement.getElementsByTagName("first_name");
               var player;
               var playerString;
               for(var index = 0; index < players.length; index++)
               {
                   player = players[index];
                   if (index == 0)
                   {
                       playerString = player.childNodes[0].nodeValue;
                   }
                   else
                   {
                       playerString = (playerString + "<br />" + player.childNodes[0].nodeValue);
                   }

               }

               Players = playerString;
               image = (leagueElement.getElementsByTagName("image")[0].childNodes[1].childNodes[0].nodeValue) ;

               txt = "<b>Team_Name:</b> " + Team_Name + "<br><b>description:</b> " + description + "<br><b>City:</b> " + City + "<br><b>Stadium:</b> " + Stadium + "<br><b>Players:</b> " + Players + "<br><b>image:</b>" + image;
               document.getElementById("showXMLeague").innerHTML = txt;
           }

           displayXMLeague(0);
       </script>
   
</head>
<body>
{$header}

<h2>List of Premier League clubs </h2>
<p><i>Update with More <ins>Teams Clubs And Leagues</ins>... for the next version</i></p>
 

<div id='showXMLeague' style="font-family:verdana; font-size: 18px;">Click on a Team Club to display information.</div><br>
<script>
document.write("<table border='2'>");
for (var i=0;i<x.length;i++)
 {
 document.write("<tr onclick='displayXMLeague(" + i + ")'>");
 document.write("<td>");
 document.write(x[i].getElementsByTagName("Team_Name")[0].childNodes[0].nodeValue);
 document.write("</td><td>");
 document.write(x[i].getElementsByTagName("City")[0].childNodes[0].nodeValue);
 document.write("</td></tr>");

 }
document.write("</table>");
</script>
   
{$footer}
</body>
</html>

[Video: https://youtu.be/QsQ2GXnFLM0]

How install XML Database League:
- Actived The Plugin in ACP

Plugin Test OnLine:
http://mybb.pinostudio1.com/xml-database-league.php

Download:
http://community.mybb.com/mods.php?action=view&pid=549

Support MyBB Plugin:
http://community.mybb.com/thread-172852.html


Collaborator and suggestions Are Welcome…

Quelle: XML Database League bei MyBB.com

Ähnliche Erweiterungen

Impressum 1.2 von Chrissi für MyBB 1.2.x
Hi, Einen Bug gibt es noch: Der Impressum Link wird beim Deaktivieren nicht vollständig entfernt, wenn das ein Coder beheben könnte wäre das super...

261 Downloads
Group Rank 1.2
Group Rank 1.2 1.2 von Sukanjan.K für MyBB 1.6.x
High quality animated Rank Images by yuvapix.com

26 Downloads
Professional database management (update 1.1)
Professional database management (update 1.1) 1.1 von hamed.gh für MyBB 1.6.x
Easy access to the database and perform all such orders on the panel's backup.Import database from a full database and easy Study. Access to all databases in the database, and ....

29 Downloads
HideUntilPost
HideUntilPost 1.2 von Sergio Montoya für MyBB 1.6.x
Hides text, links and/or attachments from posts until the user makes a post on the thread.

13 Downloads
ThreadViewer
ThreadViewer 1.2 von Jockl für MyBB 1.8.x
Erstellt eine Liste der User, die sich einen Thread angesehen haben / list of users that viewed a specific thread

66 Downloads