Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 22nd May 2012, 23:04
Legend2000 Legend2000 is offline
Member
 
Join Date: May 2012
P2P
Posts: 6
Question Add as Friend?
Hi can someone show me the codes of what i need to do to get users to add other users as a Friend?,I've seen it on other Torrent trader sites but don't know how to do it for mine,Please help?
Reply With Quote
  #2  
Old 7th January 2013, 17:11
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default
In their forums there is a mod.
Reply With Quote
  #3  
Old 7th January 2013, 19:28
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
Which version of TT are you using?

Try these

add php files to root. instert sql query

Code:
CREATE TABLE IF NOT EXISTS `friends` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `friendid` int(10) unsigned NOT NULL DEFAULT '0',
  `valider` enum('oui','non') CHARACTER SET utf8 NOT NULL DEFAULT 'non',
  PRIMARY KEY (`id`)
)
open account-details.php

look for

Code:
        <a href="report.php?user=<?php echo $user["id"]?>"><?php echo T_("REPORT_MEMBER"); ?></a><br />
add below
Code:
        <a href=friends.php?user=<?=$user["id"]?>>Add to my Friends</a><BR>
Attached Files
File Type: php friend.php (6.9 KB, 21 views)
File Type: php friendrefuser.php (825 Bytes, 16 views)
File Type: php friends.php (2.0 KB, 18 views)
File Type: php friendvalidation.php (1.2 KB, 19 views)
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details

Last edited by daffy; 7th January 2013 at 19:56.
Reply With Quote
The Following User Says Thank You to daffy For This Useful Post:
romano1 (7th January 2013)
  #4  
Old 10th January 2013, 18:07
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default
daffy is this for the latest version?
Reply With Quote
  #5  
Old 18th October 2013, 20:01
soulblazer soulblazer is offline
Member
 
Join Date: Oct 2013
P2P
Posts: 6
Default
I'm pretty sure its the same, but I have posted this mod (for 2.08svn) on the site here: http://www.bvlist.com/mods-themes/95...od-2-08-a.html
Reply With Quote
  #6  
Old 8th November 2013, 00:25
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default UPDATE!
PHP Code:
<?
// www.ExtremlymTorrents.Me DEL FRIENDS
    
require_once("backend/functions.php");
    
dbconn();
loggedinonly();
 
    
$delid htmlspecialchars($_GET['delid'], ENT_QUOTES);
     
    
$res2 mysql_query ("SELECT id, userid FROM friends WHERE friendid =".$delid) or sqlerr();
     
    while (
$arr mysql_fetch_assoc($res2))
    {
         if (
$arr['userid'] == $CURUSER['id']) {
            
mysql_query ("DELETE FROM friends WHERE friendid ="$delid) or sqlerr();
        }else {
            
show_error_msg("Error!","ID not found in your friends list...",1);
        }
    }
     
     
    
header("Refresh: 0; url=" $_SERVER['HTTP_REFERER']);
    
?>
Attached Files
File Type: php takedelfriend.php (604 Bytes, 5 views)
Reply With Quote
  #7  
Old 10th November 2013, 05:28
LeeHowarth LeeHowarth is offline
TT
 
Join Date: Nov 2008
Posts: 100
Default
You should be casting $delid as a integer.
Reply With Quote
Reply

Tags
add , friend

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



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