Jump to content

User Control Panel

- - - - -

  • Please log in to reply
6 replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
Hello all,

I've recently complete my site's login system and wish to implement a User Control Panel to allow users to manipulate their profile page.

I have some rough ideas and was wanting some more ideas from some more experienced PHP programmers on CodeCall.

The UCP should:
  • Allow for text modifications (adding text, taking text, etc.)
  • Changing CSS (loading an external CSS stylesheet from a selection-maybe a variable with the filepath)
  • To save these modifications
  • To modify account data (passwords, emails, etc.)

Thanks.

Edited by Hunter100, 21 April 2011 - 03:43 AM.
Addition of requirements.

Jack
Creator, Owner, Webmaster
Brezerd.net

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Do you need help on doing these, or do you want more features to add?
sudo rm -rf /

#3
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
Currently, features to add (as it's still in planning) however, later on when the actual coding starts I may need help.
Jack
Creator, Owner, Webmaster
Brezerd.net

#4
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
I suggest you allow them to use BBCode as it is really hard to implement HTML without XSS vulnerabilities. You could write the HTML to a non-accessible file with their UID or username as the filename. You could even XOR the data with their username+random number. Plenty of ideas

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
From what you have given in the original post, it is nearly impossible to suggest what you should add to an unknown website with an unknown profile structure. You could be forming business profiles, in that case styles may be a little silly, or may be forming a social network - some background could be helpful.

Can you think of features that would complement the content on your site? That can be unique from other examples?
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#6
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
The link is in my signature (to the website anyway), but the user homepage's are currently static (which suits the system-currently).

An example of one is here.

Technically, it is a social network, but not fully what I intend. If it becomes one I'll be happy (like the community here on CodeCall).

P.S. the constant definition errors, are irrelevant as I don't intend to keep the page for very long so I haven't defined the page data constants.
Jack
Creator, Owner, Webmaster
Brezerd.net

#7
RHochstenbach

RHochstenbach

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts

Hunter100 said:

Hello all,



The UCP should:
  • Allow for text modifications (adding text, taking text, etc.)
  • Changing CSS (loading an external CSS stylesheet from a selection-maybe a variable with the filepath)
  • To save these modifications
  • To modify account data (passwords, emails, etc.)

You could use a database to store user preferences (where each user has a unique ID). For example, you could apply the stylesheet like this:

// First collect the userid. This line is just a basic example of that:

$userid = $_SESSION['userid'];


$getstyle = mysql_query('SELECT style FROM users WHERE userid = $userid');

$style = mysql_fetch_array($getstyle);

$mystyle = $style['style'];


if ($style == 1) {

echo "<LINK rel='stylesheet' href='style1.css' type=text/css' />";

}


if ($style == 2) {

echo "<LINK rel='stylesheet' href='style2.css' type='text/css' />";

}







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users