Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »Programming Forum

Notices

Programming Forum Web and Software Programming Forum - Java, PHP, SQL etc.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-08-2008, 04:03 PM
Jord's Avatar
Junior Member
 
Join Date: Jun 2008
Gender: Male
Posts: 17
Default PHP 'blog' script

ok so i'm making a website, but im a little stuck. ive got my user system created and everything, but i want to have it so that once a user has signed up, they can edit their profile(i already have that part) but i also want it so they get their own individual blog that they can post to and then it appears on their profile (kinda like myspace, facebook etc)

does anyone have any ideas how i would go about doing this?

also - any ideas on how i'd aloow users to add eachother as friends ???

thank you :)
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote

  #2 (permalink)  
Old 25-08-2008, 04:33 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,825
Default

Have you looked at Ning? It's a ready made social network system you can request the source code to change how you wish?

Here's the one I used..

Graphic Design Network
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 25-08-2008, 04:39 PM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,896
Default

For your first problem, give each user their own table when they create their user profiles which contains all the blog entries for that user. Pretty straightforward. If you managed to create the rest then you should have no difficulties. Have fields for time and date etc., all the standard stuff you'd see on a blog entry.

For the other problem, another table for each user will have a list of other user IDs that are on their friend's list and whether or not the other user has confirmed the friendship or not. For unconfirmed friends (e.g. John has added Mary as a friend but she hasn't accepted yet {and hasn't declined either}), compare the user's (John's) friends list with the target user's (Mary's) friends list. If both users exist on each other's tables, change the confirmed status to true on both users' tables.
If a user declines friendship, delete the entry from both tables completely.
So any time that list is checked, the confirmed friends will be listed off, and the unconfirmed ones will be ignored until they're confirmed.

Might sound confusing, but i'm sure you get the general idea.

*edit* yeah, or use free code. :)
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 25-08-2008, 04:41 PM
Jord's Avatar
Junior Member
 
Join Date: Jun 2008
Gender: Male
Posts: 17
Default

I see now with the blog part, i'll be able to do that easily. But I dont quite get the friends part :/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 25-08-2008, 06:11 PM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,896
Default

Yeah, sorry, i know... i kinda changed my mind while typing it and didn't fix it, lol.

I'll try to simplify.
1 friends table for each user. Fields are: User ID (of the friends), confirmed status and possibly whether or not someone has added you as a friend.

By using User IDs, it should be easy to target a table belonging to another user and modify friend status as needed.
For every User ID on a person's friends list, just pull down the name and profile pic or whatever else belonging to that user.

Does that make more sense?
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 25-08-2008, 08:46 PM
Jord's Avatar
Junior Member
 
Join Date: Jun 2008
Gender: Male
Posts: 17
Default

yeah, so it'd probs look something like this:

create table friends
'userid'
'confirmedstatus'

^^ but thats simplified obviously
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 26-08-2008, 01:56 AM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,896
Default

Yeah, you'd want to have the user's id in all table names belonging to that user so that you can add on the label for easy targeting (e.g. friends_3275)

You might want to add extra information like whether this is a new friend's request, then they'd get a popup maybe asking them to confirm friendship if it's the first time logging in after being added.
Other things like time and date added might be useful too for sorting.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help w/ action script a3dy Flash Forum 13 22-06-2008 09:06 PM
Search engine script PR Design Search Engines 5 02-10-2007 08:44 AM
Favorite Gallery Script? dannynosleeves General Web Design Forum 1 11-07-2007 02:23 PM
PHP Search Script Nuttycoder Graphic Design Tutorials 4 09-04-2007 04:53 PM
Script Font Toon Typography Forum 5 07-03-2007 05:56 PM


All times are GMT. The time now is 06:24 PM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0