Lightbox lädt
Nachdem ich nun durch weiteres Probieren Lightbox starten konnte, hier der geänderte Quelltext:
---
$installURI = get_bloginfo('wpurl');
$blogURI = get_bloginfo('url');
// check for folder, based on current file.
$found_dir = true;
$hostdomain = getenv('HTTP_HOST');
$filepath = getenv('SCRIPT_FILENAME');
$filename = getenv('SCRIPT_NAME');
$currentpath = str_replace($filename,'',$filepath);
// first pass
$lightbox_pluginpath = "/usr/virtualweb/michelvalentino.com/lib/php/http://www.michelvalentino.com/wp-content/plugins";
$lightbox_dir = "./wp-content/plugins/lightbox-plugin";
if(!is_dir($lightbox_dir)) // not a dir, not our path
{
$firstpass_dir = $lightbox_dir; // backup for errormsg
$lightbox_pluginpath = "/usr/virtualweb/michelvalentino.com/lib/php/http://www.michelvalentino.com/MV/wp-content/plugins"; // new fallback path
$lightbox_dir = "./MV/wp-content/plugins/lightbox-plugin"; // fallback path
---
Funktionieren tut es aber dennoch nicht - und ja, ich habe nicht das rel="lightbox" Attribut vergessen!
Bitte um Hiiilfe !!