close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Success Notification Using Show Region

Thread began 12/29/2011 5:20 pm by mora398588 | Last modified 1/03/2012 3:01 pm by mora398588 | 884 views | 8 replies |

mora398588

Success Notification Using Show Region

I would like to use SA show region feature to show a "success notification" image when a user updates there user profile.

I have attempted to create a new rule for this function in SA, but I am a little stumped as to how to go by it. The page uses an "update" button that updates the users contact info in a sql database.

Here is the rule I attempted to create in SA:

case "Success Notification UserProfile":
$comparisons[0] = array(TRUE, "".((isset($_POST["Update"]))?$_POST["Update"]:"") ."", 1, "true");
break;

I have attached my file for your review. Could you review my page and provide any assistance?

Thank you.

Attached Files
users_Profile.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the insert record behavior, set the success redirect to pass a querystring variable to the profile page:

users_Profile.php?updated=true

go to the bindings panel, click the plus button and select URL Variable, name it "updated"


now create your security assist rule to use the "updated" query string variable instead of the POST variable.

Sign in to reply to this post

mora398588

Jason, thank you for your reply.

I followed your directions to the best of my ability and I was unable to get the show region to work. I noticed in your reply that you mentioned the "insert record behavior.' I was unable to locate such a behavior. However, I did find an 'update record behavior.' This was the behavior I used to insert the query string variable. Please reference the attachment of my users_profile file which reflects the changes I recently made.

Here is the SA rule that I created...

case "Success Notification UserProfile":
$comparisons[0] = array(TRUE, "".$_GET['updated'] ."?updated", 1, "true");
break;

Please note that I have been uploading the SA 'Helper_PHP' and the 'HelperGroupsRulesPHP' files to my server when I modifying the SA Access Rules.

Thank you for your continued assistance.

Attached Files
users_Profile.zip
Sign in to reply to this post

Jason ByrnesWebAssist

are you hand coding this? ou should create the rule in the access rules manager not by hand coding it, the code for this rule looks completely wrong.



in the access rules manager, click the lightning bolt next to value and select the "updated" querystring variable. set the Criteria to "=", for the comparison enter "true"

Sign in to reply to this post

mora398588

Hello, Jason.

The code I provided was taken out of the 'HelperGroupsRulesPHP' files located in my webassist directory.

I thought by showing you the code, you may see what SA Access Rules Manager is creating. I did not hand code the access rule. I used SA Access Rules Manger to create the rule.

The instructions you provided in your last reply was the exact process I used to create the rule.

Does this clarify thinks?

Sign in to reply to this post

Jason ByrnesWebAssist

this line:
$comparisons[0] = array(TRUE, "".$_GET['updated'] ."?updated", 1, "true");


should be:
$comparisons[0] = array(TRUE, "".((isset($_GET['updated']))?$_GET['updated']:"") ."", 1, "true");

Sign in to reply to this post

mora398588

Should I insert this updated line of code in the 'HelperGroupsRulesPHP' file in webassist directory?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, in the webassist/helpergroupsrulesphp.php file, change:

php:
$comparisons[0] = array(TRUE, "".$_GET['updated'] ."?updated", 1, "true");



yo:

php:
$comparisons[0] = array(TRUE, "".((isset($_GET['updated']))?$_GET['updated']:"") ."", 1, "true");
Sign in to reply to this post

mora398588

That's it.

The code apparently was the issue. Thank you so much.

I appreciate your help...as always!

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