1 They say it can't be done. A Christmas gift from Dion! Fri Dec 24, 2010 1:32 pm
Guest
Guest
This didn't fit into the Tutorial format, so...here's a Christmas gift. If you follow the instructions, you will no longer need to find a host for your javascript files for forumotion boards.
Here's what you do. Go to forumotion's admin control panel (ACP), Modules, HTML Pages Management. Click Create new HTML Page. Give the page whatever title you want, and leave both questions as the default no.
Now comes the fun part! For the contents, enter a "$" (dollar-sign) character, then click Submit. You will note that the character has been replaced with its HTML code equivalent. Delete those characters, leaving a blank page, then paste in the javascript code you want to save, and click Submit again.
The javascript file will be saved properly, and it will continue to be saved properly from that point onward!
To complete the task, click the large HTML to return to the main HTML pages management page. Find the name of the page you just created in the title column, then look to the left to find the page's number. Let's say it is number 8 for this example.
Now let's say you want to add the script you just created to your homepage message. Here's what to add to the homepage message:
Why does this work? The technical reason is that the "text/javascript" MIME type is among the very few that does not require the file to have a specific extension.
So go ahead and host your javascript files as HTML files, and have a great Christmas!
Here's what you do. Go to forumotion's admin control panel (ACP), Modules, HTML Pages Management. Click Create new HTML Page. Give the page whatever title you want, and leave both questions as the default no.
Now comes the fun part! For the contents, enter a "$" (dollar-sign) character, then click Submit. You will note that the character has been replaced with its HTML code equivalent. Delete those characters, leaving a blank page, then paste in the javascript code you want to save, and click Submit again.
The javascript file will be saved properly, and it will continue to be saved properly from that point onward!
To complete the task, click the large HTML to return to the main HTML pages management page. Find the name of the page you just created in the title column, then look to the left to find the page's number. Let's say it is number 8 for this example.
Now let's say you want to add the script you just created to your homepage message. Here's what to add to the homepage message:
- Code:
<script type="text/javascript" src="/-h8.htm"></script>
Why does this work? The technical reason is that the "text/javascript" MIME type is among the very few that does not require the file to have a specific extension.
So go ahead and host your javascript files as HTML files, and have a great Christmas!
NOTE:
forumotion is screwing around with the URLs of HTML files. While they have promised the old URLs will continue to work, it's possible the day will come that the URLs for the HTML files will need to be changed. If that happens, I will update this post with the changes needed.