2010-06-27, 03:19 AM
EDIT: The question still applies for situations where you have more than one variable; One variable is easy (see my third post for more details about passing one variable)
Hi,
What is the best way to do -->this (which should be easy) With MyBB and php?
--> If (I am logged in at the start)
then both the variable and the phrase are set and do 'echo' properly.
--> If (I am Not logged in at the start)
then only the phrase is set and will 'echo', after successful login.
Solution?
Passing the variable through the "error_no_permission" template is a start; then what?
Modify member.php / To accept and pass the variable?
Write a small plugin just to pass a variable?
What is the best way to do -->this (which should be easy) With MyBB and php?
Please give advice if you can, thank you.
Hi,
What is the best way to do -->this (which should be easy) With MyBB and php?
- Easy way to pass a variable through "error_no_permission();"?
define('IN_MYBB', 1);
require_once './global.php';
if($mybb->user['uid']) {
} else {
error_no_permission();
}
$return10= $_REQUEST["return10"];
echo $return10;
echo "You are logged in!";
--> If (I am logged in at the start)
then both the variable and the phrase are set and do 'echo' properly.
--> If (I am Not logged in at the start)
then only the phrase is set and will 'echo', after successful login.
Solution?
Passing the variable through the "error_no_permission" template is a start; then what?
Modify member.php / To accept and pass the variable?
Write a small plugin just to pass a variable?
What is the best way to do -->this (which should be easy) With MyBB and php?
Please give advice if you can, thank you.