* Graham * tiaxgame This script uses a combination of xtscript and javascript
The xtscript is used to convert the blog post list into a javascript array which is then shuffled and a number of the elements are then used to create the post list.

The code is based on a standard blog without custom twig although it should still work as long as you do not change the standard post list too much.

It requires that the list entries are still in a <div class="xt_item"> and that there are no other <div> elements inside the <div class="xt_item"> so the post list tag code would need to use something like <span class="xt_tag" style="display:block"> instead of a <div>
NOTE: using the list tags in this list will probably break it

There are parts of the script that use urlencoded data so that it displays correctly in the xtgem building tool
the #</xt:code>...#<xt:code> lines are so you can still use the blog function from the building tool
everything else must only be edited in the code editor

How slow it will be with a really big blog with hundreds of posts I do not know
DEMONSTRATION PAGE http://twig.yn.lt/blogtest

2014-07-22 00:09 (edited 2014-07-22 00:19 by Graham ) · (0)

Online: Guests: 1