WebSite X5Help Center

5 RESPOSTAS - 1 ÚTIL
Myron A.
Myron A.
User

Well, that was a very polite request.surprised

Ler mais
Publicado em de Myron A.
John S.
John S.
User

Hello Adam

You could on the protected page ( that already should be a php-page ) insert a html-object.

In the html object you put this :

<?php
$pa = new imPrivateArea();
$user = $pa->who_is_logged();
echo $user['realname'];
?>

You will then see the name of the logged in user.

Hope you are helped by this.

Kind regards

John S.

Ler mais
Publicado em de John S.
John S.
John S.
User

The code will not function in preview - only when uploaded to web.

Ler mais
Publicado em de John S.
Incomedia
Elisa B.
Incomedia

Hi Adam, 

thank you for your message.

Unfortunately, I cannot assure this feature will be available soon, I am sorry about this. Still, by using the code provided by John you can already have the wished result. Please consider that as the code is not already present in the software we cannot provide you with support about it. Still, in case of need you can search useful information about the custom code with search engines like Google or wait until someone on the community of Help Center can help you.

I wish you a lovely day. Kind regards.

Ler mais
Publicado em de Elisa B.
Adam D.
Adam D.
User
Autor

thank you that is very helpful actually . haha and yep you can tell i had enough of trying give it a good go for a week or 2 trying to create tables and database relations using mysql (wokbench) and phpadmin  trying to figure out the unique user identifiers etc retreiving only that users info also when using forms i wanted there information to save to columns in there id etc

even tried to reverse engineer wordpress blog using mysql workbench to figure a out good user database and well its extremely complicated 

The BEST way to easily fix this i think i to ad a button that when selected on the database veiwer only shows the current logged in users row of information from the database table  .

so if i had a list of columns in a table such as 

id   name   email  phone   etc 

when i insert a database veiwer i can choose logged in user only and then when the database is veiwed only the logged in users info will be displayed from that database . 

plus on the forms menu an option to save the information entered using the currentuser id  so the information entered when stored and then displayed in the database veiwer can be used with the new button

this way users can automatically register using your login object

then when they fill out a form it saves ina table say named table 1  say this form is personal details related

then when they view a page with a database object connected to the same table 

only there information would be displayed.

Ler mais
Publicado em de Adam D.