=====Image Popup===== The following action places a thumbnail image on the page and provides a link to a popup window that contains a larger image. I found this useful for some documentation where I didnt want to clutter the screen up with lots of screenshots, but wanted to make them available for users to click on if they wanted them. Place this code in the ##actions## directory as ##imagepop.php## %%(php) $value) { if ($param == 'src' and $vars['url'] == '') {$vars['url']=$value;} if ($param == 'title') {$title=$this->htmlspecialchars_ent($vars['title']);} if ($param == 'class') {$class=$this->htmlspecialchars_ent($vars['class']);} if ($param == 'alt') {$alt=$this->htmlspecialchars_ent($vars['alt']);} } } $url = $this->cleanUrl(trim($vars['url'])); $url_b = str_replace("_t.", ".", $url); $output = " \"".$alt."\""; // Had to comment this out to make things work ;-> #$output = $this->ReturnSafeHTML($output); print($output); ?> %% Then in wiki enter: ""{{imagepop url=image/pict_t.jpg}}"" The thumbnail must currently be named with a '_t.' in it, and the code will strip the '_t' to display the larger image. So, pict_t.jpg is the thumbnail, and pict.jpg is the larger image. The javascript will auto re-size the popup to match the size of the image, and will close the window if the image is clicked. Have fun. -AdamCrews ---- CategoryUserContributions