Using the Fortune Plugin

Hi,
I have installed the unix program fortune using Darwin Ports, and it works fine. I then enabled the fortune plugin for squirrelmail, and edited the setup.php to the correct directory of the fortune files:

$fortune_location = '/opt/local/var/db/dports/software/fortune/4.6.2-RELEASE_5/opt/local/share/game s/fortune/';

When I login to IMAP now through the browser, it just says: Today's Fortune

instead of displaying an actual fortune

How can I make it display a fortune?

Mac OS X (10.4.3)

Posted on Dec 31, 2005 1:53 PM

Reply
2 replies

Dec 31, 2005 7:33 PM in response to J R3

I am running the fortune plugin and the only code I had to change was this:

Code:
$fortune_location = '/usr/games/fortune';

this is the location of my 'fink' installation. This is the program that runs that gives out the fortune. I am ASSuming that this is the same plugin as the code you listed does also start with '$fortune_location = ' therefore you have misunderstood what this path does. It is not the location of the FILES for forune, but the location of the program itself.

To find where it is installed you should be able to do this:

Code:
which fortune

and it will show you the path to the program called fortune. Type in the path and the program name into the ' $fortune_location = ', save the setup.php and you will be in business.

Peter

PowerMac G5 Dual 2.5Ghz Mac OS X (10.4.3) Mac OS X Server

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using the Fortune Plugin

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.