1
pdaddict
Re: Need help with FatalQuery after valve update
  • 2005/6/21 11:39

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


http://ekstergans.net/files/madquery.zip

replace XOOPS_ROOT_PATH/modules/fatalquery/madquery.php with the file in the zip.

This will break all support for older servers (won, outdated steam), but it adds some support for source.

Edit: patch added to the project's files section on dev.xoops.org



2
pdaddict
Re: Need help with FatalQuery after valve update
  • 2005/6/20 22:09

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1





3
pdaddict
Re: how can i use this php code in a block
  • 2005/3/24 13:16

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


include XOOPS_ROOT_PATH.'/scroll.php';


<{$xoops_url}> doesn't work in php-blocks because it's a smarty-tag. XOOPS_ROOT_PATH, on the other hand, is defined in mainfile.php, which is included in every page you view => accessible in custom blocks.



4
pdaddict
Re: Loading Please Wait
  • 2005/3/5 22:23

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


theme.html :
<body onLoad="StatusLauftext();return true">
<!-- 
Load indicatior -->
<
div id="waitDiv" style="position:absolute; right:0%; top:50%; visibility:hidden; text-align:center;">
    <
table cellpadding="3" cellspacing="3" class="waitbox"><tr>
<
td align="center">
<
b><big>Loading...</big></b><br />
<
img src="<{$xoops_imageurl}>/images/await.gif" alt="" />
<
br />Please Wait.</td></tr>
</
table>    
    <
script type='text/javascript'>
    <!--
    
toggle_visibility('waitDiv'1);
    
//-->
    
</script>

</
div>
<!-- 
End Load Indicator -->


And right before </body>
<!-- Page Loaded Indicator Stop -->
    <
script type='text/javascript'>
    <!--
    
toggle_visibility('waitDiv'0);
    
//-->
    
</script>
<!-- 
End -->



5
pdaddict
Re: who's online
  • 2005/2/28 21:34

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


System Admin -> Blocks : Who's Online



6
pdaddict
Re: FatalQuery Server Query module RC1
  • 2005/2/1 14:59

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


It works when I test locally. Overwrite your block-file with this one



7
pdaddict
Re: FatalQuery Server Query module RC1
  • 2005/1/31 22:45

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


you missed this line
$pics_dir '/modules/fatalquery/'.getmoduleoption('map_pic_dir');



8
pdaddict
Re: FatalQuery Server Query module RC1
  • 2005/1/31 15:33

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


This one works ...

$pics_dir '/modules/fatalquery/'.getmoduleoption('map_pic_dir');
        
$pic $server_var['map']."".getmoduleoption('mappic_ext');
        
$server_var['map_pic'] = ($server_var['map'] && is_file(XOOPS_ROOT_PATH.$pics_dir.$pic)) ? XOOPS_URL.$pics_dir.$pic XOOPS_URL.$pics_dir.getmoduleoption('default_pic_name').getmoduleoption('mappic_ext') ;


after

if($server->mMap() == '0'){
            
$server_var['map'] ='';
        }else{
            
$server_var['map'] = shorten($server->mMap());
        }


and

function getmoduleoption($option$repmodule='fatalquery')
{
    global 
$xoopsModuleConfig$xoopsModule;
    static 
$tbloptions= Array();
    if(
is_array($tbloptions) && array_key_exists($option,$tbloptions)) {
        return 
$tbloptions[$option];
    }

    
$retval=false;
    if (isset(
$xoopsModuleConfig) && (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $repmodule && $xoopsModule->getVar('isactive')))
    {
        if(isset(
$xoopsModuleConfig[$option])) {
            
$retval$xoopsModuleConfig[$option];
        }

    } else {
        
$module_handler =& xoops_gethandler('module');
        
$module =& $module_handler->getByDirname($repmodule);
        
$config_handler =& xoops_gethandler('config');
        if (
$module) {
            
$moduleConfig =& $config_handler->getConfigsByCat(0$module->getVar('mid'));
            if(isset(
$moduleConfig[$option])) {
                
$retval$moduleConfig[$option];
            }
        }
    }
    
$tbloptions[$option]=$retval;
    return 
$retval;
}


at the end of the file, before ?>



9
pdaddict
Re: FatalQuery Server Query module RC1
  • 2005/1/31 11:57

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


In blocks/fatalquery.php, add
$pics_dir '/modules/fatalquery/'.$xoopsModuleConfig['map_pic_dir']."/";
        
$pic $server_var['map']."".$xoopsModuleConfig['mappic_ext'];
        
$server_var['map_pic'] = (is_file(XOOPS_ROOT_PATH.$pic_path.$pic)) ? XOOPS_URL.$pic_path.$pic XOOPS_URL.$pic_path.$xoopsModuleConfig['default_pic_name'].$xoopsModuleConfig['mappic_ext'] ;


after
if($server->mMap() == '0'){
            
$server_var['map'] ='';
        }else{
            
$server_var['map'] = shorten($server->mMap());
        }


And add <img src="<{$server.map_pic}>">, inside the foreach in the block's template, where you want the pic


The playerlist is possible too, but requires a lot more editing



10
pdaddict
Re: FatalQuery Server Query module RC1
  • 2005/1/31 0:16

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


I think the image is possible, but the playerlist is probably a no. Can't remember much of it's code, I'll check it out after I had some sleep.




TopTop
(1) 2 3 4 ... 10 »



Login

Who's Online

151 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits