Thursday, March 31, 2005

Documentations

Documentations / Advanced Features:
(Last updated: 12 April, 2005)

  1. In general, this is the code you would be getting by installing LastHalo on your blog:
    <div class="lasthalo">
    <!-- Hyperlinks to the last comments -->
    </div>

    It is wrapped under a class "lasthalo". You can customised the style with CSS on your blog, if you are familiar with CSS.

  2. By default, each entries on LastHalo is separated with a <br />. You can change it into list form by adding a parameter to the script code.

    For unordered list, you would use the following code:
    <script language="javascript" type="text/javascript"
    src="http://lasthalo.uzyn.com/show.php?u=YOUR_USERNAME&list=ul">
    </script>

    For ordered list, you would use the following code:
    <script language="javascript" type="text/javascript"
    src="http://lasthalo.uzyn.com/show.php?u=YOUR_USERNAME&list=ol">
    </script>

    The entries would be separated with the <li> tags.

  3. Mouse over each of the entries will give you a snippet of the comment content.

  4. You can now specify the number of entries to be displayed. Simply use the 'n' parameter to specify the number of posts, from 1 to 10. The default 'n' value is 10.

    For example, to display 5 posts, you would use the following lines of code:
    <script language="javascript" type="text/javascript"
    src="http://lasthalo.uzyn.com/show.php?u=YOUR_USERNAME&n=5">
    </script>

  5. By using the parameter 'pre', you can now set LastHalo to display each entry with any prefix you like. As you may have noticed, the default value is now "By".

    As an example, to set prefix as "Kiss from", use the following codes:
    <script language="javascript" type="text/javascript"
    src="http://lasthalo.uzyn.com/show.php?u=YOUR_USERNAME&pre=Kiss+from">
    </script>

    Note that you should separate each words with a '+' and not a space.

    To remove prefix, you sould set prefix to null.
    ie. pre=null

  6. To customize postfix, simply use the 'post' parameter. The default value is an empty string, or null.

    An example to set postfix as "said", you would use the following codes:
    <script language="javascript" type="text/javascript"
    src="http://lasthalo.uzyn.com/show.php?u=YOUR_USERNAME&post=said">
    </script>

    Note that you should separate each words with a '+' and not a space.

Please combine each parameters with an ampersand (&).