Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2010, 11:26 AM
The_Rayman's Avatar
The_Rayman The_Rayman is offline
 
Join Date: Jul 2005
Location: Amsterdam - Netherlands
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [REQ] Help needed Live Game Server List for CMS

Hi All,

In the past I adjusted in cooperation with Rene Wiesental some scripts to get a rFactor server monitor working on the vBa CMS.

Now, we have moved on to VB4 with CMS. Unfortunately... this widget thing of VBCMS is totally different from the vBa CMS... I cannot get the monitor to funtion. Therefor, I checked some alternatives. One is the Live Gameserver List from GreyCube.com by Richard Perry.

This servermonitor is more advanced, as it has more option than just the rFactor servermonitor option, also COD and many other shooters and MMO are supported.

Now, I'd like to have the html code displayed in a nice widget on the frontpage. Simple info, like serverlocation, etc. When clicked, a new screen opens with detailed info on the server and players.

Unfortunately I do not have the knowledge to make a widget like that... is there anyone here who can assist me and make many others happy?

Thanks!
Reply With Quote
  #2  
Old 02-24-2010, 08:40 PM
Weetabix Weetabix is offline
 
Join Date: Feb 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very simple matey

Install lgsl as normal, then edit your lgsl_list.php to give the table you want. I use this;

Code:
<?php

  require "lgsl_class.php";

  $server_list = lgsl_query_cached_all("s");
  $server_list = lgsl_sort_servers($server_list);

  $output .= "
  <div style='text-align:center'>
    <table cellpadding='4' cellspacing='2' style='margin:auto'>";

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

      $output .= "
    <tr>

        <td height='25'; width='35'; align='left'>
          <img alt='{$server['s']['map']}' src='{$misc['icon_game']}'/>
        </td>

        <td width='200'; title='{$server['b']['ip']}:{$server['b']['c_port']}' style='text-align:left'>
          <div style='width:100%; overflow:hidden; height:1.3em'>
          {$misc['name_filtered']}
          </div>
        </td>

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

      </tr>";
    }

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

  if ($lgsl_config['list']['totals'])
  {
    $total = lgsl_cached_totals();

    $output .= "
    <div>
      <br />
    </div>
    <div style='text-align:center'>
      <table cellpadding='4' cellspacing='4' style='margin:auto'>
        <tr style='".lgsl_bg()."'>
          <td> {$lgsl_config['text']['tns']} {$total['servers']}    </td>
          <td> {$lgsl_config['text']['tnp']} {$total['players']}    </td>
          <td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>
        </tr>
      </table>
    </div>";
  }

?>

then make a php widget;

Code:
if (isset($_GET['s']) && is_numeric($_GET['s']))
  {
    require "lgsl/lgsl_files/lgsl_details.php";
  }
  elseif (isset($_GET['s']) && $_GET['s'] == "add")
  {
    require "lgsl/lgsl_files/lgsl_add.php";
  }
  else
  {
    require "lgsl/lgsl_files/lgsl_list.php";
  }
YOUR PATHS

Demo
Reply With Quote
  #3  
Old 03-11-2010, 11:57 AM
jtf-2caspy jtf-2caspy is offline
 
Join Date: Feb 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great job.. is there any way to get the players name to show that are connected to the servers ?
Reply With Quote
  #4  
Old 03-12-2010, 10:49 PM
Weetabix Weetabix is offline
 
Join Date: Feb 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not in the widget. You could make the server name a clickable link to the server's full page view by editing the lgsl_list.php

edit> some clever boffin at greycube made a flash interface for LGSL which has player info on it. Should be easy enough to stick that in a widget. LINKY
Reply With Quote
  #5  
Old 03-18-2010, 06:45 PM
karkey karkey is offline
 
Join Date: Feb 2010
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Flash is bad for widgets if a player joins it throws the alinement's out

We are looking for
To just add the player that are in game into this coding, which i have tried unsuccessfully

I currently have
http://jtf-2.com/lgsl/
but again we would like to show the player in game on this page also

any ideas peeps
Reply With Quote
  #6  
Old 03-24-2010, 11:40 AM
The_Rayman's Avatar
The_Rayman The_Rayman is offline
 
Join Date: Jul 2005
Location: Amsterdam - Netherlands
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome,

Works perfect! Adjusted the lgsl_list.php to my wishes
Shows up on the site, needed a few tweaks in the css code, but now all looks fine.

Thanks for the help!
Reply With Quote
  #7  
Old 05-14-2010, 04:36 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The_Rayman View Post
Awesome,

Works perfect! Adjusted the lgsl_list.php to my wishes
Shows up on the site, needed a few tweaks in the css code, but now all looks fine.

Thanks for the help!
care to share when you are done?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04074 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete