Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Free Torrent Source
Reply
  #1  
Old 16-01-10, 08:58
xxx2008's Avatar
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 32
Default PM on Comments
not working :(
Reply With Quote
  #2  
Old 16-01-10, 15:50
Phogo's Avatar
Phogo Phogo is offline
Super MOD
 
Join Date: Jan 2008
United Kingdom
Posts: 884
Default
Any errors?
Reply With Quote
  #3  
Old 16-01-10, 17:45
xxx2008's Avatar
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 32
Default
when someone let me comment on torrent uploaded by myself not receive pm
Reply With Quote
  #4  
Old 16-01-10, 17:47
Phogo's Avatar
Phogo Phogo is offline
Super MOD
 
Join Date: Jan 2008
United Kingdom
Posts: 884
Default
Is there no error at all? What classes are the two users?
Reply With Quote
  #5  
Old 16-01-10, 21:49
Edgein's Avatar
Edgein Edgein is offline
Staff
 
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 (18-01-10), Viperia (20-01-10), yoligim (24-01-10)
  #6  
Old 17-01-10, 13:16
xxx2008's Avatar
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 32
Default
thx m8 ,work

Last edited by xxx2008; 17-01-10 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 31-12-15 19:38
Comments in request lafouine022 Mods & Themes 2 20-03-12 08:59
Rating in Comments Fynnon Mods & Themes 6 05-05-10 06:27
Anonymous Comments Rendevous Mods & Themes 0 04-05-10 12:17
comments wMan phpMyBitTorrent (BT.Manager) 0 02-09-09 18:32



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