Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 27

151.80.x.x lgsl
18.191.x.x news
219.140.x.x news
3.80.x.x forum
35.192.x.x forum
40.77.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x user
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
5.196.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum

Last Seen

»Stefan Wed 17:17
Gagi2 Tue 04:39
tltneon Wed 17:22
Nouton^ Wed 20:07
mrstipfan Wed 10:54

Newest Members

Forums
Search servers
Oscar211
Sat Oct 19 2013, 05:53AM
Posts: 5
Joined: Fri Aug 02 2013, 07:51AM
Registered Member #7780
Hello

I would like to do searches by name, map, ip
just do not know how to do it when it is not in the database
advise anyone?

It would be enough to write what and how

Thank you and I apologize for my bad English
game_stats.eu
Sat Oct 19 2013, 12:20PM

Posts: 15
Joined: Sun Jan 13 2013, 08:23AM
Registered Member #7520
And I'm looking for the same, any ideas?
Dodgeitorelse
Sat Oct 19 2013, 10:35PM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
I had started this a long time ago but not sure if I finished it or not but any how is this what you are talking about? http://chevys-place.game-server.cc/gsreaders/compact_block_list2.php

table headers are sortable too ... just click 'em
just a simple edit here and there, I think it came from dynamic drive site lol

lack of effort on your part requires less effort on my part
Website
lycanwrath
Fri Nov 22 2013, 06:52AM
Posts: 18
Joined: Tue Jun 04 2013, 04:43AM
Registered Member #7741
Dodgeitorelse wrote ...

I had started this a long time ago but not sure if I finished it or not but any how is this what you are talking about? http://chevys-place.game-server.cc/gsreaders/compact_block_list2.php

table headers are sortable too ... just click 'em
just a simple edit here and there, I think it came from dynamic drive site lol


Looks nice!! Mind sharing your code with us please?
Website
Dodgeitorelse
Fri Nov 22 2013, 09:40AM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457



Be advised this code could probably use some cleaning up but it works. I did this when I first started learning to code so forgive the sloppiness.

here is what I have .....
file to call lgsl_list2.php (modified lgsl_list) and lgsl_list_bar (modified lgsl_list) ....

<html>
<head>

<meta http-equiv="refresh" content="165" > 



<style type="text/css">



.showchevy_1{ 
display: none;
}
.showchevy:hover .showchevy_1{
position: relative;
display : block;
}


a:link
{
  color:Lightblue;
}

a:visited
{
  color:lightblue;
}

a:hover
{
  color:orange;
}

body 

   background-color:green;


table {
    border-width: 0px;
    border-spacing:10px;
    border-style: double;
    border-color: darkslategrey;
    border-collapse: separate;
    background-color: transparent;
    }

table tr

{
       border-width: 1px;
       padding: 2px;
       border-style: ridge;
       border-color: black;
       font-size: medium;
       color: lightblue;

 }


table td

{
    border-width: 1px;
    border-spacing:2px;
    padding: 3px;
    border-style: inset;
    border-color: black;
    background-color: #2F4F4F;
    font-size: small;
    color: lightgreen;
}

table td .hiddenfile

{
    border-width: 0px;
    border-spacing:12px;
    padding: 3px;
    border-style: inset;
    border-color: black;
    background-color: #2F4F4F;
    font-size: small;
    color: lightgreen;
}


</style>
<script src="js/jquery.js" type="text/javascript"></script>
  <script src="js/jquery.dataTables.min.js" type="text/javascript"></script>
  <link href="css/table.css" rel="stylesheet" type="text/css" media="print, projection, screen" />
  <script type="text/javascript">
    $(document).ready(function ()
    {
      $("#chevysmaplist").dataTable({
        "bPaginate": false,
        "bAutoWidth": false,
        "aaSorting": [[ 4, "desc" ]],
        "aoColumns": 
          [
            { "bSortable": true }, // disable sorting of first column in table
            null,
            null,
            null,
            null,
            null
          ]
      })
    });
  </script>


</head>
<body >


<?php




echo"<br />";    
echo
"<br />";
echo
"<br />";
echo
"<br />";

 echo (
"<div style='text-align:center'><font color=lightgreen size=6>Our AA2 Custom Servers</font><br /></div>");
  
  
  
    
global 
$output;
 
$output "";
 require 
"lgsl/lgsl_files/lgsl_list_bar.php";
 echo 
$output;
 unset(
$output);
    
 
 
 
 echo 
"<div align='center'>";
 global 
$output$lgsl_zone_number;
 
$lgsl_zone_number 2;
 
$output "";
 require 
"lgsl/lgsl_files/lgsl_list2.php";
 echo 
$output;
 unset(
$output);

 
 global 
$output;
 
$output "";
 require 
"lgsl/lgsl_files/lgsl_list_bar.php";
 echo 
$output;
 unset(
$output);
 
 echo 
"</div>";
 
 
?>

</body>
</html>



and then code inside the file lgsl_list2.php (modified lgsl_list.php)


<?php

 
/*----------------------------------------------------------------------------------------------------------\
 |                                                                                                            |
 |                      [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ]                       |
 |                                                                                                            |
 |    Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org)    |
 |                                                                                                            |
 |         Modified lgsl_list.php by Dodgeitorelse at Greycube.com                                                |
 |                                                                                                            |
 \-----------------------------------------------------------------------------------------------------------*/

//------------------------------------------------------------------------------------------------------------+

 
require "lgsl_class.php";
 
  
$server_list lgsl_query_group();
  
$server_list lgsl_sort_servers($server_list);

//------------------------------------------------------------------------------------------------------------+

    
    
 
 
   
  
  
$output .= "
  <div style='text-align:center'>
    <table id='chevysmaplist' style='margin:auto' cellpadding='4' cellspacing='2'>
    <thead>
      
      <th>I/O</th>
      
      <th>IP</th>
      
      <th>Name</th>
      
      <th>Map</th>
      
      <th>Players</th>
      
      <th>Details</th>
      "
;

    foreach (
$server_list as $server)
    {
      
$misc   lgsl_server_misc($server);
      
$server lgsl_server_html($server);

     
      
$output .= "
      <tr style='"
.lgsl_bg()."; table-layout:fixed'>

        <td style='white-space:nowrap; text-align:center'>
          <img alt='' src='
{$misc['icon_status']}' title=''/>
          <img alt='' src='
{$misc['icon_game']}'   title='{$misc['text_type_game']}'/>
        </td>

        <td title='IP and Port' style='text-align:right'>
          
{$server['b']['ip']}:{$server['b']['c_port']}
          </td>

        <td title='Server name as it is in database' style='padding:0px; text-align:center'>
              <div style='left:0px; right:0px; top:0px; bottom:0px; width:
{$zone_width}; white-space:nowrap; overflow:hidden; text-align:center'>
               
{$server['o']['comment']}
              </div>
            </td>
        </td>

        <td style='white-space:nowrap; text-align:left'>
          
{$server['s']['map']}
        </td>

        <td style='white-space:nowrap; text-align:right'>
          
{$server['s']['players']} / {$server['s']['playersmax']}
        </td>

        <td style='white-space:nowrap; text-align:center'>"
;

        if (
$lgsl_config['locations'])
        {
          
$output .= "
          <a href='"
.lgsl_location_link($server['o']['location'])."' style='text-decoration:none'>
            <img alt='' src='
{$misc['icon_location']}' title='{$misc['text_location']}' style='vertical-align:middle; border:none' />
          </a>"
;
        }

        
$output .= "
          <a href='"
.lgsl_link($server['o']['id'])."' style='text-decoration:none'>
            <img alt='' src='
{$misc['icon_details']}' title='{$lgsl_config['text']['vsd']}' style='vertical-align:middle; border:none' />
          </a>
        </td>

      </tr>
      </thead>"
;
    }

    
$output .= "
    </table>
  </div>"
;



and then lgsl_list_bar.php (modified lgsl_list)



<?php

  
/*----------------------------------------------------------------------------------------------------------\
 |                                                                                                            |
 |                      [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ]                       |
 |                                                                                                            |
 |    Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org)    |
 |                                                                                                            |
 |         Modified lgsl_list.php by Dodgeitorelse at Greycube.com                                                |
 |                                                                                                            |
 \-----------------------------------------------------------------------------------------------------------*/

//------------------------------------------------------------------------------------------------------------+

 
require "lgsl_class.php";
 
 
$request     = empty($lgsl_config['players'][$lgsl_zone_number]) ? "s" "sep";
  
$server_list lgsl_query_group( array( "request"=>$request"zone"=>$lgsl_zone_number ) );
  
$server_list lgsl_sort_servers($server_list);


 
$server_list lgsl_query_group();
  
//------------------------------------------------------------------------------------------------------------+

  
 
if ($lgsl_config['list']['totals'])
  {
    
$total lgsl_group_totals($server_list);
    
$pm $total['playersmax'];
    
$p $total['players'];
    
$roomfor $pm $p;
  
  
    
$allservers "
            <div class='showchevy'>
                     
          Total 
{$lgsl_config['text']['tns']} 
          <font color='lightblue'>
{$total['servers']}       </font>
                            
                    <div style='float:right;' class='showchevy_1'>
 
<iframe src='lgsl/lgsl_files/lgsl_all_servers.php' frameBorder='0'></iframe>

                    </div></div>"
;
                    
    
$onlineservers "
            <div class='showchevy'>
                     
          Total 
{$lgsl_config['text']['tns']} 
          <font color='lightblue'>
{$total['servers_online']}       </font>
                            
                    <div style='float:right;' class='showchevy_1'>
 
<iframe src='lgsl/lgsl_files/lgsl_online_servers.php' frameBorder='0'></iframe>

                    </div></div>"
;
                    
                    
    
    
    
    
$currentmia "
            <div class='showchevy'>
                    
          <font color='orange'>MIA</font>: 
          <font color='orange'>
{$total['servers_offline']}    </font>
                            
                    <div style='float:right;' class='showchevy_1'>
 
<iframe src='lgsl/lgsl_files/lgsl_mia_servers.php' frameBorder='0'></iframe>

                    </div></div>"
;
        

    
$output .= "
    
    <div>
      <br />
      
    </div>
    
    <div style='text-align:center'>
    
     
      <table class='listtable' id='list_table' style='margin:auto' cellpadding='4' cellspacing='2'>
        <tr>
          
          <td>
               
          Total 
{$lgsl_config['text']['tns']} 
          <font color='lightblue'>
{$total['servers']}       </font>
          </td>
          
          <td> 
              
          Total 
{$lgsl_config['text']['tns']} 
          <font color='lightblue'>
{$total['servers_online']}       </font>
          </td>
          
          <td title= '' >
             
          <font color='orange'>MIA</font>: 
          <font color='orange'>
{$total['servers_offline']}    </font>
          </td>
          
          <td>    
          Deployed: 
          <font color='yellow'>
{$total['servers_deployed']}    </font>
          </td>
          
          <td>    
          
{$lgsl_config['text']['tnp']} 
          <font color='lightblue'>
{$total['players']}       </font>
          </td>
          
          <td>    
          
{$lgsl_config['text']['tmp']} 
          <font color='lightblue'>
{$total['playersmax']}    </font>
          </td>
          
          <td>    
          Players <font color='orange'>MIA</font>:  
          <font color='orange'>
$roomfor </font>   
          </td>
          
          </tr>
          
      </table>
      
    </div>"
;
  }


the jquery files http://chevys-place.nl/gsreaders/js/ put them in same place as main folder containing lgsl for example, if you have www/gsreaders/lgsl then these js files will be located at www/gsreaders/js

good luck




lack of effort on your part requires less effort on my part
Website
lycanwrath
Wed Nov 27 2013, 11:36AM
Posts: 18
Joined: Tue Jun 04 2013, 04:43AM
Registered Member #7741
Thanks for this man
Will definely have a look into that as soon as I find some time :):)
Website
Dodgeitorelse
Wed Nov 27 2013, 09:17PM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
notice one server always shows in the seach results, this was so our server always showed, it can be removed from the <thead> section of the table. if you have any troubles let me know, this is with SA 5.8

lack of effort on your part requires less effort on my part
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org