Announcement

Collapse
No announcement yet.

How to make public profile?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make public profile?

    Hello to SC members,

    I need some hints on how to create something similar to Public Profile of Social network. What application to use, how to control it's URL and any other useful hints.

    Please advice, thank you.

  • #2
    That means that the profile belongs to the loggedon person. I assume you have the email as primary key? When a user create an account create an empty profile in the onafterinsert event by firing some sql (insert into profile ... etc).

    Then create a profile form. Go to toolbar and remove the insert/add and delete button. Apply the where userid=[glob_userid] to the sql statement, providing that you have saved the userid in the global variable at logon. That's it. If the user goes to the profilepage his own profile is shown and the form is forced into update mode. As simple as that.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi,

      It's not only for logged user. Think of it as a Public Data Container, the shown data will be depends on the URL parameter which suppose to be the identifier field as part of the URL calling the container.

      And I plan to use the "ownerid" that I will create in Security Module generated "user" table as identifier.

      Such as a Facebook Public profile, access it by different URL with parameter option.

      Please advice, thank you.
      Last edited by lesliez; 11-04-2013, 12:25 AM.

      Comment


      • #4
        To retrieve the url parameter you can use $_SESSION, $_GET php superglobal variables. Depending on the value you can create a sql select where....
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Hi,

          Thanks for your advice, but that seems a bit technical. Can give a more beginner example? Such as which app type to create, how to select which data to display and how to arrange the layout of the content. Please advice, thank you.

          Comment


          • #6
            Look at the videos on scriptcase.net. A little personal initiative should already be ...
            Best regards: - Reinhard -

            I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

            Comment


            • #7
              Hi RHS,

              I have look at all the videos on SC website. Do you mind at least give some hints on which part of the videos I should be more carefully looking at to achieve what I need?

              Comment


              • #8
                There are some introduction video's to start with if you are a novice user. Then, depending on your need you can take separate video's. But I would start with all the video's on http://www.scriptcase.net/watch-scri...video-courses/

                It will show you a lot about the working of scriptcase. I might take some time to watch them all, but I'm sure it will save you a tremendous time afterwards.
                Albert Drent
                aducom software netherlands
                scriptcase partner, reseller, support and (turn-key) development
                www.scriptcase.eu / www.scriptcase.nl

                Comment

                Working...
                X