[dev] fortune block(s) broken
Rick Emery
rick at emery.homelinux.net
Wed Oct 27 16:51:21 PDT 2004
Quoting Chuck Hagenbuch <chuck at horde.org>:
> Sounds reasonable enough to me. That block is kind of a hack, anyways;
> I'd love
> to either ditch it or replace it with an interface into a Horde
> quotes service
> with a potential fortune backend. Much safer/more robust.
>
> -chuck
I know this isn't what you want, but I was looking over the fortune man page
this afternoon and came up with these modifications.
These patches allow the administrator to set the path to the fortune
executable
(using conf.xml), and allow a user to choose which kinds of fortunes to
display
in the layout section. The one's in the patch are those available on my
machine; if one is selected that doesn't exist, an empty block is displayed.
It would be cool to dynamically build this list based on what's available on
the server ("fortune -f" lists them on the command line), but that's a little
beyond my skills and, as you said, this is kind of a hack and will hopefully
be replaced in the future.
Do with the patches what you will; I enjoy the random quotes on my
portal page,
but agree a "quotes" module would be a better way to do it. Unfortunately, I
don't feel capable of starting a module from scratch :-)
Thanks,
Rick
--
Rick Emery
"When once you have tasted flight, you will forever walk the Earth
with your eyes turned skyward, for there you have been, and there
you will always long to return"
-- Leonardo Da Vinci
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf.xml.diff
Type: text/x-patch
Size: 701 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20041027/390b397c/conf.xml-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fortune.php.diff
Type: text/x-patch
Size: 3866 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20041027/390b397c/fortune.php-0001.bin
More information about the dev
mailing list