141
mrphilong
Re: Format membership ONLINE List
  • 2008/6/2 22:55

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Hi Trabis,

I am using PHP Stats and installed it separately from Xoops, you can get a copy from here.

Once installed modify your XOOPS footer.php and put this code in:

$xoopsLogger->stopTime();
}
// Code for PHP-Stats counter
define('__PHP_STATS_PATH__','/xxxxxxxxx/html/yourwebsite.net/stats/');
include(
__PHP_STATS_PATH__.'php-stats.redir.php');
?>


in membership module, modify templates\blocks\membership_block.html and put this code in:

<b><u>Site Statistic:</u></b><br />
<
table style="font-size:9px;text-align:right;" align="center">
    <
tr >
        <
td style="font-size:9px"><{if $xoops_isadmin}><strong>Now:</strong><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=0"></script><{/if}></td><td style="font-size:9px"><strong>Visitor</strong></td>
        <
td style="font-size:9px">&nbsp;</td>
        <
td style="font-size:9px"><strong>View</strong></td>
    </
tr>
    <
tr>
        <
td style="font-size:9px"><strong><strong>Today:</strong></td>
        <
td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=1"></script></td>
        <
td style="font-size:9px">&nbsp;</td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=2"></script></td>
    </
tr>
    <
tr>
        <
td style="font-size:9px"><strong>Y'day:</strong></td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=5"></script></td>
        <td style="font-size:9px">&nbsp;</td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=6"></script></td>
    </tr>
    <tr>
        <td style="font-size:9px"><strong>Total:</strong></td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=3"></script></td>
        <td style="font-size:9px">&nbsp;</td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=4"></script></td>
    </tr>
    <tr>
        <td colspan=4 style="font-size:9px;text-align:center"><a href="http://www.yourwebsite.com/stats/admin.php" target="_blank">Since: 09/09/2006</a></td>
    </tr>
</table>
www.UcChau.Net
www.XoopsViet.Org



142
mrphilong
Re: Format membership ONLINE List
  • 2008/6/2 10:29

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Just a little bit of moving stuff around to <Flag> <IP address> or <Username> so it won't break the column. See demo here right column

in \membership\blocks\membership_block.php

replace
$members .= '<table class="outer" cellspacing="0"><tr><td class="even" width="40%"><a href="'.XOOPS_URL.'/userinfo.php?uid='.$onlines[$i]['online_uid'].'">'.$onlines[$i]['online_uname'].'</td><td class="odd" align="center">'.$onlineUsers[$i]['module'].'</td><td class="even" align="center" width="10%"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td></tr></table>';
                
//if is not a user
                
} else {
                    
$hostname strtolower(gethostbyaddr($onlines[$i]['online_ip']));
                    
$pos1 strpos($hostname$findbot);
                    
$pos2 strpos($hostname$findsearch);

                    
//if is bot
                    
if ($pos1 !== false || $pos2 !== false) {
                        
$alt $hostname;
                        
$guess .= '<table class="outer" cellspacing="0"><tr><td class="even" colspan="2">'.$censored.'</td><td class="odd" align="center">'.$onlineUsers[$i]['module'].'</td><td width="10%" align="center" class="odd"><img src="'.XOOPS_URL.'/modules/membership/images/bots.gif" alt="'.$alt.'" title="'.$alt.'"></td></tr></table>';
                        
$bots++;
                    } else {
                        
$guess .= '<table class="outer" cellspacing="0"><tr><td class="even" colspan="2">'.$censored.'</td><td class="odd" align="center">'.$onlineUsers[$i]['module'].'</td><td width="10%" align="center" class="odd"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td></tr></table>';
                    }
                    
$guests++;


with

$members .= '<table class="outer" cellspacing="0"><tr><td class="even" width="18px" align="left"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td><td class="odd" align="left"><a href="'.XOOPS_URL.'/userinfo.php?uid='.$onlines[$i]['online_uid'].'">'.$onlines[$i]['online_uname'].'</td></tr></table>';
                
//if is not a user
                
} else {
                    
$hostname strtolower(gethostbyaddr($onlines[$i]['online_ip']));
                    
$pos1 strpos($hostname$findbot);
                    
$pos2 strpos($hostname$findsearch);

                    
//if is bot
                    
if ($pos1 !== false || $pos2 !== false) {
                        
$alt $hostname;
                        
$guess .= '<table class="outer" cellspacing="0"><tr><td width="18px" align="left" class="even"><img src="'.XOOPS_URL.'/modules/membership/images/bots.gif" alt="'.$alt.'" title="'.$alt.'"></td>
                        <td class="odd" colspan="2">'
.$censored.'</td><td class="even" align="center">'.$onlineUsers[$i]['module'].'</td></tr></table>';
                        
$bots++;
                    } else {
                        
$guess .= '<table class="outer" cellspacing="0"><tr><td width="18px" align="center" class="even"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td><td class="odd" colspan="2">'.$censored.'</td></tr></table>';
                    }
                    
$guests++;
www.UcChau.Net
www.XoopsViet.Org



143
mrphilong
Re: XM-MEMBERSTATS Problems.... Any Fixes?

trabis,

Online List section is out of alignment

a suggest format:

<Flag> <IP address> or <Username>
@: <module name>
www.UcChau.Net
www.XoopsViet.Org



144
mrphilong
Re: CBB 4.0 Pains
  • 2008/5/29 11:53

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


I was going to suggest d3forum, anyway have a look at the link below, I believe d3forum can import stuff from cbb

d3forum =>http://xoops.peak.ne.jp/md/mydownloads/viewcat.php?cid=1
www.UcChau.Net
www.XoopsViet.Org



145
mrphilong
Tag 1.60 - Error
  • 2008/5/28 3:23

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


NoticeUndefined variablemodule_list in file /modules/tag/admin/admin.tag.php line 62
Warning
Invalid argument supplied for foreach() in file /modules/tag/admin/admin.tag.php line 62


Any fix for the above error?
www.UcChau.Net
www.XoopsViet.Org



146
mrphilong
Re: Language: Front - Back ends
  • 2008/5/23 11:02

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Thats the short term solution, going thru. each language variables to see which ones are for the FRONT or BACK is time consuming. I like to see Front and Back language in a separated file so they can be modified easily.
www.UcChau.Net
www.XoopsViet.Org



147
mrphilong
Language: Front - Back ends
  • 2008/5/23 9:09

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


I am interested in having a front end (users) to have languageA and the back end (admin) to have a languageB. Is XOOPS setup for this? If not, hmmmmm....any chance for getting this feature in? I am sure there are some that would like to see this feature.
www.UcChau.Net
www.XoopsViet.Org



148
mrphilong
Re: XM-MEMBERSTATS Problems.... Any Fixes?
  • 2008/5/19 22:44

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Hi trabis,

I want to hide a GROUP of users from the IP list and also from the popup list. The popup list looks better with just a table with one column, listing:

Username
IP Address
Avatar
www.UcChau.Net
www.XoopsViet.Org



149
mrphilong
Re: XM-MEMBERSTATS Problems.... Any Fixes?
  • 2008/5/19 3:52

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


How to hide if user belongs to a particular group?
www.UcChau.Net
www.XoopsViet.Org



150
mrphilong
Re: Coppermine Photo Gallery 1.4 Beta
  • 2008/5/17 23:51

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


I am using xcgal 2.0.3 atm and just wondering if there is an update, thanks.
www.UcChau.Net
www.XoopsViet.Org




TopTop
« 1 ... 12 13 14 (15) 16 17 18 ... 27 »



Login

Who's Online

161 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

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

Latest GitHub Commits