Jump to content


Photo

My Social Networking Website. In progress, looking for suggestions


  • This topic is locked This topic is locked
86 replies to this topic

#81 QuickOldCar

QuickOldCar

    Advanced Member

  • Members
  • PipPipPip
  • 1,612 posts
  • LocationNorthEast Pennsylvania

Posted 19 January 2013 - 08:06 PM

P.S. Regarding the account login - I believe the issue is that if you copy and paste the password, it for some reason adds a space to the end of it (even though you don't select one here), and that's the cause of it not working.


You could trim the whitespaces from the user inputs before using them.
trim()
DynaIndex.com
Dynamic search index of websites, links, feeds, title, description, keywords and thumbnail snapshot.

#82 Jessica

Jessica

    This is not my name.

  • Gurus
  • 8,982 posts
  • LocationDallas, TX
  • Age:26

Posted 19 January 2013 - 10:32 PM

Generally you don't want to trim() passwords.
My goal in replying to posts is to help you become a better programmer, including learning how to debug your own code and research problems. For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. See below for useful links when you get stuck.

How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq

Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!

#83 Andy123

Andy123

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationDenmark

Posted 22 January 2013 - 09:13 AM

I took a quick look at your site and it looks very nice! I didn't look for the "continuous YouTube playback", but that sounds quite impressive. I don't know what your goal is with your site, but if it is more than just a playground, then I would be a little concerned about how you are probing/polling your server in intervals on the "wall". I imagine that your server could quickly get busy with a decent amount of users. You may also want to reconsider the data that you are transferring within your JSON. It looks like you are sending along a list of friend IDs; having many friends whose IDs have to be transferred every 500ms (?) for several users could do bad.

In the end, it probably doesn't matter (at least not for quite a while), but I just had to comment on it. :) Other than these details, I like what you have done!
Blogging about PHP and other programming related subjects at CodingExplained.com.

#84 shortysbest

shortysbest

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts
  • LocationMaine

Posted 22 January 2013 - 04:00 PM

Thank you for your feedback.

I actually don't poll the server for all of the new content, I use websockets for that. The one continuous polling action that I do still have in place is a minor one for checking something i don't even remember what at this point actually. But yes everything else is "pushed" via websocket technologies. The list of friend ID's that get sent along are for telling my push server which users are able to recieve live data from users. So for instance, if you're not friends with user A then it won't send it. SOmewhere along the lines of that, it's just something I had to do in order to stop the push data from being sent to everyone on the site regardless.

#85 White_Lily

White_Lily

    Advanced Member

  • Members
  • PipPipPip
  • 521 posts

Posted 23 January 2013 - 06:30 AM

Just a quick question, you have a "Find Friends" tab, which at the moment seems to list all members, but where is the search bar?

"In order to be irreplaceable, one needs to be different from another."

CMS Development: http://cms.janedeaslart.co.uk/


#86 White_Lily

White_Lily

    Advanced Member

  • Members
  • PipPipPip
  • 521 posts

Posted 23 January 2013 - 06:33 AM

have you also considered letting people choose their own background? (either have a range of "default" backgrounds, or allow users to upload there own?

"In order to be irreplaceable, one needs to be different from another."

CMS Development: http://cms.janedeaslart.co.uk/


#87 shortysbest

shortysbest

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts
  • LocationMaine

Posted 23 January 2013 - 12:23 PM

Just a quick question, you have a "Find Friends" tab, which at the moment seems to list all members, but where is the search bar?


Yeah I haven't gone into designing the find friends page very much. I've still got to build that page up. However on the homepage you can search for people.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com