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.
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.
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.
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.
To retrieve the url parameter you can use $_SESSION, $_GET php superglobal variables. Depending on the value you can create a sql select where…
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.
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?
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-scriptcase-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.