[Outdated] Redirect Moved Topics

Started by SleePy, June 24, 2008, 10:56:10 PM

Previous topic - Next topic

Spoogs

#20
What other mods do you have installed, more than likely the target code has been edited by another mod, you can try to manually edit the files if you'd like

Manual Installation of Mods


Actually the errors are there on a fresh install as well.

[Crash_Override]

I considered that as an option so I did a vanilla install on my private server and got the same thing.

PM me if you want to access the test forum and see what I am talking about

seems we both figured that one out

Spoogs

I checked the mod itself it's the number of indentations that are incorrect... for example

Code (find) Select
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '


should be
Code (find) Select
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '

[Crash_Override]

#23
really its that sensitive!?

this makes sense I guess since I use the search option in Dreamweaver to ignore white-space

well I can modify the xml so it works with the default but have had no luck with the core theme

I've attached my modified package that works for now but will leave it up to the developer if they want to continue with it

Cereus

Hello guys! Do you have any update to this MOD?

Hugs!

NekoJonez

I can't delete the moved topic thingies.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Kolya

There is another problem with this mod (apart from the fact that you can only delete moved topic notices through the backend):
The moved topic notice (the redirector) is marked unread for anyone but the topic mover. And it is rather difficult to change that state. You cannot go into the topic and marking it as read via checkbox on the topic table doesn't work either for some reason. The only way is to mark ALL read (this can be within a subforum scope).

Which makes me think that a little Javascript redirect inside the topic notice would solve redirection more gracefully.

Kolya

Quote from: Kolya on February 09, 2015, 03:03:12 PM
Which makes me think that a little Javascript redirect inside the topic notice would solve redirection more gracefully.

In Source/MoveTopic.php:
FIND
$txt['movetopic_auto_topic'] => '[iurl]' . $scripturl . '?topic=' . $topic . '.0[/iurl]'

REPLACE WITH
$txt['movetopic_auto_topic'] => '[iurl]' . $scripturl . '?topic=' . $topic . '.0[/iurl]
     
Redirecting....<script>var mtu = document.getElementsByClassName("bbc_link");setInterval(function(){window.location = mtu[mtu.length-1].innerHTML;},2000);</script>'

Kolya

I have removed my own script (above) from my boards today. It was causing a problem in lists of posts where the redirecting thread appears including its post text and redirection script. The whole listing page was unintentionally redirected in this case. An example of such a list is Posts made by a user and possibly search results.

I have therefore replaced this script with this mod by Arantor which allows to redirect the user as well as setting an expiry date on the redirection topic.

Advertisement: