PHPLayersMenu 3.2.0
PHPLayersMenu 3.2.0 – this script provides a nice clean hierarchical web menu for a website – it’s multip platform and browser and is very configurable.
It’s available here: http://phplayersmenu.sourceforge.net/
I’ve just been getting this well known php script to work under Windows with PHP running under IIS.
After following the docs and making sure I set $myDirPath = ‘D:\\Websites\\sitename.co.uk\\phplayersmenu-3.2.0\\’;
$myWwwPath = ‘/phplayersmenu-3.2.0/’;
I was nearly there except I was getting a template error.
After a little searching I found the solution in \lib\layersmenu.inc.php
There is some code in there that sets various default paths and it needed changing to take account of the windows notation for the physical file paths.
/*
$this->dirroot = ‘./’;
$this->libjsdir = ‘./libjs/’;
$this->imgdir = ‘./menuimages/’;
$this->imgwww = ‘menuimages/’;
$this->icondir = ‘./menuicons/’;
$this->iconwww = ‘menuicons/’;
$this->tpldir = ‘./templates/’;
*/
/* BECAME THIS */
$winroot = ‘D:\\Websites\\manick.co.uk\\phplayersmenu-3.2.0\\’;
$winWwwPath = ‘/phplayersmenu-3.2.0/’;
$this->dirroot = $winroot;
$this->libjsdir = $winroot.’libjs\\’;
$this->imgdir = $winroot.’menuimages\\’;
$this->imgwww = $winWwwPath.’menuimages/’;
$this->icondir = $winroot.’menuicons\\’;
$this->iconwww = $winWwwPath.’menuicons/’;
$this->tpldir = $winroot.’templates\\’;
After that I was good to go and the menu system now works in any folder on the webserver not just the folder I installed the script.