Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I allow users to create their own webpage/personal page?

    Hi,

    I would like to allow my registered users to create their own personal page(s) that they can style and use as they like. Their webpage would be www.mysite.com/johnFrank where johnFrank would be the user and his/her webpage. The only example I could think of that would be similar would be myspace. The only part that would be like myspace would be allowing the user to have their own webpage.

    here are some other examples: http://www.authorsden.com/judyakennedy, http://www.fanstory.com/selectprofi...p?userid=146629

    thanks,
    john

  • #2
    Regular Coder ttttt's Avatar
    Join Date
    Oct 2005
    Posts
    372
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, to create the actual page, you need to use a server-side language like php.
    The code would be something like this:
    PHP Code:
    <?php $file "/path/to/new/file.php";
    $create fopen($file"w");
    Then the administration would also be using php or another server-side language and a database program.
    NOTE:Allowing users to create their own pages is a HUGE security risk. Anything might happen. Be warned.
    Last edited by ttttt; 08-29-2006 at 04:50 PM.
    ttttt
    http://openoffice.org/- Microsoft Office without the Microsoft.
    [home page][forum]
    Versatile, free software

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts
    Make a profile or page template, then let them submite info, then they can ahve there page as a ID or something e.g: http://demo.com/profile.php?ID=01

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by Lee Stevens
    Make a profile or page template, then let them submite info, then they can ahve there page as a ID or something e.g: http://demo.com/profile.php?ID=01
    On top of that you could use mod rewrite so it changes say:

    http://yoursite/user/<username> to the profile.php?user=<username> to make easier URLs for your users.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •