Welcome Guest [Log In] [Register]

Change the Moved Topic Message

The original content in this documentation is copyrighted to Agent Moose.

Compatibility: · · · ·

Description: This code lets you change the Move Topic Message.

Footers:

Code:
 
<script type="text/javascript">
var moved = "MESSAGE";

var na = document.getElementsByTagName("span");
//Created by Agent Moose (revolutionx.smfforfree3.com)
for(me=0;me<na.length;me++){
if(na[me].innerHTML.match("ello <b>(.*)</b")){
var usehername = RegExp.$1;
if(moved.match("[USER]")) moved = moved.replace("[USER]",usehername);
};};
var mo = document.getElementsByTagName("textarea");
for(ve=0;ve<mo.length;ve++){
if(mo[ve].name == "reason"){
mo[ve].value = moved;
};};
</script>
MESSAGE = The Message that the moved topic message will be changed to.

There are a couple of things you may use:
[BOARD] = The Board the topic has been moved to.
[USER] = The username of the person who moved it.
[TOPIC URL] = The Topic URL of the topic that was moved.

if you want to add line spaces, add \n for each one.

So, if I had this:
Code:
 
This topic has been moved to [BOARD] by [USER].\n\n[TOPIC URL]
It would look like this:
Quote:
 
This topic has been moved to [BOARD] by [USER].

[TOPIC URL]
Now, this code edits the Moved Topic Message box, making it so all you have to do is press the Move button when moving a topic.

If you require support for this code, please start a topic in our Global Support Forum. Once your topic is posted, please PM the URL to the topic starter so that they know a support request is pending for their topic. Please DO NOT PM the topic starter with your actual support request.