|
Stats |
Total Members: 597 [241] Total Tutorials: 284 Newsest User: andrerds Todays Unique Hits: 90
|
|
|
Main Content |
| Tutorial: Friendlist/Blocklist + Msg URLs to Members By UrbanTwitch |
In this tutorial you will be able to keep track of your friends and ignore people.
This tutorial is quite long so bear with me.
First let's SQL the blocklist. You should have the tables `friends` and `friend_requests` from new2old's Friend System.
Ok, now its time to create your Friend list. Call this my_friends.php
|
Difficulty: Moderate
Views: 1559
|
|
|
Comments |
| Posted on Sunday 17th August 2008 at 02:53 PM |
Dava
 |
you have a few bugs in this script i will post you the fixed version soon |
| Posted on Sunday 17th August 2008 at 06:07 PM |
jambomb
 |
gota change loads of stuff coz its all for his site quite annoying |
| Posted on Sunday 17th August 2008 at 06:31 PM |
UrbanTwitch
 |
Actually my base script is RMB's... :S |
| Posted on Monday 18th August 2008 at 12:16 AM |
Dava
 |
its not the changing of code its the fact it didnt work yeah it was coded 95% right but still accounted a few errors |
| Posted on Monday 18th August 2008 at 01:17 AM |
UrbanTwitch
 |
such as? |
| Posted on Tuesday 19th August 2008 at 01:08 AM |
Dava
 |
well for 1 why use so many else functions in this scipt why not just use a simple
if ($_POST[send] && $_POST[to] == $en[username]){
echo "<b>Error:</b> This user has blocked you from sending any PMs to you.";
}
{
}
that way ya dont get the telse error |
| Posted on Tuesday 19th August 2008 at 01:48 AM |
Dava
 |
and you need to change the following or it will block youself from viewing your own profile and let you view people who have blocked you's profiles
$getfoe = mysql_query("SELECT * FROM `blocklist` WHERE `foe` = '$user[username]'");
to
$getfoe = mysql_query("SELECT * FROM `blocklist` WHERE `username` = '$user[username]'"); |
| Posted on Tuesday 19th August 2008 at 01:51 AM |
UrbanTwitch
 |
yeah xD ooppppssss |
| Posted on Thursday 21st August 2008 at 03:23 PM |
saintpaulos
 |
Also shouldn't it be?
[Code]
";
if ($user[username] == $fa[friendname]){
echo "<a href='my_friends.php?page=delete&user=$user[username]'><img src='http://sodadome.com/scp/user_add.png' border='0' title='Remove from friendlist'></a>";
}else{
echo "<a href='friendrequest.php?user=$user[username]'><img src='http://sodadome.com/scp/user_add.png' border='0' title='Add as friend'></a>";
}
if ($user[username] == $en[foe]){
echo "<a href='blocklist.php?page=delete&user=$user[username]'><img src='http://sodadome.com/scp/user_block.png' border='0' title='Unblock user'></a>";
}else{
echo "<a href='blocklist.php?page=block&user=$user[username]'><img src='http://sodadome.com/scp/user_block.png' border='0' title='Block user'></a>";
}
echo "<a href='myfriends.php?page=msgto&user=$user[id]'><img src='http://sodadome.com/scp/email_go.png' border='0' title='Send Message'></a></td></tr></table>";
echo "
[/Code]
I can't seem to get the myfriends.php to work at all. All I get is:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in myfriends.php on line 46
Any help would be great! :)
|
| Posted on Thursday 21st August 2008 at 03:24 PM |
saintpaulos
 |
thats not the bbcode then lol |
|
|
Add Comment |
|
You must be logged in to post a comment. |
|
|