Seite 1 von 1

Bookmarks Mod by Philipp, question about redirect

Verfasst: 28.01.2006 06:10
von fahraeus
Philipp,

When I add a bookmark, redirect goes to the topic. How can I make it redirect to the list of bookmarks instead, or to index?

Verfasst: 28.01.2006 08:00
von Triplex
Hi fahraeus,

im not sure, but try this:

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------------
#

$redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=" . $HTTP_GET_VARS['highlight'];

#
#-----[ REPLACE WITH ]----------------------------------------
#

$redirect = "index.$phpEx?";

#
#-----[ FIND ]------------------------------------------------
#

	remove_bookmark($topic_id);
		}
	}
	else
	{
		if (isset($HTTP_GET_VARS['setbm']) && $HTTP_GET_VARS['setbm'])
		{
#
#-----[ INLINE FIND ]------------------------------------------------
#

	}
	else
	{

#
#-----[ AFTER ADD ]------------------------------------------------
#

$redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=" . $HTTP_GET_VARS['highlight'];
I hope this will help you.

So long,
triplex.

Verfasst: 29.01.2006 16:05
von fahraeus
Thank you very much for your reply Triplex, I will try this shortly and get back to you with the results... :)

Verfasst: 29.01.2006 16:49
von fahraeus
It works perfectly. :D

Thank you so much again!