How to change ubercart's login text - text

When a user is redirected to the login screen after clicking the checkout button (because they are an anonymous user), I want to change the login message that reads,"You must login before you can proceed to checkout" to something more meaningful. I have Googled this and searched this site and not found how to do this. Any help would be appreciated.

This message is set in the uc_cart_checkout method in ubercart/uc_cart/uc_cart.pages.inc
See this post on how to override messages as set by drupal_set_message - Alter messages in Drupal 7

Related

Why does the popup for b2c_1_edit_profile disappear?

I have b2c_1_susi working. I am able to login. I'm using example code. However edit profile user flow is not working. I have the user flow created in the same fashion as susi. If I use redirect my app navigates back to home page. If I use popup, the popup comes up but then disappears. This is what I am getting in the console log.
Strangely, I ended up deleting and recreating the registration and it started working.
Make sure you add user attributes to your edit profile. You may already have user attributes on your sign up sign in profile but they do not get transferred over to the edit profile automatically

Event after login

Is there any event I can hook into to show/display a message after the user has logged in ? Like welcome screen with a short message from the company. And the user needs to click a button before proceeding. Otherwise, it's back to the login screen.
TIA
I am not aware of an event which triggers on log-in. Perhaps another approach might be for you to modify the Login.aspx so that you show this message before the user logs-in. I am not sure whether modifying this page is fully supported by Acumatica however. The Login.aspx is located in the Frames folder of the site.

How do I output someone's Steam 64 ID when they click on a button?

I'm trying to create a program in which, when you login with Steam and then there's a button, which when clicked the following happens:
If you are not logged in, it takes you to the login.
If you are logged in, it writes the user's Steam64ID onto a txt file somewhere in the site folder.
I currently read the steam web API documentation but i don't know how i can output someone's steam64ID with a button click. Can someone please help?
You could use this API in order to login the user, this returns their Steam64ID. You can then store this (perhaps as a cookie) and output it on the click of the button (assuming you use PHP for the cookies, you could use Ajax for this)

How to prevent browsers from remembering last logged user?

Let me start off with these sources I have found that are not helpful to me, because they are not asking the same thing, no matter how similar it might sound:
Disabling Chrome Autofill
Disable form autofill in Chrome without disabling autocomplete
Google Chrome form autofill and its yellow background
How do I stop Chrome from pre-populating input boxes?
And recently:
Should autocomplete="off" be used for all sensitive fields?
Essentially, these threads all suggest browser settings & adding the attribute autocomplete='off'. This is not a valid solution for me nor is it the issue that I am having. My issue is as follows:
Using Incognito Mode in Chrome:
User A clicks on "Patient Portal" to bring them to the login page. (Good)
User A logs into their account by filling in their email & password. (Good)
User A logs out of their account & is brought back to the Kiosk home page. (Good)
User B clicks on "Patient Portal" to bring them to the login page. (Good)
User B sees User A's email filled in the email field. (BAD)
User B can remove User A's email from the field & enter their own without Chrome's suggestions of previously entered emails.
It is not okay to retain a users email address on a public computer, how might I fix this issue?
Another developer was dynamically adding in the last logged email into the email field in a php file I did not have access to.
-_-

customize the session message of liferay

I work with liferay 5.2 ,
Liferay display in case of inactivity this message
warning,due to inactivity,your session has espired.please save any data you may have entered before refreshing
I want to customize this message , I want to display this message:
Due to lack of use of the system will be closed
instead of default message,
and also I want to display this message in the middle of the page instead of top of the page.
so I think that I should modify the css of the div of this message in liferay
You need create hook of Language.properties file and change the default value for below key
warning-your-session-has-expired=Warning! Due to inactivity, your session has expired. Please save any data you may have entered before refreshing the page.
so you can put like this
warning-your-session-has-expired=Due to lack of use of the system will be closed.
Thanks
If you read the below link i think you will find your an answer:
Liferay User Feedback - Success and Error Messages in Portlets
This Can help you changing session out message in theme

Resources