Thursday, 7 January 2010

Change Change Change

Straight into it, The date of birth in users profiles has now got a jQuery date picker, Though it currently not 100% perfect as its very oddly large (unsure why) and it gives the date in USA form which can create a error as the DD and MM are swapped.

Images and Videos when uploaded are restricted to extensions limits and if they aren't of the correct type then a null is returned and the controller deals with it appropriately.

Main point of today is settings, Which meant creating a new table, I was first going to add it all the the members table but found validation, email/username causing issues when changing settings. So I have separated it into two, members and settings table which works nicely and the settings primary key is simple the memberId, So in reality its actually a foreign key making it a one to one relation.
Now hitting the "Account" button at the top of page bring you to picture shown which at moment only gives you two options. Contact number and Email hide or show. Which update correctly on the portfolio view!

To stop errors I had to make sure a new settings record was created and attached to the member record when a new user first signs up. This also works, as I did quick run through test of the sign up and edit portfolio process.

Users can now sign up, Create the portfolio, Edit settings, Add tabs, Add text,title,images and videos to that tab and delete any of them items as well. Which if done 100% correctly works but there is still Alot of validation which can produce errors if filled in incorrectly. This will be addressed at a later date.

Current Mini ToDo List
  • Work on Gallery uploading
  • Ability to move items
  • Implement jQuery validation
  • Overview Video fails when browsing other peoples portfolios
  • Must check that when the Email/Password check is done that its test case sensitive
  • Change the date picker to UK
  • Maybe add a Last Login field to a member and update it on logging in

No comments:

Post a Comment