151
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/26 17:56

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


i'm agree, but sorry, i don't have 'the' solution.
the structure of the menu forces to me to proceed in this way.
I do not have the sufficient level to better propose.
perhaps that somebody will have some others ideas

for example, for this menu, i've decided to use NOTE or CATEGORY to create a new level in the same block.
it's a choice among others.
if I remove this feature, someone else will come to ask it...
so, the adaptation of template is essential for each one.

to hardcode some values in the template is not more difficult than create an entire menu manually
and menu's title doesn't change every day.

152
irmtfan
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/26 20:15

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Ok , i understand but i tell you its an issue in the first step of developement.
you could choose just 'CATEGORY' for having a new menu in a same block and leave 'Note' for other purpose.now it is not a case that the other users have problem with changing 'Note' role in the module.
the main thing is that treemenu sould have a feature for add (text only) notes.you can use 'Note' or not.

153
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 5:28

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


And how this note should be displayed ?
I can't insert a text only in the middle of the menu !
the tip i've used (for Barryc) is to create the menu, then modify the stylesheet. (to personalize the color, font size...)
thus, we can create a link who seems to be text only.
but no other idea on the way of creating this note.

about image for main link (root, folder...), i think i'll use the image url that we can fill for each link.
thus, we'll be able to indicate an image for each link if we want.

edit : maybe an idea for note, i'll try it tuesday.

154
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 5:39

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


with this template, we'll be able to indicate a different image to each main link.

http://xoops.valentinois.net/
(modules/multiMenu/script/10/gif/tree.gif)
(modules/multiMenu/script/10/gif/flag_eng.gif)

<!-- Start multiMenu <{$block.mm}> -->
<!-- 
thanks to Hans Bauer who permits us to use his treemenu -->
<!-- 
http://www.h-bauer.de/index.html?treemenu,eng -->
<script type="text/javascript">
var 
url="<{$xoops_url}>"
</script>

<
link   rel"stylesheet"   type="text/css"   href="<{$xoops_url}>/modules/multiMenu/script/10/css/treemenu.css" />
<
link   rel"stylesheet"   type="text/css"   href="<{$xoops_url}>/modules/multiMenu/script/10/css/config.css" />
<
link   rel"stylesheet"   type="text/css"   href="<{$xoops_url}>/modules/multiMenu/script/10/css/menu.css" />
<
script type="text/javascript" src="<{$xoops_url}>/modules/multiMenu/script/10/js/treemenu.js"></script>
<
script type="text/javascript" src="<{$xoops_url}>/modules/multiMenu/script/10/js/config.js"></script>

<
div align="left">
<
table cellspacing="0" cellpadding="0">
<
tr>
<
td>

<
script type="text/javascript">
<!--
tree<{$block.mm}> = new treemenu('tree<{$block.mm}>'truetruetruefalse);

<{
assign var=put_tree  value=0}>
<{foreach 
item=imenu from=$block.contents}>
<{if 
$imenu.submenu == AND $put_tree == 0}>
   
tree<{$block.mm}>.add(1,'<{$imenu.title}>''<{$imenu.target_context}>','<{$imenu.linkurl}>','<{$imenu.alt_title}>', <{if $imenu.image}>'<{$imenu.imageurl}>'<{else}>''<{/if}>, <{if $imenu.image}>'<{$imenu.imageurl}>'<{else}>''<{/if}>);
   <{
assign var=put_tree  value=1}>
    <{elseif 
$imenu.submenu == AND $put_tree == }>
    
tree<{$block.mm}>.add(0,' <{$imenu.title}>','<{$imenu.target_context}>','<{$imenu.linkurl}>','<{$imenu.alt_title}>',  <{if $imenu.image}>'<{$imenu.imageurl}>'<{else}>''<{/if}>, <{if $imenu.image}>'<{$imenu.imageurl}>'<{else}>''<{/if}>);
    <{elseif 
$imenu.submenu == OR $imenu.submenu == 2}>
   
tree<{$block.mm}>.add(0,'  <{$imenu.title}>','<{$imenu.target_context}>','<{$imenu.linkurl}>','<{$imenu.alt_title}>', <{if $imenu.image}>'<{$imenu.imageurl}>'<{else}>''<{/if}>, <{if $imenu.image}>'<{$imenu.imageurl}>'<{else}>''<{/if}>);
    <{elseif 
$imenu.submenu == OR $imenu.submenu == 4}>
    <{
assign var=put_tree  value=0}>
<{/if}>
<{/foreach}>
<{
assign var=ul_sec  value=0}>
document.write(tree<{$block.mm}>);
//-->
</script>

</
td>
</
tr>
</
table>
</
div>

<
noscript><{include file="db:multimenu_menu.html"}></noscript>

<!-- 
End multiMenu <{$block.mm}> -->


i've no more time now, but we can do the same for other link.
i'll post a new template soon.
if you want to test it

155
irmtfan
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 14:51

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


a nice template hack and good solution.
i dont think about this way.

about the usage of texty only in a treemenu:
- you maybe want to have a link to show a group that this link exist but they dont have permission to the link. for example:
anon users that dont have permission to submit news see a text only note in tree menu: " Submit News (register to activate)"

156
slyss
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 15:07

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


sorry for my stupid question:

i have multim 1.7 ... now i want to upgrade at 1.8.1

i only overwrite old files and then go to admin module e upgrade multimenu?

thanks a lot
[size=x-large]2008 Xoops Book[/size]

157
irmtfan
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 16:04

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Yes.
it must works.
but get a backup first and see the solo important note:
>>
1) Please check your templates, to see if they are all up to date. If not, mainly because you are using custom templates, you have to update your custom templates manually (don't ask me why, that's the way it is, unfortunately).

2) When updating a module, every block settings are set back to default, which is a default behaviour from the core. It's the same behaviour for both 2.0 and 2.2 versions. One tips, though. Before updating to the new version, open each and everyone of your bloc setting page (so that those are kept in memory). Update the module, then send back the module settings page.

158
solo71
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 17:23

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Quote:

irmtfan wrote:

2) When updating a module, every block settings are set back to default, which is a default behaviour from the core. It's the same behaviour for both 2.0 and 2.2 versions. One tips, though. Before updating to the new version, open each and everyone of your bloc setting page (so that those are kept in memory). Update the module, then send back the module settings page.


This tip is worth only for upgrade from 1.8 to 1.8.1. Not 1.7 to 1.8.


159
slyss
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/27 18:36

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


ok and thanks for your reply but now i have a problem:

i had multimenu 1.7 with only 8 menu...

now i have 1.8.1 with 16 menu....

when i add new link in one of old 8 menu all work good but when i add a new link i one of new 8 menu and click on submit to complete the insert return: Database successfully updated! but the link wasn't added!

do you know this problem? thanks
[size=x-large]2008 Xoops Book[/size]

160
irmtfan
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/28 1:31

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


thanks solo.
a new issue is i cant find such a things in the docs:
Quote:
- New Smarty variable enables you to apply styles to menus' templates, according to the theme used.
See the module documentation for more details.

i simply delete the multiMenu\script\10\css folder to use my theme style in the treemenu

Login

Who's Online

216 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

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

Latest GitHub Commits