Web page is not loaded after activation [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
If users use the registration form to register, by going directly to the registration page , then they receive an e-mail with an activation link, and when they click on it, the index page of the logged-in section is loaded. This works fine.
But in the case where the (non-registered) user goes to the registration page by clicking a link to a restricted page, the e-mail activation link redirects to here.
Because of that additional http://www.studyhood.com inserted at the beginning of the URL, the browser returns an error message.
Finally, if the user logs in (not registers) after clicking on the link to the restricted page, everything is again fine, since she is taken to translation_second.php without any problem.

Related

How to check if user is logged in at custom page in Opencart [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a custom page in Opencart. In this page I am using PHP and Javascript based text editor. Now I need to check if user is logged in so that some more options are displayed. I had searched on Google but I did't find anything.
In Your controller (of that custom page) You can do this:
if($this->customer->isLogged()) {
echo "Customer is logged in and his ID is " . $this->customer->isLogged();
} else {
echo "Customer is not logged in";
}
This assumes that the custom page is within frontend and by user You actually mean customer (this assumption was done just because in backend every user has to be logged in prior to display any page).

How to use session id from one page to another page? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In home page (http://mysite.com/) Running in one separate page.
when click the login button from(http://mysite.com/) this page, it will be redirect to another page.
I want to do the following below:
Before login, on the home page the chat function will be offline..
After login the other page the chat function will be online on home page.
How do I link these two pages?
Make sure to use session_start(); at top of pages.
And make sure that when they log in, you set $_SESSION['loggedin'] == TRUE; and then unset the session var on log out.
if ($_SESSION['loggedin'] == TRUE){
//include chatbox code or whatever it is
}else{
//don't add an else if you don't want anything if not logged in, but if you do, code away here
}

Check Read and unread Message [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am trying to conditionally style user-to-user messages on my site based on the following:
If the user has not yet accessed the message, it remains bold ("unread").
If the user clicks the link and accesses it, it goes from bold to unbold ("read")
(reference: this is how many email inboxes work)
Question: How would I check if the user has clicked on the link to view their new message, or if they have not? As in, how would I store this information and indicate that it has been "read"?
Try adding a column to your messages' table (for example read) and set this column to 1 when the user has read his message?

How to Show div in an iframe [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Kindly how to show a form in an iframe when a user clicks on register link.When a user on example1.com clicks on register,the form of example2.com should be shown in an iframe. I don't want to show the header menu+sidebar+footer of example2.com.Just want to show its form which in .
Thanks in advance
Keep example1 in a separate iframe. while clicking register, give the link to example2.
For this you have to design a 3 html file.
1.Main holder
2.example1.html for iframe in main holder
3.example2.html for onclick register action
Visit this site for your preference. Click here

how do i force a user to go back twice on a mobile web page using php or javascript without the user clicking any link or button [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
how do I force a user to go back twice on a mobile web page using PHP or jAVASCRIPT without the user clicking any link or button.
something like using history.back() without a user having to click on anything
In javascript
function goBackTwice()
{
window.history.go(-2)
}
You may want to look into https://github.com/browserstate/history.js/ for a more robust client side solution.

Categories