I want to make a extension to change the redirect variable when a user add or edit a reply. I want to use the forum_submit_post_end hook, but i can’t make it work. I have the following code:
function redirect_to_reply ($thisdata, $data)
{
global $EXT;
if ($thisdata->current_request == 'newreply' || $thisdata->current_request == 'editreply')
{
$thisdata->redirect = $thisdata->_forum_path('/viewreply/'. $data['post_id'] .'/');
}
$EXT->end_script = TRUE;
}Can anybody help me?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.