Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   Add as Friend? (http://www.bvlist.com/showthread.php?t=7963)

Legend2000 22nd May 2012 23:04

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?:sos:

romano1 7th January 2013 17:11

In their forums there is a mod.

daffy 7th January 2013 19:28

4 Attachment(s)
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:

        ">
add below
Code:


        >Add to my Friends


romano1 10th January 2013 18:07

daffy is this for the latest version?

soulblazer 18th October 2013 20:01

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

Extremlym 8th November 2013 00:25

UPDATE!
 
1 Attachment(s)
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']);
    
?>


LeeHowarth 10th November 2013 05:28

You should be casting $delid as a integer.


All times are GMT +2. The time now is 00:59.

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