Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source
Reply
  #1  
Old 16th January 2010, 08:58
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 33
Default PM on Comments
not working :(
Reply With Quote
  #2  
Old 16th January 2010, 15:50
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Any errors?
Reply With Quote
  #3  
Old 16th January 2010, 17:45
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 33
Default
when someone let me comment on torrent uploaded by myself not receive pm
Reply With Quote
  #4  
Old 16th January 2010, 17:47
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Is there no error at all? What classes are the two users?
Reply With Quote
  #5  
Old 16th January 2010, 21:49
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile 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
Reply With Quote
The Following 3 Users Say Thank You to Edgein For This Useful Post:
Phogo (18th January 2010), Viperia (20th January 2010), yoligim (24th January 2010)
  #6  
Old 17th January 2010, 13:16
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 33
Default
thx m8 ,work

Last edited by xxx2008; 17th January 2010 at 13:34.
Reply With Quote
Reply

Tags
comments , pm

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disallow Comments sagus TBDev 3 31st December 2015 19:38
Comments in request lafouine022 Mods & Themes 2 20th March 2012 08:59
Rating in Comments Fynnon Mods & Themes 6 5th May 2010 06:27
Anonymous Comments Rendevous Mods & Themes 0 4th May 2010 12:17
comments wMan BT.Manager (phpMyBitTorrent) 0 2nd September 2009 18:32



All times are GMT +2. The time now is 16:02. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.