PDA

View Full Version : Redirect after warn is wrong


GoTTi
08-19-2005, 09:12 AM
after i warn a user, its redirecting me to:

www.site.com/admincp/user.php?do=edit&userid=XXXX (http://www.site.com/admincp/user.php?do=edit&userid=XXXX)

not /forums/admincp/xxxxxxxxxx

what would be causing this?

sv1cec
08-19-2005, 10:49 AM
Edit your admincp/admin_warn.php file and find:


if ($return=='user')
{
$url="/$admincpdir/user.php?do=edit&userid={$_POST['id']}";
}


Try replacing that with:


if ($return=='user')
{
$url="$admincpdir/user.php?do=edit&userid={$_POST['id']}";
}


Let me know if this works.

GoTTi
08-19-2005, 11:45 PM
that code to search for is not in my .php file

sv1cec
08-20-2005, 04:57 AM
Sorry, I meant to search for it in Warn.php. Apologies.

GoTTi
08-21-2005, 01:34 AM
that worked, thanks

sv1cec
08-21-2005, 05:47 AM
Good, at least we have one of your issues solved.