![]() |
Redirect Previous Page
Hello,
I'm working on a plugin that when user Hits a button, an action (PHP Code) is executed and user is redirected to previous page. It's the same when you Log-in and get redirected to previous page. How to do that? Thanks in advance! |
if all you want to do is go back one page you just use JavaScript
<input type="button" value="Back" onclick="window.history.back();"> |
Quote:
I wanted to run a php code and then get back to previous page, like when you login in forum, any idea? --------------- Added [DATE]1374761990[/DATE] at [TIME]1374761990[/TIME] --------------- I got the solution and would like to share with you. I made a file "teste.php" at forum root, which includes "./global.php" and a desired custom PHP code, and finally I defined URL to be redirect in variable "$vbulletin->url = 'showthread.php?t=3' and used the function "print_standard_redirect('redirect message', false, true);" to execute the redirection. Here it goes: PHP Code:
|
All times are GMT. The time now is 02:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|