Plugin Directory

Changeset 1011840


Ignore:
Timestamp:
10/22/2014 12:50:25 AM (11 years ago)
Author:
rainbow-six3
Message:

tagging version 1.3

Location:
counter-strike-server-viewer
Files:
6 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • counter-strike-server-viewer/trunk/Readme.txt

    r1011839 r1011840  
    1818With these Plugin cou can display your Counter Strike Source - or Counter Strike Global Offensive Serverinformation yon your Wordpress-Hompage.
    1919
    20 It is easy to activate. You must onyl Downlaod the Plugin and place the String '[csviewer ip="mydomain.com" port="26015"]'
     20It is easy to activate. You must only Downlaod the Plugin and place the String '[csviewer ip="mydomain.com" port="26015"]'
    2121on your Wordpress Page or Article,
    2222
     
    3030
    3131Function:
    32 Auto-connect by klicking on the IP. (steam Protocoll must be activated)
     32Auto-connect by clicking on the IP. (steam Protocol must be activated)
    3333
    3434Display following Information:
     
    4141* Mod (CS:S or CS:GO)
    4242
    43 * Password (Yes or No)
     43* Password ('Yes' or 'No password' or the password)
    4444
    4545* Ping
     
    52522. Activate the plugin through the 'Plugins' menu in WordPress
    53533. Place `[csviewer ip="mydomain.com" port="26015"]` on any Wordpress Page or Article and change the ip and the port.
     544.(optional) Password
     55    * Show password and add it to the autoconnect-url, so now password request from steam will displayed.
     56        `[csviewer ip="mydomain.com" port="26015" password="mypassword"]`
     57    * You can add the password to the autoconnect-url without displaying the password on the website.(In the HTML you see the password anyway!)
     58        `[csviewer ip="mydomain.com" port="26015" password="mypassword" hidepassword="true"]`
    5459
    55 4.(optional) add this CSS Lines in to the CSS from your Template
     60
     615.(optional) add this CSS Lines in to the CSS from your Template
    5662
    5763    table.server_data { width:60%; max-width: 280px; float:left; margin: 10px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
     
    120126* Resolve problem "PHP error:  Cannot modify header information - headers already sent by"
    121127* Tested with Wordpress 4.0
     128
     129= 1.2 =
     130* Show Password
  • counter-strike-server-viewer/trunk/csviewer.php

    r1011817 r1011840  
    33    Plugin Name: csViewer
    44    Plugin URI: http://rainbow-six3.com/blog/allgemein/counter-strike-server-viewer/
    5     Description: CS:S and CS:GO Viwer
    6     Version: 1.1
     5    Description: CS:S and CS:GO Viewer
     6    Version: 1.3
    77    Author: Reto Arnold
    88    URI: http://rainbow-six3.com
     
    3838        if($serverInfo['password'] == 1){
    3939            $serverInfo['password'] = 'Yes';
    40         }
     40            if(array_key_exists('password', $atts )){
     41                $serverInfo['password'] = $atts['password'];
     42                if(array_key_exists('hidepassword', $atts ) and $atts['hidepassword'] == 'true'){
     43                    $serverInfo['password'] = 'Yes';
     44                }
     45            }
     46        }
    4147        else {
    42             $serverInfo['password'] = 'No';
     48            $serverInfo['password'] = 'No password';
    4349        }
    4450        $html = "<div ><table class=\"server_data\">\n";
    4551        $html .= "<tbody><tr><td class=\"strong\">Servername:</td> <td id=\"address\" class=\"loading last\">".$serverInfo['hostname']."</td></tr>\n";
    46         $html .= "<tr><td class=\"strong\">Address:</td> <td id=\"address\" class=\"loading last\"><a href=\"steam://connect/".$atts['ip'].":".$atts['port']."\">".$atts['ip'].":".$atts['port']."</a></td></tr>\n";
     52        $html .= "<tr><td class=\"strong\">Address:</td> <td id=\"address\" class=\"loading last\"><a href=\"steam://connect/".$atts['ip'].":".$atts['port']."/".$atts['password']."\">".$atts['ip'].":".$atts['port']."</a></td></tr>\n";
    4753        $html .= "<tr><td class=\"strong\">Map:</td> <td id=\"map\" class=\"loading last\">".$serverInfo['map']."</td></tr>\n";
    4854        $html .= "<tr><td class=\"strong\">Mod:</td> <td id=\"desc\" class=\"loading last\">".$serverInfo['desc']."</td></tr>\n";
Note: See TracChangeset for help on using the changeset viewer.