LexHammer Posted December 15, 2009 Share Posted December 15, 2009 What is the code to make an option like the relationship status in facebook. Explanation: you have a filed, where you enter other user's username and it appears on your profile like a link and can be clicked on it so you can see the other user's profile Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/ Share on other sites More sharing options...
Adam Posted December 15, 2009 Share Posted December 15, 2009 That's like asking how long's a piece of string -- there's no set code for such a thing. I assume you have a user system already in place? Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977638 Share on other sites More sharing options...
plznty Posted December 15, 2009 Share Posted December 15, 2009 I dont get it, why do you need it may I ask? For your own site to link to a facebook? or you making your own social network? Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977644 Share on other sites More sharing options...
LexHammer Posted December 15, 2009 Author Share Posted December 15, 2009 No, no i dont want to link to facebook. I just want it for my site. Can somebody do it? I know its not hard, i just dont know how to make the username appear. Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977664 Share on other sites More sharing options...
Adam Posted December 15, 2009 Share Posted December 15, 2009 As I was getting at before, I assume you have a member system already in place? We can't help you unless we know how it works. However though this does sound like you're after someone to do this all for you, in which case may be better posting in the freelance section? I know its not hard, i just dont know how to make the username appear. One method of storing the right data would be to create 2 fields within your users table; `relationship_status` & `relationship_with` (or something along those lines). `relationship_status` could be an integer, varchar or maybe "enum" -- depending on how you want to store the different relationship statuses. `relationship_with` would store the user ID (not display name) of the user they're in a relationship with. Returning and processing that data should be fairly straight forward. Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977665 Share on other sites More sharing options...
Garethp Posted December 15, 2009 Share Posted December 15, 2009 Anyone here can do it, but finding a person to do it FOR you here is the challenge. If that's what you're after, I suggest you post in the freelancer board or PM a member Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977666 Share on other sites More sharing options...
trq Posted December 15, 2009 Share Posted December 15, 2009 Anyone here can do it, but finding a person to do it FOR you here is the challenge. If that's what you're after, I suggest you post in the freelancer board or PM a member Can we please not recommend PM'ing members? Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977688 Share on other sites More sharing options...
Garethp Posted December 15, 2009 Share Posted December 15, 2009 Anyone here can do it, but finding a person to do it FOR you here is the challenge. If that's what you're after, I suggest you post in the freelancer board or PM a member Can we please not recommend PM'ing members? Sure, may I ask why? Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977697 Share on other sites More sharing options...
trq Posted December 15, 2009 Share Posted December 15, 2009 Anyone here can do it, but finding a person to do it FOR you here is the challenge. If that's what you're after, I suggest you post in the freelancer board or PM a member Can we please not recommend PM'ing members? Sure, may I ask why? Because its freaking annoying having people PM'ing for help. Thats what the forum is for. Quote Link to comment https://forums.phpfreaks.com/topic/185191-code-for-something-like-the-relationship-status-in-facebook/#findComment-977722 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.