3
There is an old old function in class/smarty/plugins called function.popup_init.php. In combination with
overlib and smarty you can create some nice effects for flyout menus. More info for this function in conjunction you can find on the overlib site and at
smarty.php.net.
But you have to change function.popup_init.php to make it work properly.
Open this file in an editor and replace the function with this:
function smarty_function_popup_init($params, &$smarty)
{
$zindex = 1000;
if (!empty($params['zindex'])) {
$zindex = $params['zindex'];
}
if (!empty($params['src'])) {
return '.$zindex.'; width:'.$params['width'].';">
' . "n"
. '' . "n";
} else {
$smarty->trigger_error("popup_init: missing src parameter");
}
}
Here is an example of how to implement this function into templates:
<{popup_init src="$xoops_url/modules/debaser/overlib405/overlib.js" width="250px"}>
<a href="singlefile.php?id=<{$filelist[i].id}>" <{popup
text="$smarty.const._MD_DEBASER_ALBUM` `$album`" textsize="2"}>><{$smarty.const._MD_DEBASER_READMORE}>a>
A working example of this function you'll find in debaser 0.7 which will appear shortly here in downloads. You can expand this function with many many options. But note that smarty-variables must be masked by backticks inside popup smarty tag.
Hope this will help?!?