Plugin Directory

Changeset 507234


Ignore:
Timestamp:
02/19/2012 07:39:51 AM (14 years ago)
Author:
Sinopa
Message:

removed some bugs

Location:
game-server-tracker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • game-server-tracker/trunk/index.php

    r457348 r507234  
    22/*
    33Plugin Name: Game Server Tracker
    4 Plugin URI: http://hannawerner.com/wordpress/game-server-tracker-version-1-1/
    5 Description: Gets current stats of a Game Server from GameTracker.com and displays them in the sidebar. The Game Server Tracker supports all games supported by GameTracker.com.
    6 Version: 1.1
     4Plugin URI: http://hannawerner.com/wordpress/game-server-tracker-version-1-5/
     5Description: Gets current stats of a Game Server from GameTracker.com and displays them in the sidebar. The Game Server Tracker supports all games that are supported by GameTracker.com.
     6Version: 1.5
    77License: GPLv2
    88Author: Hanna Camille Werner
     
    1111
    1212// Inspired by the built-in WP_Widget_Text class
     13
     14$alttitle = $instance['alttitle'];
    1315
    1416class HCW_Gameserver_Tracker extends WP_Widget {
     
    2426        $serverip = $instance['serverip'];
    2527       
    26     echo $before_widget;
     28    echo $before_widget . $before_title;
     29        echo $instance['alttitle'];
     30        echo $after_title;
    2731
    2832    ?>
     
    5559
    5660    echo '<ul>';
    57     echo '<li><strong>';
    58     echo $instance['alttitle'];
    59     echo '</strong><br /><strong>Game: </strong>';
     61    echo '<li><strong>Game: </strong>';
    6062    echo $matchesgame[2];
    61     echo '<br /><strong>Server Status: </strong>';
     63    echo '</li><li><strong>IP: </strong>';
     64    echo $serverip;
     65    echo '</li><li><strong>Server Status: </strong>';
    6266    echo $matchesalive[2];
    63     echo '<br /><strong>Players: </strong>';
     67    echo '</li><li><strong>Players: </strong>';
    6468    echo $matchesnumplayers[2];
    6569    echo '/';
    6670    echo $matchestotalplayers[2];
    67     echo '<br /><strong>Bots: </strong>';
     71    echo '</li><li><strong>Bots: </strong>';
    6872    echo $matchesbots[2];
    69     echo '<br /><strong>Map: </strong>';
    70     echo $matchesmap[2];
     73    echo '</li><li><strong>Map: </strong>';
     74   
    7175?>
    72 <a class="moreserverinfo" href="javascript:ReverseDisplay('<?php echo $serverip; ?>')"><strong>&darr;</strong></a>
    73 <div class="content-sidebar" id="<?php echo $serverip; ?>" style="display:none;">
     76<a class="moreserverinfo" href="javascript:ReverseDisplay('<?php echo $serverip; ?>')"><?php echo $matchesmap[2]; ?> &raquo;</a>
     77<div class="content-sidebar" id="<?php echo $serverip; ?>" style="display:none; padding-top:5px;">
    7478    <?php echo $matchesimgmap[2]; ?>
    7579</div>
     
    109113            <label for="<?php echo $this->get_field_id('serverip'); ?>">
    110114                 &nbsp;<?php _e('Server IP and Port:'); ?>
    111                 <input class="widefat" id="<?php echo $this->get_field_id('serverip'); ?>" name="<?php echo $this->get_field_name('serverip'); ?>" type="text" value="<?php echo $instance['serverip']; ?>" /><br />&nbsp;<small>e.g. 127.0.0.1:27960</small><br />
     115                <input class="widefat" id="<?php echo $this->get_field_id('serverip'); ?>" name="<?php echo $this->get_field_name('serverip'); ?>" type="text" value="<?php echo $instance['serverip']; ?>" /><br />&nbsp;<small>e.g. 213.239.207.85:27960</small><br />
    112116            </label>
    113117        </p>
  • game-server-tracker/trunk/readme.txt

    r457348 r507234  
    11=== Plugin Name ===
    22Contributors: Sinopa
    3 Tags: games, servers, details, tracker
     3Tags: games, details, tracker, maps
    44Requires at least: 3.0
    55Tested up to: 3.2.1
    6 Stable tag: 1.1
     6Stable tag: 1.5
    77
    88Gets current stats of a Game Server from GameTracker.com and displays them in the sidebar.
     
    3333== Upgrade Notice ==
    3434
     35= 1.5 =
     36* February 19, 2012 - 1.3 release.
     37* Removed some minor bugs.
     38
     39
    3540= 1.1 =
    3641* October 30, 2011 - 1.1 release.
     
    4247== Screenshots ==
    4348
    44 Screenshots can be found at http://hannawerner.com/wordpress/game-server-tracker-version-1-1/
     49Screenshots and demo can be found at http://hannawerner.com/wordpress/game-server-tracker-version-1-1/
    4550
    4651== Donate ==
Note: See TracChangeset for help on using the changeset viewer.