vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBGamEz - game monitoring script (https://vborg.vbsupport.ru/showthread.php?t=244839)

CoZmicShReddeR 03-18-2014 10:16 PM

Download the standaone version of LGSL http://www.greycube.com/site/download.php?view.56

You need a database and php running like Xampp or Wamp for instance...


Goto vbulletin Settings: vBGamEz: Optimization (Last Input Change the Default to your own)
Point your vBGameZ http://server-ip/lgsl/lgsl_files/lgsl_feed.php

It's still more effective hosting your site and queries on the same machine.

kiD16 03-19-2014 10:52 AM

Install the LGSL on my dedicated server or in the domain ?

CoZmicShReddeR 03-20-2014 01:13 AM

Quote:

Originally Posted by kiD16 (Post 2488290)
Install the LGSL on my dedicated server or in the domain ?

Your dedicated server and point your vBgameZ to the link I described above using your Dedicated server IP Address

Bestrafung 04-30-2014 07:57 PM

We are using this mod on a competitive gaming site and semi-accurate player counts are extremely important for us. I've noticed that the server blocks do not update/refresh unless we manually open the server page and click the "Update" button. I've checked the script settings and the cache/update time is set to 1. Is there any way to make certain servers update on a certain interval. For example, can a cron be setup to update server ID 1,5,10,15 every x minutes?

I just need to know if there's an easy way to tie into the functions to do this or if someone has an idea of custom code for this. I'm going to look into it myself but my skills aren't the greatest. I'd appreciate any assistance.

CoZmicShReddeR 04-30-2014 08:15 PM

Quote:

Originally Posted by Bestrafung (Post 2495554)
We are using this mod on a competitive gaming site and semi-accurate player counts are extremely important for us. I've noticed that the server blocks do not update/refresh unless we manually open the server page and click the "Update" button. I've checked the script settings and the cache/update time is set to 1. Is there any way to make certain servers update on a certain interval. For example, can a cron be setup to update server ID 1,5,10,15 every x minutes?

I just need to know if there's an easy way to tie into the functions to do this or if someone has an idea of custom code for this. I'm going to look into it myself but my skills aren't the greatest. I'd appreciate any assistance.

It's really not built to force or auto update blocks... I think it would require extra coding to make individual blocks update...

The only other idea I can recommend and not 100% sure it will work is that you download stand alone version of LGSL from GreyCube.com and make custom blocks and use a java command to update or refresh the blocks... You can then create a custom link pointing back to the vBulletin page on your website...

Bestrafung 04-30-2014 09:47 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2495563)
It's really not built to force or auto update blocks... I think it would require extra coding to make individual blocks update...

The only other idea I can recommend and not 100% sure it will work is that you download stand alone version of LGSL from GreyCube.com and make custom blocks and use a java command to update or refresh the blocks... You can then create a custom link pointing back to the vBulletin page on your website...

Thanks for the reply. I've actually already got it figured out and am working on it. When on the server page it auto refreshes to the value I mentioned earlier. You also get the manual update button. I'm just going to make a minimal script and modify the javascript to run on page load instead of auto refresh so it can be run as a cron job. It should be fairly simple.

Bestrafung 05-01-2014 08:26 PM

Ok, I spoke too soon. I have a basic page with multiple servers on the same page. Auto refresh doesn't work but I'm not going to fix it because I don't want it to. Eventually I want it refresh on page load for cron jobs but also have the manual update buttons. In order to have multiple servers on the page I made a new JS function copying the existing but adding serverid where appropriate and then added the serverid to the HTML code. The first refresh works but the AJAX rewrites the HTML from id="vbg_updater9" back to id="vbg_updater" breaking any subsequent refresh attempts. If someone could point me in the correct direction I could continue on and would much appreciate it. Eventually once the barebones are worked out I'll make into an actual VB page + template. I just need to learn how to setup a VB settings to select which server IDs to use. If anyone is interested in the final script (if it's ever finished) let me know.

New JS function, I've colored the changes to make it easier:
Code:

function vbg_update_eventserver(serverid, isvb3)
{
    var sort_option = fetch_object('vbg_sort_players').value;
        var order_option = fetch_object('vbg_order_players').value;
       
    fetch_object('vbg_updater' + serverid).style.display = '';
    var sUrl = vbgamez_path;
    var postData = 'do=view&id=' + serverid + '&ajax=1&securitytoken=' + SECURITYTOKEN + '&sort_by_field=' + sort_option + '&order=' + order_option;
    var handleSuccess = function(o)
    {
        if(o.responseText !== undefined)
        {
              if(o.responseText == '') { return false; }

              fetch_object('vbg_serverinfo' + serverid).innerHTML = o.responseText;

        }
    }
    var handleFailure = function(o)
    {
        if(o.responseText !== undefined)
        {
            alert(o.responseText);
        }
    }
    var callback =
    {
        success: handleSuccess,
        failure: handleFailure,
        timeout: vB_Default_Timeout
    };
    YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
}

Example HTML block:
Code:

          <!-- Begin game block -->
          <div class="vbgamezlist_full">
            <div id="vbg_serverinfo9" class="block">
              <h2 class="blockhead">
                <img src="images/site_icons/network.png" alt="" />Server 1
                                <span id="vbg_updater9" style="display:none;"><img src="images/theme/misc/13x13progress.gif" alt="Updating..." title="Updating..."/></span>
                                <a href="javascript://"  onclick="vbg_update_eventserver(9);" class="blockheadinfo">Update</a>
                          </h2>
                          <div class="blockbody">
                                <ul class="blockrow">
                  <li class="sgicon floatcontainer owngroup">
                    <div class="leftcol" id="left_column" id="lightbox_leftcol">
                        <center>
                            <div class="sgicon" style="background-image:url(images/vbgamez/map_overlay.gif); background-repeat:no-repeat; background-position:center; width:135px; height:135px;">
                                <a href="/vbgamez.php?do=showmap&amp;type=cmw&amp;game=chivalrymedievalwarfare&amp;map=aoclts-moor_p&amp;status=1" rel="Lightbox_9" id="attachment9"><img alt="" class="sgicon" src="images/vbgamez/maps/cmw/aoclts_moor_p.jpg" height="135" width="135"/></a>
                            </div>
                        </center>
                   
                        <ul class="controls">
                            <li><a class="textcontrol" rel="nofollow" href="steam://run/219640/en/xxx.xxx.xxx.xxx:7777"><img src="images/site_icons/add.png" alt=""/> Logon to server&nbsp;&nbsp;</a></li>
                        </ul>
                    </div>
                   
                    <div class="maincol">
                        <p class="description">Server status: <b>Online</b></p>
                        <p class="description">Game: <a href="/vbgamez_search.php?do=dosearch&amp;map=aoclts-moor_p&amp;game=cmw&amp;additional_game=chivalrymedievalwarfare" rel="nofollow"><b>Chivalry: Medieval Warfare</b></a></p>
                        <p class="description">IP: <a href="steam://run/219640/en/xxx.xxx.xxx.xxx:7777"><b>xxx.xxx.xxx.xxx:7777</b></a>&nbsp;</p>
                        <p class="description">Map: <b>aoclts-moor_p</b></p>
                        <p class="description">Players: <b>0/3</b></p>
                        <p class="description">Rating: <b><span id="rating_9">0</span></b>
                            <a href="/vbgamez.php?do=ratingminus&amp;serverid=9" onclick="vbg_rate(9, 'minus'); return false;"><img style="vertical-align: middle;" src="/images/theme/cms/arrow_down.png" alt="" /></a>
                            <a href="/vbgamez.php?do=ratingplus&amp;serverid=9" onclick="vbg_rate(9, 'plus'); return false;"><img style="vertical-align: middle;" src="/images/theme/cms/arrow_up.png" alt="" /></a>
                        </p>
                        <p class="description">Views: <b>14</b></p>
                        <p class="description"><a href="javascript://" onclick="vbg_detalis(9);">View server settings</a></p>
                        <hr />
                        Now playing: <b>0</b>
                    </div>
                  </li>
                  <input type="hidden" name="vbg_sort_players" id="vbg_sort_players" value="name">
                  <input type="hidden" name="vbg_order_players" id="vbg_order_players" value="desc">
                </ul>
              </div>
            </div>
          </div>
          <!-- End game block -->


Archerus 05-06-2014 08:16 PM

Hello,

If you access the software LGSL, I allow you to access the mine, it is available to all.
It includes the latest version of VBGamez + Modifications for Minecraft/Teamspeak/Teamspeak3

URL: http://dedie.clan-rmg.com/lgsl/lgsl_files/lgsl_feed.php

Regards,

goarack 05-13-2014 07:55 PM

1 Attachment(s)
greetings i have this up on my site now showing no errors and everything seems to be working.

attached is my updated bootstrap.php
with edits i found in this thread

second i added this code to my vbulletin config.php under
<?php
define('SKIP_ALL_ERRORS', true);

maybe that will help some others
all the tabs are working as well.

to view
http://sinistergaming.com/vbgamez.php

also does anyone have the map images pack that went with this ?

CoZmicShReddeR 05-21-2014 12:20 AM

Quote:

Originally Posted by goarack (Post 2497651)
greetings i have this up on my site now showing no errors and everything seems to be working.

attached is my updated bootstrap.php
with edits i found in this thread

second i added this code to my vbulletin config.php under
<?php
define('SKIP_ALL_ERRORS', true);

maybe that will help some others
all the tabs are working as well.

to view
http://sinistergaming.com/vbgamez.php

also does anyone have the map images pack that went with this ?

All the edits were already in the final release I provided but you would have had to still use the skip errors for VB 4.2 and above ... Minecraft and TeamSpeak

http://www.cozworld.com/files/vb/mod..._4_English.rar


All times are GMT. The time now is 08:13 PM.

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.01230 seconds
  • Memory Usage 1,790KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete