Showing posts with label social network. Show all posts
Showing posts with label social network. Show all posts

Saturday, 14 March 2009

Social network #5

I have created a night’s page that has all the nights listed and a link next to each for the member to join them. This however is going to have to be included within the site simply as a design of the page as with the time we have left I will not be able to achieve this as the coding would be complex.

I have also created a larger form from the simple comment form I have already achieved within the night profile pages for the homepage as a registration form. However at the moment I only know how to input text fields and a registration form has to include other data such as dates for example. Therefore it will either have to be submitted partially working or similar to the night join page be included simply for design aspects.

Social network #4

I have now achieved a working login and changed the coding of the SQL statement so the ‘WHERE’ is related to the login id of the user. Initially I had the login on the profile page with a link from the home page and had the PHP underneath the login to show the profile however when trying to add sessions this caused problems and the user wasn’t being recognised when returning from visiting other pages within the site.

I therefore decided to have the login on the homepage and then a menu link to the profile to over come this problem as others had achieved successful sessions by doing it this way. Once I had then added the session coding to all the pages when the member moved within the site their session was remembered. The only problem I now have is that I wanted the ‘log out’ button to both log out and return to the homepage, unsure on how to achieve this I overcome this problem by having the logout button within the profile page return to the homepage where you then have to click the ‘log out’ button to fully log out of the session.

Social network #3

I then completed the same as I had for the profile page discussed before but instead sucked the data on the night from the database. I will create a page for each of the nights individually and create links from the member profile to them so the member can only view the information on the nights they are part of. At the bottom of the page I have a simple form that inputs comments into to the database and then displays them next to the form on the page once submitted. At present I am having a few issues with the form as it seems to enter a blank input every time the page refreshes however I am hoping to sort this within a surgery session with Simon.

Social network #2

The first pages I created where the profile pages for the members as this involved sucking data out of the database, which I could now achieve successfully. Once I had the data how I wanted in PHP I could then apply CSS to it and fit in into the feel of the design. The profile page coding will need to be altered when I look into logins so that the data shown is dependent on the log in id but to test I simply have the information showing from one member. I also want to have a section in the lower half titled my nights with picture links to the night page according to which night groups the member has joined. However at the moment I am unable to achieve this as my linking table does not seem to be working correctly but I am hoping to resolve this after a surgery session.