**** ReadME ****
**** ionutvmi ****


--------------- Show thread by user ----

File: show.php
No extra edit.
Enter page profile.php from your script and add a link to page show.php
Link should look like this
Php code:
<?
print "<tr><td class='row1'><a href='show.php?uid=".$userd->userid."'>Show threads by ".$userd->username."</a></td></tr>";
?>
You are done.
-------- end show... -------
************
------ chat ----

File: shout.php
Enter phpmyadmin and add a new table         shout
with columns
id  INT(11)
author VARCHAR(30)
msg VARCHAR(300)

After you finish go to table b_users and add 2 new collums
onchat int(1)
tmch varchar(30)

You are done page shout.php

------ end chat ----
***
-------  Old/New indicator in inbox ----

File: No file
Go to pm index.php page and add this php code where you want to show pm subject in pm list after line
foreach($getpms as $getpm)
{

You add this code:

$re= $getpm->hasread;
print "<tr><td class='row1'>";
if ($re=='0') {
print "&#187; (!) <a href=\"".$config->url."pm/index.php?do=read&pid=".$getpm->pmid."\" style=\"color: lime\">".$getpm->subject."</a> "; } else {
print "&#187; <a href=\"".$config->url."pm/index.php?do=read&pid=".$getpm->pmid."\">".$getpm->subject."</a> "; }


You are done.
--- end on/off pm---
*****
-----Online/Offline Indicator of user in showthread. -----

File: no file
Enter the code in showthread.php where poster name is

$recent=date("U")-900;
$on=$db->count_rows("SELECT * FROM b_users WHERE userid='$thread->author' AND tsgone>'$recent'");
if ($on > 0) {
$ontp='Online'; } else {
$ontp='Offline'; }
echo $ontp;


You are done
--- THE END THX FOR USING IT :D ---

Powered by ionutvmi
