1
ppif2000
add a dynamic menu with submenu
  • 2004/9/16 8:56

  • ppif2000

  • Just popping in

  • Posts: 1

  • Since: 2004/9/16


how i can add a dynamic menu with submenu, i saw in the forum, by use a modified multimenu, or use smarty but i m too noob for that.

if someone have a esay-way(no dhtml scrip is for use a different theme), or can explain me in a to z thx

2
falke
Re: add a dynamic menu wth submenu
  • 2004/9/16 9:02

  • falke

  • Friend of XOOPS

  • Posts: 158

  • Since: 2004/4/25


Yes.... add me to the list of users wanting to know how this can be done.

regrads/falke

3
Anonymous
Re: add a dynamic menu wth submenu
  • 2004/9/16 9:16

  • Anonymous

  • Posts: 0

  • Since:


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"
         
'.$params['src'].'">' "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?!?

Login

Who's Online

325 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 325


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits