Posting in "in progress" because I hope others can bring improvements to this.
Original post is [url="http://www.torrenttrader.org/index.php?showtopic=4592"]here[/url].
SQL:
Upload all 3 files to your server, and enjoy!
I'll update the account-details code later so it checks if the user is in the friend list, and if it is add a delete friend link instead...
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1782"]friends.php[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1783"]friend.php[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1784"]takedelfriend.php[/url]
Original post is [url="http://www.torrenttrader.org/index.php?showtopic=4592"]here[/url].
SQL:
CREATE TABLE `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',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;In header.php, add this wherever you like... this is totally optional and you can skip it if you don't want a link in your header.<a href=friend.php>Friends</a>
Now open up account-details.php and find:
<a href=report.php?user=<?=$user["id"]?>>Report Member</a><BR>
Below, add:
<a href=friends.php?user=<?=$user["id"]?>>Add to my Friends</a>Upload all 3 files to your server, and enjoy!
I'll update the account-details code later so it checks if the user is in the friend list, and if it is add a delete friend link instead...
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1782"]friends.php[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1783"]friend.php[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1784"]takedelfriend.php[/url]
