Потерявшийся


Зарегистрирован: Oct 2001
Место проживания: Tallinn, Estonia
Публикаций: 609
Статус:  |
стоп! я дурак
вот что надо еще сдлелать чтоб он работал
[cod]
To install, first download the attached admin_online.php, and upload to your admin folder.
Then, do these changes to the online.php in your main forum folder.
1. Find this code:
$datecut = $ourtimenow - $cookietimeout;
And add this code right below it:
$getonlineloc=$DB_site->query_first("SELECT template FROM template WHERE title='onlineloc' AND templatesetid=-2");
$onlineloc=$getonlineloc[template];
2. Find this code:
global $thread, $post, $forum, $event, $gotforum, $hideprivateforums, $bbuserinfo, $timeformat, $enableemail, $enablepms, $bbtitle, $usergroupdef, $numberguests;
And replace it with this code:
global $thread, $post, $forum, $event, $gotforum, $hideprivateforums, $bbuserinfo, $timeformat, $enableemail, $enablepms, $bbtitle, $usergroupdef, $numberguests, $onlineloc;
3. Find this code:
$userinfo[time] = vbdate($timeformat,$userinfo[lastactivity]);
And add this code above it:
if ($onlineloc!='') {
$onlinelocbits=explode("|||",$onlineloc);
while (list($key,$filename)=each($onlinelocbits)) {
list($key,$text)=each($onlinelocbits);
if ($userinfo[activity]==$filename) {
eval("\$text = \"".addslashes($text)."\";");
$userinfo[where] = $text;
}
}
}
4. Find this code:
global $bbuserinfo, $threadids, $postids, $forumids, $eventids, $PHP_SELF;
And replace it with this code:
global $bbuserinfo, $threadids, $postids, $forumids, $eventids, $PHP_SELF, $onlineloc;
5. Find this code:
default:
$userinfo[activity] = 'unknown';
}
And add this code right below it:
if ($onlineloc!='' and $userinfo[activity]=='unknown') {
$onlinelocbits=explode("|||",$onlineloc);
while (list($key,$ourfilename)=each($onlinelocbits)) {
list($key,$text)=each($onlinelocbits);
if ($filename==$ourfilename)
$userinfo[activity] = $ourfilename;
}
}
That's it, you're done!
Now go to admin/admin_online.php and see the new stuff you can play with.
[/cod]
__________________
**censored** Ты тут еще не был? ...
**censored** Админы форумов - сюда!!!
Сообщить модератору об этом сообщении | Предупреждение | IP: определен
|