|
#1
|
|||
|
|||
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?
|
#2
|
||||
|
||||
In their forums there is a mod.
|
#3
|
||||
|
||||
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`) ) look for Code:
<a href="report.php?user=<?php echo $user["id"]?>"><?php echo T_("REPORT_MEMBER"); ?></a><br /> Code:
<a href=friends.php?user=<?=$user["id"]?>>Add to my Friends</a><BR>
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?" "I Kill You!" simples
Last edited by daffy; 7th January 2013 at 19:56. |
The Following User Says Thank You to daffy For This Useful Post: | ||
romano1 (7th January 2013)
|
#4
|
||||
|
||||
daffy is this for the latest version?
|
#5
|
|||
|
|||
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
|
#6
|
||||
|
||||
UPDATE!
PHP Code:
|
#7
|
|||
|
|||
You should be casting $delid as a integer.
|
Tags |
add , friend |
|
|