2016-11-14, 04:52 PM
Tornado Mitr
2016-11-14, 05:31 PM
ACP > General Configuration > Friendly Redirect Pages.
You can turn them off fully there.
You can turn them off fully there.
2016-11-14, 05:54 PM
yeah i know. But i need to have it done in user cp as set that way.
I already have friendly redirect pages set to off.
I am using the inline messages plugin which uses the friendly redirect checkbox value to switch to turn inline messages on or off. So if redirect messages is checked, this popup msg is off, if it is unchecked, it is on. And i would like to default this to on...but by default
EDIT:
I just realized an easier way to explain it would be if i want the user to have the option to turn them off for themselves, but default it in their user cp to something other than what is now
I already have friendly redirect pages set to off.
I am using the inline messages plugin which uses the friendly redirect checkbox value to switch to turn inline messages on or off. So if redirect messages is checked, this popup msg is off, if it is unchecked, it is on. And i would like to default this to on...but by default
EDIT:
I just realized an easier way to explain it would be if i want the user to have the option to turn them off for themselves, but default it in their user cp to something other than what is now
2016-11-14, 06:49 PM
You will probably need to make a core code edit - usercp.php
Approx line 988
if(isset($user['showredirect']) && $user['showredirect'] != 0)
{
$showredirectcheck = "checked=\"checked\"";
}
else
{
$showredirectcheck = "";
}
Change to:
if(isset($user['showredirect']) && $user['showredirect'] == 1)
{
$showredirectcheck = "checked=\"checked\"";
}
else
{
$showredirectcheck = "";
}
Edit: although if you set redirect pages to off from ACP, then the logic will set the option to unchecked for new registrations.
Approx line 988
if(isset($user['showredirect']) && $user['showredirect'] != 0)
{
$showredirectcheck = "checked=\"checked\"";
}
else
{
$showredirectcheck = "";
}
Change to:
if(isset($user['showredirect']) && $user['showredirect'] == 1)
{
$showredirectcheck = "checked=\"checked\"";
}
else
{
$showredirectcheck = "";
}
Edit: although if you set redirect pages to off from ACP, then the logic will set the option to unchecked for new registrations.
2016-11-14, 07:12 PM
(2016-11-14, 06:49 PM)Ashley1 Wrote: [ -> ]You will probably need to make a core code edit - usercp.php
Approx line 988
if(isset($user['showredirect']) && $user['showredirect'] != 0)
{
$showredirectcheck = "checked=\"checked\"";
}
else
{
$showredirectcheck = "";
}
Change to:
if(isset($user['showredirect']) && $user['showredirect'] == 1)
{
$showredirectcheck = "checked=\"checked\"";
}
else
{
$showredirectcheck = "";
}
when i change this file, and make a new account, the user cp is still checked for redirect pages option.
2016-11-14, 07:13 PM
See my edit on the previous post
2016-11-14, 07:17 PM
Quote:although if you set redirect pages to off from ACP, then the logic will set the option to unchecked for new registrations.hmm...then this seems like an impossible endless loop
wait i read that wrong. The redirect pages are off. But its always checked by default.
2016-11-14, 07:28 PM
(2016-11-14, 07:17 PM)metulburr Wrote: [ -> ]Quote:although if you set redirect pages to off from ACP, then the logic will set the option to unchecked for new registrations.hmm...then this seems like an impossible endless loop
wait i read that wrong. The redirect pages are off. But its always checked by default.
If that's the case maybe the plugin you are using is interfering - i don't fully follow how that works
2016-11-14, 09:10 PM
the plugin i am using is
https://mods.mybb.com/view/inline-success-messages
https://mods.mybb.com/view/inline-success-messages