Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?
@  velma : (12 June 2013 - 01:27 PM) T_T We Should Deal Punishments To Procrastinators... Especially Me
@  Feelay : (12 June 2013 - 12:06 PM) As Well As Making It More Secure.

Replying to Friend Networking Script... Help!


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Hercco

Posted 12 July 2006 - 07:17 PM

Actually that sounds really simple to do:

What you want to do is, when User A clicks on User B's name to add her to his friends, your system stores to a database (whatever you are using, text files are fine) record that A requests "friendship" from B. You'd probably want to use some unique IDs (like ID numbers or email addys or however you identify your users) . Then everytime a user logs in, the list for friendship requests is checked in case there are requests for this user. If there is, a dialogue to allow or deny is viewed.

Implementing notifications of new requests should be quite straightforward to do, if you want to.

nightfox

Posted 08 July 2006 - 02:07 AM

I'm creating my own friend network script which is going to be a combo of MySpace/Facebook and an AIM profile.

One of the most important features is the adding of friends. The way to do this is probably simple & I'll kick myself when I see the code to do it.

What needs to happen is a friend clicks a link which sends an internal message through the scripts messaging system (like a PM on a forum) to the other person to approve or deny the request. In that message, there needs to be a link to a page which executes a PHP script which updates the database adding both users to each other's friend list.

I'm going to try and play with it a bit, but I doubt I'll be able to do it.

BTW- I'm creating this to try and expand my PHP knowledge from beginner to moderate. All my PHP books are beginner based... looks like I should circulate my Amazon wish list to see if someone would be kind to buy me the PHP books I should be reading... :unsure:

Thanks for ANY help. I'm currently going to finish up on the login system with access rights and try and get that working. Then I have to also get the message system working too. Then I can provide any database tables needed much more easily.

[N]F

Review the complete topic (launches new window)