Random entry HTML or Javascript link
Posted: Sat May 17, 2008 11:54 pm
Hi,
I've been trying to create a "random entry" HTML or Javascript link based on the code found in the PHP file of the "Link to next/previous entry" plugin without success. I'd like to place a link to a random entry into my main web site javascript menu and possibly also into an HTML snippet in the blog's sidebar.
Could anyone point me into the right direction as to how to tap into the serendipity_event_entrypaging.php code to create such a link? One of the issues, I suppose, is that this file might only be included when an entry is viewed expended. I would then have to turn the random entry code into a javascript function. Is it do-able?
Thanks in advance!
Vince
I've been trying to create a "random entry" HTML or Javascript link based on the code found in the PHP file of the "Link to next/previous entry" plugin without success. I'd like to place a link to a random entry into my main web site javascript menu and possibly also into an HTML snippet in the blog's sidebar.
Could anyone point me into the right direction as to how to tap into the serendipity_event_entrypaging.php code to create such a link? One of the issues, I suppose, is that this file might only be included when an entry is viewed expended. I would then have to turn the random entry code into a javascript function. Is it do-able?
Thanks in advance!
Vince