Auto create profile page for users that register? Please help!

Hi everyone,
I am building a site along with other people and I am the main web designer. I need to know how to have my site automatically create a users profile page when the said user registers on the site. Something very similar to YouTube or MySpace. Example: If a user where to create an account with the username bob678 the site/code would a page called examplesite.com/userid/bob678 (like I said before very similar to YouTube). I cant seem to find the answer to this anywhere but I know it is possible. Any and all help is very appreciated!
PS. I already know how to allow people to register, I just need it to create a page for them.

Ok here it is. How to create the profile page automatic after registering. I'm assuming you have created a "register.php" page and a "login.php" page. Both pages have a relationship with your database tables using PHPMySQL as well. When you created the login.php page a session variable was created. You can find it on the login page only when viewing the page in code view. The session variable will be named "MM_Username"  this is case sensitive. Remember this variable.
Step 1-
        Create a new blank.php page. and save it as myprofile.php
Step 2-
        In the bindings menu under applications on the side click the + and choose "Recordset Query". Then stay in the Simple Mode and choose the database connection. Then choose the table containg the columns that you created for your register.php page. Keep the all radio button too. Then choose the database column you designated to be used for storing the username and proceed to:
                                                                                     Filter: "username"              =
                                                                                               "Session Variable"    "MM_Username"
                                                                                               "Sort"                       "None"
Step 3-
       In the Server Behaviors menu click +, User Authentication- Restrict Access to Page. Set "If access denied, go to: login.php". Then click + again, User Authentication- Log Out User.
Step 4- Insert a table on the page body. Then In the Bindings menu open the + sign of your created recordset. This will display all the columns in your database table. Place the cursur inside the page body table. Then highlight the "username" column from the Bindings menu and click the insert button. This will display the username. Repeat with all columns you wish to be displayed. Save this page.
(Remeber to edit your login.php page by setting "If login succeeds, go to: myprofile.php)
Step 5-  "Synchronize Sitewide".
Step 6- Now test the function you just created by starting from the top:
Register as a new user. Once you have submitted your user information go to your login page and login with your new username and password. And if login succeeds, you will go to: myprofile.php. Once the myprofile.php page loads, your username and all the columns you inserted will be displayed. Try registering a second user and see the automatic profile page create.
The secrete in this process is the recordset query being:
                                                  Filter: "username column" = "SESSION VARIABLE" "MM_Username"
Setting up th recordset to be filtered by username tells the page to only display the records of the username that is logged in. If you were to keep the recordset query filter to "None" then every user records will be displayed on the page creating like a directory/phone book page.
To sum things up make sure to save the page as a .php first thing. Then create the recordset query. Then restrict access to the page. Then add the log out to the page. This must be done in that order before anything else.

Similar Messages

  • " loading failed please check your page for  java script errors" please Help

    recently my project starts crashing.... when it loads it gives a java scrip error .. saying " loading failed please check your page for  java script errors"

    Hey, If you have an error, you should see the error in Edge and you can correct it. In the window/code there will be a red dot too.

  • Automatically create a profile page when user registers?

    Hi everyone,
    I am building a site along with other people and I am the main web designer. I need to know how to have my site automatically create a users profile page when the said user registers on the site. Something very similar to YouTube or MySpace. Example: If a user where to create an account with the username bob678 the site/code would automatically create and directory called examplesite.com/userid/bob678 (like I said before very similar to YouTube). I cant seem to find the answer to this anywhere but I know it is possible. Any and all help is very appreciated!
    PS. I already know how to allow people to register, I just need it to create a page for them.
    Thanks

    If you want to actually create a physical directory, then you would call your server side scripting's file system functions. FWIW, many of the site's you've seen probably do not use physical directories. In many cases, the data is saved in a database and the server uses the rewrite engine to make the location more human readable.

  • How to get the page layouts programmatically and create a page for that pagelayout

    how get the page layouts programmatically and create a page for that pagelayout and add webpart
    please help me with da code.Thanks
    adityadugyala

    Hi if your page layouts alreday created then create new page programaticaaly  and apply your page ayouts to that page by coding you can do something like following
    PublishingWeb publishingWeb =
    PublishingWeb.GetPublishingWeb(web);
    PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
    PageLayout layout = layouts[0];
    string pageName =
    "MyPublishingPage5.aspx";
    PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
    "/"+ pageName, layout); 
    newPageUrl = web.Url +"/" + newPage.Url;
    newPage.Description = "This my sample publishing page";
    newPage.Title = "My Publishing Page";
    newPage.Update();
    Please follow link
    http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
    Please mark answer , if you think answer is helpful or correct.

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • Could not read the profile path for user S-1-5-21-1272265863-3531003469-187

    hi
    I was doing the installation of the crm702 on MAXDB+WINDOWS.IN THE FIRST PHASE OF EXECUTION(CREATE USERS FOR SAP SYSTEM) I GOT THE ERROR MENTIONED BELOW.CAN SOMEONE HELPE ME    :
    An error occurred while processing option Enhancement Package 2 for SAP CRM 7.0 > SAP Application Server ABAP > MaxDB > Central System > Central System( Last error reported by the step: Could not read the profile path for user S-1-5-21-1272265863-3531003469-18741865-1021 from the registry: The system cannot find the file specified. .). You can now:
    Choose Retry to repeat the current step.
    Choose Log Files to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:/crmfeb.

    Hi,
    Delete all keys in registry (regedit) with: S-1-5-21-1272265863-3531003469-18741865-1021. You can do it by find it - F3.
    After that restart sapinst.
    Regards.

  • HELP! How do I create a page for clients and talent to login and info...

    I need to create a page for interested clients to register to my site and then browse talent for promotions...I also need talent to be able to register and store their photographs and information so that potential clients (and I) can browse through their info... This obviously needs to be two different things...How do I do this???

    This old thread may help:

  • How to get pages list for a group space or create a page for a group space

    hi All,
    I am using wc11.1.1.3, I want to use java api to implementing the following functions in site template:
    1. Get pages list for a given group space
    2. Create a page for a given group space
    I researched the following codes from web site:
    PageDef newPage = mPageService.createPage(
    PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
    "MyPageTemplate1.jspx",
    "/mytemplates/",
    null, null, null);
    What should be used instead of PERSONAL_USER_PAGE if a group space page is intended to be created? which parameter is for defining group space name that the page should be created for?
    By the way, PageService seems has method for getting list of pages, but how to use it to get page list which is in a specified gs?
    Best regards

    did you manage to get the page list using Page Service API?

  • I want to create home page for my application with short URL

    I want to create home page for my application with short URL
    as when I want user to use my application user must go to URL like this
    http://127.0.0.1:7101/My-Project/faces/app/empModule/allEmployees/viewMyEmployees.jspxI want the user to use short URL , How can I use shorter URL not all this one.
    I want shorter URL for my application not to write full path .
    thanks in advance.
    Edited by: user611775 on Oct 31, 2010 10:21 PM

    Well,
    it's up to you. The first part (Mcit-Project-ViewController-context-root) is the context root which you define in the view controller project. 'faces' is the name the servlet filter reacts on. You can't omit it but shorten it in web.xml. The rest is your directory structure. I'm not sure how to shorten this other as to move the jspx files back into the web root folder.
    By the way an ADF faces app never uses the .jspx at the end of the url. If you specify '.jspx', you only render the page but don't start the work flow.
    Timo

  • Will there be an update in Pages for ipad that will allow for sub scripts and superscripts

    I am a chemistry professor who loves to work on the ipad. The problem I have is that the mathematics I use and chemical equations is use in my writings need both super scripts and subscripts. I would love to use my ipad for this, but presently, the only way I can do this is with a third party app that allows me to create the formulas and the paste them in the document I am working on. Will there be an update to Pages for ipad that will allow subscripts and super scripts. I would love to move away from my Office 2010, but the support is not there yet.

    We cannot speculate about future Apple products. We know no more about this than you do at this time.
    You can suggest it to Apple at Apple Feedback.

  • Create a screen for user input in BI

    Hi Experts,
    I want to know can i creat a screen for user input in BI with module pool programing
    and i want to store the data in ztable in SAP-BI.
    Moderator message: please search for available documentation, these forums are no substitute for ABAP training.
    Edited by: Thomas Zloch on Dec 10, 2010 8:37 PM

    I'm afraid that I cannot get it. I had a look at the docs you suggested before posting, and still, no luck (...)
    JOptionPane.showMessageDialog(dialog, "Please input info");Can you please tell me what I'm doing wrong and I cannot add the JDialog to the JOptionPane?Re-read the API and tutorial. JOptionPane is meant specifically to spare you from instantiating manually a JDialog. The showXxxDialog(...) methods do create a JDialog of their own, based on the contents supplied as arguments.
    In particular, using the 2-arguments variation showMessageDialog(Component parentComponent, Object message):
    - The first argument parentComponent is not be the dialog you want to display, but the component over which you want the dialog to appear. The most typical value are this or null.
    - The second argument is the "message" to display, but as described in the API, it can be a JComponent, that is, even a JPanel with child widgets (in a word, a JPanel containing the specific form you'd display in the dialog if you were writing the dialog manually).
    Again, at the risk of insisting densely, I'm only quoting the API an tutorial, so please read them attentively.
    Edited by: jduprez on Nov 2, 2009 2:29 PM - Sorry Kevin, hadn't seen you latest reply. I completely subscribe to the thought process you recommend.
    Edited by: jduprez on Nov 2, 2009 2:32 PM
    Thinking about it further, I don't completely subscribe... Indeed it looks like a bad idea to make the OP wonder about dialog.setVisible() when JOptionPane enables him to forget about the hand-made dialog. I stand by my own advice ("JDialog" should not even appear in this code extract).

  • IIf I create a partition for Bootcamp that is at least 30 GB in size, is that all the storage I get when running Windows?

    If I create a partition for Bootcamp that is at least 30 GB in size, is that all the storage I get when running Windows?

    There are differences between each Mac and what the original configuration of the Mac is/was. If your Mac originally came with an Optical drive, burning the ISO to a DVD and using it will work. Hardware modifications like Optibay will cause problems. Modifying Bootcamp info.plist will cause problems. Disk Utility partitioning will cause problems. A custom Hybrid MBR will cause problems. External Optical drives are unlikely to work. There is long litany of grief.

  • Is there any way I can create a form for Muse that will integrate with their Python backend system?

    Attention Anyone that my be able to help PLEASE
    I have a client that I am building a website for in Muse and they have a backend system thru "Python" that I am guessing runs their information. So basically im asking is there any way I can create a form for Muse that will integrate with their Python backend system? Have any ideas? I really need a large form that will work with "Python"
    Thanks A Bunch!!! Dan

    ITBobbyP hi again,
    Excel formats are not backward compatible, you need to use the proper driver.
    Arthur
    MyBlog
    Twitter

  • ORA-31637: cannot create job SYS_IMPORT_SCHEMA_01 for user SYSTEM in impdp

    Hi All,
    During impdp i am getting this below error:
    ORA-31626: job does not exist
    ORA-31637: cannot create job SYS_IMPORT_SCHEMA_01 for user SYSTEM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPV$FT_INT", line 600
    ORA-39080: failed to create queues "KUPC$C_1_20090507123340" and "KUPC$S_1_20090507123340" for Data Pump job
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPC$QUE_INT", line 1606
    ORA-04031: unable to allocate 56 bytes of shared memory ("streams pool","unknown object","streams pool","fixed allocation callback")
    Also increase shared memory hence creating the same problem.
    Can anyone sujjest me what would be the cause?
    Thanks in advance...

    Increase parameter streams_pool.
    Set it for example to 100MB
    Then try again.

  • Where did strikethrough go? unable to find strikethrough button on Pages for ipad in version1.5, HELP!

    unable to find strikethrough button S on Pages for ipad in version1.5, HELP!
    look! and what's that dot thing?

    The following query runs for 10 mins on tbl with 1 mill records on sql server 2012 RTM, and for 1.5 min on sql server 2012 build 3128.
    Significant differences in duration are usually due to different plans.  As Olaf suggested, comparing the plans is a good first step.  Assuming the plans are different, I wouldn't be too quick to assume the difference is related to the software
    build.  Different plans are often due to differences in the row count estimates used to generate the plan so make sure the same indexes and statistics exist in the databases and that stats are fully up-to-date.
    What is the purpose of the WHERE clause? It seems to me it will return all rows anyway.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Maybe you are looking for

  • How can I install windows 7 using boot camp, if the partition will not format correctly?

    Hi All, I'm new to this forum and have had a chance to look around a little bit, but haven't really found an answer to the problem that I'm having. I have an imac and I'm attempting to use boot camp.  I have used it in the past, with prior versions o

  • How do you delete your apple ID forever

    HOw???

  • GetRequestedSessionId() returning null

    Hi! I have a problem regarding sessions, it is, I have a JSP with a session then a link (or a form) to a servlet, the servlet does not sees the jsp session, so I'm passing it via jsessionid in the next way: http://domain/page/servlet;jsessionid=19282

  • Sending parameters in VC

    Hi experts, here's my problem. Simple one... I've got a web service with two methods. The response parameter of method "A" is the input parameter for method "B". Which elements do I have to use to communicate this two methods? Which steps? I can't se

  • Vault question

    Perhaps this is dumb question, but I don't use Vault nor I have the need, my Aperture library is on a second internal HD, which is automatically backed up to an external by backup software. My question is that on the splash screen Aperture says "Item