Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Free Torrent Source (http://www.bvlist.com/forumdisplay.php?f=25)
-   -   PM on Comments (http://www.bvlist.com/showthread.php?t=4259)

xxx2008 16th January 2010 08:58

PM on Comments
 
not working :(

Phogo 16th January 2010 15:50

Any errors?

xxx2008 16th January 2010 17:45

when someone let me comment on torrent uploaded by myself not receive pm

Phogo 16th January 2010 17:47

Is there no error at all? What classes are the two users?

Edgein 16th January 2010 21:49

error fix
 
go to takecomment.php

find

PHP Code:

$res sql_query("SELECT name FROM torrents WHERE id = $torrentid") or sqlerr(__FILE__,__LINE__); 

and replace with

PHP Code:

$res sql_query("SELECT name, owner FROM torrents WHERE id = $torrentid") or sqlerr(__FILE__,__LINE__); 


find

PHP Code:

UserHandle::KPS("+","0.5",$CURUSER["id"]); 

and add above

PHP Code:

$ras mysql_query("SELECT commentpm FROM users WHERE id = $arr[owner]") or sqlerr(__FILE__,__LINE__);
                 
$arg mysql_fetch_array($ras);

                 if(
$arg['commentpm'] == 'yes')
                    {
$added sqlesc(get_date_time());
$subby sqlesc("Someone has commented on your torrent");
$notifs sqlesc("You have received a comment on your torrent [url=$DEFAULTBASEURL/details.php?id=$torrentid] " $arr['name'] . "[/url].");
mysql_query("INSERT INTO messages (sender, receiver, subject, msg, added) VALUES(0, " $arr['owner'] . ", $subby$notifs$added)") or sqlerr(__FILE____LINE__);
                     } 


grtzz edgein

xxx2008 17th January 2010 13:16

thx m8 ,work


All times are GMT +2. The time now is 15:24.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.