close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

regisytration and logged in

Thread began 10/12/2016 10:23 am by Jamie | Last modified 10/13/2016 2:53 am by Ray Borduin | 344 views | 2 replies |

Jamie

regisytration and logged in

Hey Ray

couple of questions

On the attached user updfate page, how do I filter based on the logged in status? For example, if I wanted to use an if statement how would I do it?

And on the same page, I only want the password to be changed if the user wants to change it but if they are left blank then the existing password is retained in the db. I have set a hidden field for Password but not sure how I would get it to update depedning on whetehr the visible fields have content or not.

Cheers

J

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure what you mean by filter based on logged in status. You are already filtering based on a session variable that is set when they log in, so it should be using the logged in user record.

To only update the password when it has changed, bind the value to:

<?php echo(($_POST["Password"] != "")?$_POST["Password"]:$row_SecurityAssistpcms2_users['UserPassword']); ?>

Sign in to reply to this post

Jamie

figured it out and using a combination of <?php if($_SESSION["SecurityAssist_UserID"]){ ?><?php } ?> and <?php if(!$_SESSION["SecurityAssist_UserID"]){ ?><?php } ?> to hide / show content based on logged in status

Thanks rte the password binding

Jamie

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...