Esta es una guía phpBB3, para que nuestro foro haga redirección instantánea luego de:
- Dar Gracias
- Quitar Gracias
Buscar:
Código: Seleccionar todo
$lang_act = 'GIVE';
send_thanks_pm($user_id, $to_id, $send_pm = true, $post_id, $lang_act);
if ($config['thanks_info_page'])
{
meta_refresh (1, append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
Código: Seleccionar todo
$lang_act = 'GIVE';
send_thanks_pm($user_id, $to_id, $send_pm = true, $post_id, $lang_act);
if ($config['thanks_info_page'])
{
//-- redirección instantanea por softeo ------------------------------------------------------------
//meta_refresh (1, append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
//-- fin redirección instantanea por Alorse ------------------------------------------------------------
Código: Seleccionar todo
$lang_act = 'REMOVE';
send_thanks_pm($user_id, $to_id, $send_pm = true, $post_id, $lang_act);
if ($config['thanks_info_page'])
{
meta_refresh (1, append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
Código: Seleccionar todo
$lang_act = 'REMOVE';
send_thanks_pm($user_id, $to_id, $send_pm = true, $post_id, $lang_act);
if ($config['thanks_info_page'])
{
//-- redirección instantanea por softeo ------------------------------------------------------------
//meta_refresh (1, append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id#p$post_id"));
//-- fin de redirección instantanea por softeo ------------------------------------------------------------
Gracias Alorse por este tutorial que me sirvió de ejemplo: Redirección instantanea | Login | Post | ACP