Greenhouse
05-Nov-2002, 03:31 PM
// Simple Text Offline/Online Hack by: Shadow
Fox
//
// This hack will show the users Offline/Online status in
their posts right below their "Joined Date Info"
//
//
Thanks go to monster for the original Online/Offline mod
//
//
Supplied and supported by Shadow Fox (Invision@xtrea.com) - If you
need help with this mod
// Look for the Support Thead in the
"Modification Support" on
[URL=http://www.ibresource.com]http://www.ibresource.com[/URL]
================================================== =====================//
Step
1 - Download and Backup > Skin/s1/skin_topic.php
> lang/en/lang_Topic.php
>
sources/Topics.php
================================================== =====================//
---------------------------------------------------------------------
Open
Skin/s*/skin_topic.php AND FIND THE FOLLOWING (around line
146)
---------------------------------------------------------------------
{$data[POSTER]['member_joined']}<br>
--------------------------------------------------------------------
ADD
THE FOLLOWING LINE RIGHT "BELOW"
THAT
--------------------------------------------------------------------
{$data[POSTER]['member_status']}<br>
================================================== =====================//
Step
2 : Save And Close Skin/s*/skin_topic.php
================================================== =====================//
--------------------------------------------------------------------
Open
lang/en/lang_topic.php AND FIND THE FOLLOWING (around line
23)
--------------------------------------------------------------------
'edited_by'
=> "This post has been edited by <b>%s</b>
on
%s",
--------------------------------------------------------------------
ADD
THE FOLLOWING LINES RIGHT "BELOW"
THAT
--------------------------------------------------------------------
'M_Online'
=> "Status:
Online",
'M_Offline' =>
"Status:
Offline",
================================================== =====================//
Step
3 : Save And Close lang/en/lang_topic.php
================================================== =====================//
--------------------------------------------------------------------
Open
sources/Topics.php AND FIND THE FOLLOWING (around line
538)
--------------------------------------------------------------------
//
Get the member info. We parse the data and cache
it.
--------------------------------------------------------------------
ADD
THE FOLLOWING LINES RIGHT "ABOVE"
THAT
--------------------------------------------------------------------
$t_time
= time() - 900;
$query = mysql_query("SELECT member_id
FROM ibf_sessions WHERE member_id!='0' AND
member_id='$row[author_id]' AND login_type <>
1 AND running_time>'$t_time'") or print
mysql_error();
$status =
mysql_num_rows($query);
if
($status > 0)
{
$row['member_status'] =
$ibforums->lang['M_Online'];
}
else
{
$row['member_status'] =
$ibforums->lang['M_Offline'];
}
================================================== =====================//
Step
4 - Save and Close
sources/Topics.php
================================================== =====================//
--------------------------------------------------------------------
Now
Upload all three files that you edited back to their proper
locations
--------------------------------------------------------------------
>
Skin/s1/skin_topic.php
> lang/en/lang_Topic.php
>
sources/Topics.php
================================================== ===================
Your Finished, use and
enjoy
:)
================================================== ===================
now I'm using the metaldark
skin.
and have a problem to fully instal the
hack:Skin/s*/skin_topic.php
thad fille is not installed by the
skin.
Is there a way to make the hack work anyway?
It worked on the
standard skin
Fox
//
// This hack will show the users Offline/Online status in
their posts right below their "Joined Date Info"
//
//
Thanks go to monster for the original Online/Offline mod
//
//
Supplied and supported by Shadow Fox (Invision@xtrea.com) - If you
need help with this mod
// Look for the Support Thead in the
"Modification Support" on
[URL=http://www.ibresource.com]http://www.ibresource.com[/URL]
================================================== =====================//
Step
1 - Download and Backup > Skin/s1/skin_topic.php
> lang/en/lang_Topic.php
>
sources/Topics.php
================================================== =====================//
---------------------------------------------------------------------
Open
Skin/s*/skin_topic.php AND FIND THE FOLLOWING (around line
146)
---------------------------------------------------------------------
{$data[POSTER]['member_joined']}<br>
--------------------------------------------------------------------
ADD
THE FOLLOWING LINE RIGHT "BELOW"
THAT
--------------------------------------------------------------------
{$data[POSTER]['member_status']}<br>
================================================== =====================//
Step
2 : Save And Close Skin/s*/skin_topic.php
================================================== =====================//
--------------------------------------------------------------------
Open
lang/en/lang_topic.php AND FIND THE FOLLOWING (around line
23)
--------------------------------------------------------------------
'edited_by'
=> "This post has been edited by <b>%s</b>
on
%s",
--------------------------------------------------------------------
ADD
THE FOLLOWING LINES RIGHT "BELOW"
THAT
--------------------------------------------------------------------
'M_Online'
=> "Status:
Online",
'M_Offline' =>
"Status:
Offline",
================================================== =====================//
Step
3 : Save And Close lang/en/lang_topic.php
================================================== =====================//
--------------------------------------------------------------------
Open
sources/Topics.php AND FIND THE FOLLOWING (around line
538)
--------------------------------------------------------------------
//
Get the member info. We parse the data and cache
it.
--------------------------------------------------------------------
ADD
THE FOLLOWING LINES RIGHT "ABOVE"
THAT
--------------------------------------------------------------------
$t_time
= time() - 900;
$query = mysql_query("SELECT member_id
FROM ibf_sessions WHERE member_id!='0' AND
member_id='$row[author_id]' AND login_type <>
1 AND running_time>'$t_time'") or print
mysql_error();
$status =
mysql_num_rows($query);
if
($status > 0)
{
$row['member_status'] =
$ibforums->lang['M_Online'];
}
else
{
$row['member_status'] =
$ibforums->lang['M_Offline'];
}
================================================== =====================//
Step
4 - Save and Close
sources/Topics.php
================================================== =====================//
--------------------------------------------------------------------
Now
Upload all three files that you edited back to their proper
locations
--------------------------------------------------------------------
>
Skin/s1/skin_topic.php
> lang/en/lang_Topic.php
>
sources/Topics.php
================================================== ===================
Your Finished, use and
enjoy
:)
================================================== ===================
now I'm using the metaldark
skin.
and have a problem to fully instal the
hack:Skin/s*/skin_topic.php
thad fille is not installed by the
skin.
Is there a way to make the hack work anyway?
It worked on the
standard skin