Hello wonderful Indexhibit community,
I'm fondling my way around my first MAMP-testversion of indexhibit, and I'm loving it so far. I'm quite good with basic css and html, but completely inexperienced when it comes to php.
What I'm trying to do is include a random sentence in the menu after the website (or exhibit) name.
(i.e. 'Gringoflash is working hard', 'Gringoflash doesn't know here his head's at' etc)
Googling around i came across the following script.I can get it to work in a standalone index.php file in a seperate folder, but I'm at a loss as to where to insert it inside indexhibit.
I put the two files ('random.txt' and 'GetRandomText.php' inside the ndxz-studio/site/sample folder) and as far the script:
<?php
include_once"GetRandomText.php"
$MPTextFile "random.txt"
$MPSepString "*divider*"
$MPTextToHTML false
MPPrintRandomText$MPTextFile $MPSepString $MPTextToHTML
?>
I tried putting it right after the body tag (inside a div) in the ndxz-studio/site/sample/index.php file, but to no avail.
Once again, my php-knowledge is close to none (as in copy-pasting stuff found on the net) so if I'm missing some very obvious stuff here, i apologize.
Greetings and thanks in advance,
Sander