Thread: Add as Friend?
View Single Post
  #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)