This topic is locked

add as friend

12/10/2009 6:27:04 AM
PHPRunner General questions
T
titanic author

Hi,
I am trying to build a social networking site for term project purpose. Phprunner is a good friend to do such thing. But,i want to add "add as friend" button to frinds table list and sending an "accept - decline" query to a user.
Is there any suggestion for this.
Thanx in advance...

J
Jane 12/10/2009

Hi,
to create 'Add as friend' button use custom event (Insert PHP code snippet option on the Visual Editor tab). First create table where information about many-to-many relationships will be stored.

Then update this table with username of logged user and username from current page.

T
titanic author 12/10/2009

hi,
thanx for the reply .. but i couldnt figure out how to send a "accept -decline" query... the guy added as a friend will receive a message like "someone added you as friend accept-decline". If he accepts he will be added as friend otherwise they wont be friends...
thnx in advance

J
Jane 12/10/2009

Actual code is dependent on your tables structure.

I recommend you to publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages. I'll try to help you with sample code.

T
titanic author 12/10/2009



Actual code is dependent on your tables structure.

I recommend you to publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages. I'll try to help you with sample code.


hi ... i will publish it but it may take some time.

but table is like
user friends

---- [color="#FFFFFF"]**** -------

id (key) user_id (key)

name [color="#FFFFFF"]** friend_id (key)

surname***

mail
thnx again

T
titanic author 12/10/2009

ok... I think an "invitation table" solves this problem...
thanx for the previous replies...