Most the credit to the thing goes to him, I just supplyed the needed MT coding and the idea (well I also bitched about all the errors that IE was generating, Jake bitched about as much as me too). The script would be in version 3 if we were versioning it. Brian just last night fixed the PC/IE issue where you would get an error icon in the lower left of the browser. This is, to my knowledge, the last error in the script. So it is Netscape (Mozilla, yada, yada) and IE friendly.
We have decided to open source the script, so I will be putting together a tutorial about using it here. Brian just prettied it up a bit for the mass market. And let me tell you that boy can comment a script!
Continue reading for step by step instructions.
Step #1: Copy this script
Step #2: Create a new Index Template in MT. Type in the Output File location. For example mine is: /home/breaking/public_html/blog/recent.js. Make sure the Rebuild this template check box is checked! Now paste in that script into the Template Body.
Step #3: Add this code to your all templates that will use this script.
For example I use:
Step #4: Now you need to add the HTML to your web page. It looks like this (please note this I took out the page layout CSS):
Recent Articles<br />
<select name="S1" onChange="change_list()" style="width:200px;">
<option value="-1" selected>By Category...</option>
<select name="S2" onChange="GotoPage()" style="width:200px;">
That should do it! Please email me (ken[at]meancode[dot]com
) if you have any questions. I am using CSS to make the SELECT menus 200 px. Change that as desired. As with the veriable used in the MT tags we have used the name lastn
as the variable to determine how many entries are shown in the SELECT menu. I use 10, change it as desired. If you have any problems with this script please let me know.
If you use this please email Brian and I, we would like to hear from you. I will place a list of the sites that use this script at the end of this post.
This script is free for you to steal and abuse as you see fit. If you modify it in any way we only ask that you share with us your modifications.