Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[Hack]New Pm In Shoutbox
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-08-27 09:41:38
this is dif from the over one on here ive seen it on a few sites tho so maybe on here somewhere!

this one will say "user" has sent a new pm

im workin on it so it says to who but keep getting errors

in mailbox.php

find

$msg = sqlesc(unesc(@$_POST['msg']));





and after if



mysql_query("INSERT INTO shoutbox VALUES('', 'System', '[url=http://".$SITEURL."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url] Has Sent A New PM', now(), '0')");
Unknown User
2008-08-27 14:06:09
already have this for v1 ,,,with members pm ,,,contact staff ,,,in shout,,,,was coded on mine by cooly
Unknown User
2008-08-27 15:13:17
yh i saw it on ur site but couldnt find the code so jsut made it myself lol my contact staff just shows up on index saying there is one lol
Unknown User
2008-08-27 15:15:20
lol :blink:
Unknown User
2008-12-31 00:19:07
Hi, does anyone saw that that member X a send a MP or only the receiver of the PM ?
Unknown User
2009-08-07 21:02:54
Works great, does what it says. ( out-of-the-box )

Thanks,

Peace.........( Using SVN Version )
Unknown User
2009-09-01 14:27:38
i'm sorry but it doesn't work for me and i don't know why . it doesn't make any errors it make nothing at all . have you an idea ? i have tt 2.05 . thx for your answers .
Unknown User
2010-10-16 22:20:23
thnxs
Unknown User
2011-08-22 11:24:18
thnxs
Unknown User
2012-07-24 09:18:37
The problem of this hack is, even users who has not logged in and all users using the shoutbox can see who have sent messages regardless of the target user. Is there anything so that only the target user can view who has sent pm ?



Also on clicking on the user, it shows: http://kpaste.net/redir/http:///account-details.php?id=USERID

so the site name is missing in the url.Account can not be found.
Snap 2012-07-24 at 14.38.33.png
Snap 2012-07-24 at 14.38.33.png
Unknown User
2012-07-24 13:08:00
change

$SITEURL
to
$site_config["SITEURL"]
to fix the second part and the 1st part really not easy or do able to me.. the shoutbox is viewable by anyone lol
Unknown User
2012-07-27 18:18:57
So the code will be like this:



mysql_query("INSERT INTO shoutbox VALUES('', 'System', '[url=".%24site_config%5B"]."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url] Has Sent A New PM', now(), '0')");

[/code]
2012-07-28 01:15:37
THANKS ! :)
Unknown User
2012-10-15 17:35:35
"nietos, post: 59799":
i'm sorry but it doesn't work for me and i don't know why . it doesn't make any errors it make nothing at all . have you an idea ? i have tt 2.05 . thx for your answers .

+1 nothing happened  :(

Im on a old version of TT V.2.02

i put it here under if $msg:



$msg = sqlesc(unesc(@$_POST['msg']));

}

if ($msg)

Unknown User
2012-10-16 01:05:50


}

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;

}else{

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';

}



add below



if ($CURUSER) {

//check for new pm's

$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");

$arr = mysql_fetch_row($res);

$unreadmail = $arr[0];

if ($unreadmail)

print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font>&nbsp;&nbsp;");

}

Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728