This mod will display the online time on the profile page and member list. (The ICQ column is replaced with OnlineTime column)
*** Run these queries first ***ALTER TABLE yabbse_members ADD COLUMN onlineTime bigint DEFAULT 0;
UPDATE yabbse_members SET onlineTime = 0;
(You can run them by using php file in
here. (Put it into the Yabb SE dir.)
*** And add this to the language file. ***$txt['ontime1'] = 'Online Time';
$txt['ontime2'] = 'hour';
$txt['ontime3'] = 'minute';
$txt['ontime4'] = 'second';
$txt['ontime5'] = 's';
$txt['ontime6'] = '<NOBR>Online for</NOBR>';
*** And apply this mod (v0.3). I recommend you to update to this v0.2 version, I have changed a few important things, which you wouldn't notice.
In v0.3:
- I have modify Register.php in order to set the default value with the insertion of new UPDATE query instead of replacing original INSERT INTO. So this can be compatible with future mod such as my Collapsable Category Mod which also modify Register.php.
- In addition, one step is reduced in Subs.php. It now uses $GLOBALS array instead of declaration of global-scope variable.
FOR USER FROM OLD VERSIONThis is due to my stupidity.
In version 0.3a there is nothing new except the change to database.
You can recover your old Register.php
and run this query
ALTER TABLE yabbse_members ALTER COLUMN onlineTime SET DEFAULT 0;