121
barryc
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/13 12:54

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


I hate to have to ask, but how do I do that? Can I have the Multimenu blocks show without block titles, but still have other blocks with titles? (for example, the Donations block on my site should still show the title).

The theme on barryc.net is the same as on my live site, so if you could show an example there, I'd appreciate it.

Barry
Barry Cooper
Sweet Home, Oregon

122
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/13 13:06

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


no problem.
yes we can do it

it's explain in multiMenu's guide.

here's is an example here :
http://xoops.valentinois.net

2 menus without block title, and 2 others menus, with their block title

your website already use this tip (for horizontal navbar)

<!-- added by blueteen -->
<
center><{foreach item=block from=$xoops_lblocks}>
  <{if 
$block.title == 'navbar'}>
    <{
$block.content}>
  <{/if}>
<{/foreach}></
center>
<!-- 
end added by blueteen -->


do you remember this ?

i'll apply the same tip to the tree menu block.
take a look at the theme.html code now, and look for 'Tree' in code. You will find my change to your theme.
2 lines added
http://www.barryc.net

123
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/13 13:26

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Here, you will find some examples of menus.

http://xoops.valentinois.net/menus/index_us.html

they are offline menu (links don't works)

124
mikelmoore
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/13 17:41

  • mikelmoore

  • Just popping in

  • Posts: 3

  • Since: 2005/2/23


Can multimenu support this functionality?

I use a bridged coppermine and would like to be able to provide a submenu option to go directly to the users personal gallery. In order to do that I need to pass the users $uid as part of the link and it will vary with each user.

To fully be a replacement for the default XOOPS menus, there has to be some kind of support for this...

125
barryc
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/13 21:00

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


blueteen,

it's always so obvious once you have explained how to do it. I did, of course, remember how you inserted the navbar code. It just hadn't occurred to me yet to do that with the treemenu blocks. I'll be able to do it now for my live site. I will have to make a visual comparison between some menu blocks with treemenu and some with switch vertical to see which I like best.

Thanks,

Barry
Barry Cooper
Sweet Home, Oregon

126
barryc
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/14 3:38

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


blueteen,

I have tried to make treemenus on my live site. I can do it for a multiMenu that does not have multiple mainlinks. For example, AKA Programs on my site, aka.org. However, when I have multiple mainlinks, each with sublinks, the block is blank. The block currently titled The Basics, for example, won't work when set up as treemenu.

It currently is set up with two mainlinks at the top, without a URL. The other mainlinks are below that, with their submenus. The mainlinks do not have URLs.

Is there any way to get around this problem?

Barry
Barry Cooper
Sweet Home, Oregon

127
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/14 5:46

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


hello !
look at your aka website.
i've deactivated 3 links, and treemenu works now.

links with ' crashes treemenu.

Chairman's welcome{alt}Read the chairman's message
Killie Gallery{alt}AKA Gallery & Members' Galleries
Killietalk{alt}The AKA's email list

i'll try to correct that bug.

i'll try to correct your : [#] = PMs waiting
to make it no clickable.

can you send me ftp access to multimenu's folder ?

128
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/14 6:05

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


ok, I know why I did not encounter this bug during my tests.
for my tests, i've replaced 'vertical' menu by this 'treemenu'.
for 'vertical' menu, we use 'addslashes' function. (in blocks/block.php)
but, in your case, 'treemenu' replaces 'context' menu.
which is not taken in account by the function.
i can give you a quick fixe, while waiting for the next release, where this treemenu will be included.

edit blocks/block.php
line 127

AND ( $myrow['submenu'] == 1  OR $myrow['submenu'] == ) ) OR $options[0] == 'dyn_06' OR $options[0] == 'dyn_07' )


replace by

AND ( $myrow['submenu'] == 1  OR $myrow['submenu'] == ) ) OR $options[0] == 'dyn_06' OR $options[0] == 'dyn_07' OR $options[0] == 'dyn_05')


dyn_05 = context menu

i think it will be ok.

129
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/14 6:54

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


to correct : [#] = PMs waiting link,
try to add this code to multiMenu/script/10/css/treemenu.css

#tree01Node_23 { cursor: default; text-decoration : none; background-color:transparent;}


01 corresponds to the menu's number
23 may change if you add or remove links.

i'm using firefox developer toolbar to determine which is the node number.

once all your links/menus will be created, i think that this node number will not change.

130
blueteen
Re: [BETA] multiMenu 1.8, when mm goes dynamics
  • 2006/4/14 7:19

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Quote:

mikelmoore wrote:
Can multimenu support this functionality?

I use a bridged coppermine and would like to be able to provide a submenu option to go directly to the users personal gallery. In order to do that I need to pass the users $uid as part of the link and it will vary with each user.

To fully be a replacement for the default XOOPS menus, there has to be some kind of support for this...


hi,
here is a quick tip. that seems to work.

edit : multiMenu/blocks/block.php

under line 188

Quote:

///////////////////////// Create urls /////////////////////////


replace :
// Link url
if ($myrow['link']) {

// Link Type
    
if (    (eregi("mailto:"$myrow['link']))  || 
        (
eregi("http://"$myrow['link']))  || 
        (
eregi("https://"$myrow['link'])) || 
        (
eregi("file://"$myrow['link']))  || 
        (
eregi("ftp://"$myrow['link'])))
         {
        
$link $myrow['link'];
        } else {
        
$link XOOPS_URL."/".$myrow['link'];
        }


with :

// Link url
if ($myrow['link']) {

    global 
$xoopsUser;
    if (
is_object($xoopsUser))
    {
    
$user_id $xoopsUser->getVar('uid');
    }

// Link Type
    
if (    (eregi("mailto:"$myrow['link']))  || 
        (
eregi("http://"$myrow['link']))  || 
        (
eregi("https://"$myrow['link'])) || 
        (
eregi("file://"$myrow['link']))  || 
        (
eregi("ftp://"$myrow['link'])))
         {
        
$link $myrow['link'];
        
$link preg_replace('/{user_id}/'$user_id$link); 
        } else {
        
$link XOOPS_URL."/".$myrow['link'];
        
$link preg_replace('/{user_id}/'$user_id$link); 
        }


then, you can use links such as :

userinfo.php?uid={user_id}


which will give this link :
http://www.website.com/userinfo.php?uid=1 (or other uid)

caution : if the visitor is not logged in, and that you leave the link accessible to anonymous, the link will become :

http://www.website.com/userinfo.php?uid=

thus, i recommend to you, to make links using this {user_id} tag, to be visible only to connected members.

Login

Who's Online

203 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 203


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