Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: wgm - helmikuu 27, 2005, 08:10:13 AP

Otsikko: Move Topic
Kirjoitti: wgm - helmikuu 27, 2005, 08:10:13 AP
Wondering if the Move Topic can be changed to go straight to the topic with board name instead.

$txt['movetopic_auto_topic'] => '[iurl]' . $scripturl . '?topic=' . $topic . '.0[/iurl]'


Example: This topic has been moved to Testing (to topic)

Thanks.
Otsikko: Re: Move Topic
Kirjoitti: Oldiesmann - helmikuu 27, 2005, 03:30:09 IP
Sure...

Sources/MoveTopic.php

Find
$txt['movetopic_auto_board'] => '[url=' . $scripturl . '?board=' . $_POST['toboard'] . ']' . addslashes($board_name) . '[/url]',

Replace with
$txt['movetopic_auto_board'] => '[iurl=' . $scripturl . '?topic=' . $topic . '.0]' . addslashes($board_name) . '[/iurl]',

Themes/default/languages/index.english.php

Find
$txt['movetopic_default'] = 'This topic has been moved to ' . $txt['movetopic_auto_board'] . ".\n\n" . $txt['movetopic_auto_topic'];

Replace with
$txt['movetopic_default'] = 'This topic has been moved to ' . $txt['movetopic_auto_board'] . ".";
Otsikko: Re: Move Topic
Kirjoitti: wgm - helmikuu 27, 2005, 05:34:36 IP
Thanks Oldiesmann.

Still goes to the board and not the topic, I even tried modifiying the code, nothing.
Otsikko: Re: Move Topic
Kirjoitti: wgm - helmikuu 28, 2005, 04:27:22 AP
Got it, as the example on first post, it shows the board name but goes straight to the topic.


$txt['movetopic_auto_topic'] => '[iurl=' . $scripturl . '?topic=' . $topic . '.0]' . addslashes($board_name) . '[/iurl]'


Edit: left this intact.

$txt['movetopic_auto_board'] => '[url=' . $scripturl . '?board=' . $_POST['toboard'] . ']' . addslashes($board_name) . '[/url]',