close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

visitor login question

Thread began 10/06/2011 12:08 pm by johna1964 | Last modified 10/08/2011 5:56 am by johna1964 | 2167 views | 6 replies |

johna1964

visitor login question

Hi!

My question is regarding after a person has logged in. The redirect takes the same page however with a show region of "you have been logged in, but it continues to show the login form. What do I need to change to make the form disappear after log in, but still be able to see the log in confirmation.

People are becoming confused about seeing the login again.

Thanks!

johna1964

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your login page please.

Sign in to reply to this post

johna1964

Hi Jason,

Here is the login.php file

Thanks for your help... :)

Johna

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code just before the login form tag:


php:
<?php if(WA_Auth_RulePasses("Log in success")){ // Begin Show Region ?>



so it looks like:

php:
<?php if(WA_Auth_RulePasses("Log in success")){ // Begin Show Region ?>

<form class="Basic_Default" id="LogIn_Basic_Default" name="LogIn_Basic_Default" method="post"  action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">





then add this code just after the closing form tag:

php:
<?php // End Show Region ?>





so it looks like:

php:
</form>

<?php // End Show Region ?>
Sign in to reply to this post

johna1964

Jason,

I did exactly as you told me. What happened after making the change and uploading is the user trying to log in only sees the word Log In with no form to do so.

I removed the code and uploaded, so I'm back to the initial issue.

Can you see anything else that is causing the problem?

Thanks!

johna1964

Sign in to reply to this post

Jason ByrnesWebAssist

sorry, this line:
[php]<?php if(WA_Auth_RulePasses("Log in success")){ // Begin Show Region ?>[php]

should be:

php:
<?php if(!WA_Auth_RulePasses("Log in success")){ // Begin Show Region ?>
Sign in to reply to this post

johna1964

Got it...

Jason,

Perfect! Thank you - this worked.

Johna

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...