Welcome, Guest. Please login or register.
August 20, 2008, 05:28:06 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) released!
For more information look here.
The announcement board can be found here.
60556 Posts in 9791 Topics by 5824 Members
Latest Member: blubb
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules
| | |-+  Code Snippets
| | | |-+  show_menu2: valid XHTML and CSS selectable menus
Pages: 1 ... 10 11 [12] 13 Go Down Print
Author Topic: show_menu2: valid XHTML and CSS selectable menus  (Read 43868 times)
doc
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 2277

Never mind!!!


« Reply #220 on: April 17, 2008, 10:21:01 AM »

Hello,

well it is not really a bug of the show_menu function, it is more the way how WB handles search pages. The page_id is set to zero if you are using the search, therefore the menu disappears with the WB menu functions (show_menu) and the external menu function show_menu2().

Maybe Brofield find out a solution which works without changing WB core files, maybe we need to adapt WB core files, maybe both.

Regards Christian
Logged
Boudi
Apprentice Baker
***
Offline Offline

Posts: 97



« Reply #221 on: April 17, 2008, 03:15:59 PM »

Hello,

Unfortenately Brofield is momentarily very busy and I respect that off course. So in a short term a solution from him would be difficult what is highly understandable.

So If anyone knows a solution for this issue on a short term or has a good working show_menu2 configuration regarding this issue then would you please share it with us. I would be heavenly greatfull since this topic is bugging me for a month now and I'm keep stretching up the deadline of my client  undecided

Sincerly,
Knert

Logged
doc
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 2277

Never mind!!!


« Reply #222 on: April 22, 2008, 09:11:10 PM »

Hello,

just released show_menu2 version 4.60 which includes the page_id = 0 bug fix from Brofield on the addons repository.
If your menu disappears after submitting a search, follow the steps below (requires show_menu2 v4.60 or higher)

Step 1: Add the following input field to the database search settings after
the <form> open tag: WB Backend -> Settings -> Show advanced settings -> Search Settings -> Header
Code:
<input type="hidden" name="referrer" value="[REFERRER_ID]" />

Step 2: In the index.php of your template, add the following input field immediately following the search <form> open tag.
Code:
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID')?REFERRER_ID:PAGE_ID;?>" />

Brofield thanks for this bugfix.

Regards Christian
« Last Edit: April 22, 2008, 09:17:33 PM by doc » Logged
bupaje
Geek-Like Baker
*****
Offline Offline

Posts: 401


WWW
« Reply #223 on: May 09, 2008, 09:35:55 AM »

Hi. I get this error in the scripts.log I have error level set to E_Error which I read is for fatal errors but show_menu2 seems to work great as always. I am setting up new pages so some of the subpages have no content yet which I guess is possible.

Code:
show_menu2 error: no flags from group 1 supplied! Exactly one flag is required!

I only noticed it because the error file has gotten huge .

Thanks.

Logged

brofield
Senior Baker
*****
Offline Offline

Posts: 199


WWW
« Reply #224 on: May 10, 2008, 10:11:27 AM »

Read the documentation and check the parameters you are using again. You're not passing the correct flags to the function for the $aFlags parameter.
http://code.jellycan.com/files/show_menu2-README.txt
Logged
bupaje
Geek-Like Baker
*****
Offline Offline

Posts: 401


WWW
« Reply #225 on: May 11, 2008, 09:05:05 AM »

I guess I mucked around with it too much. Since the page still worked I don't even know when I broke it.I went back to one of your examples and left it at that. Works fine now. Thanks.
Logged

BerndJM
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 850



WWW Email
« Reply #226 on: June 12, 2008, 03:34:57 AM »

Hi Brofield,
just noticed the following:
Code:
<ul class="menu-top">
    <li class="menu-sibling menu-first">...</li>
    <li class="menu-expand menu-current menu-last">...
     <ul class="">
        <li class="menu-child menu-first menu-last">...</li>
     </ul>
    </li>
</ul>
The class in the child-menu ul is empty.
Bug or feature?

Regards Bernd
Logged

Recommended site of the day: Help-Projekt
avde
Pending Apprentice Baker
**
Offline Offline

Posts: 6


« Reply #227 on: June 12, 2008, 05:55:01 PM »

Hello,

just released show_menu2 version 4.60 which includes the page_id = 0 bug fix from Brofield on the addons repository.
If your menu disappears after submitting a search, follow the steps below (requires show_menu2 v4.60 or higher)

Step 1: Add the following input field to the database search settings after
the <form> open tag: WB Backend -> Settings -> Show advanced settings -> Search Settings -> Header
Code:
<input type="hidden" name="referrer" value="[REFERRER_ID]" />

Step 2: In the index.php of your template, add the following input field immediately following the search <form> open tag.
Code:
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID')?REFERRER_ID:PAGE_ID;?>" />

Brofield thanks for this bugfix.

Regards Christian

I can't get this fix to work... I have upgraded the module to 4.6, but under module info it still says 4.5, and the fix is not working... When I use the search, the menu dissapears... What's up with that? Is the right version of show_menu2 on the server?
I have tryed to uninstall the module first, but I get "Cannot uninstall". What should I do?
« Last Edit: June 12, 2008, 05:58:23 PM by avde » Logged
brofield
Senior Baker
*****
Offline Offline

Posts: 199


WWW
« Reply #228 on: June 13, 2008, 05:13:38 AM »

@BerndJM:
Can't say without seeing the parameters for sm2. I suspect a problem with your call. See the doco.
http://code.jellycan.com/files/show_menu2-README.txt

@avde:
Try the main site. The addons repository should just link there anyhow. The info data is 4.6 so if it doesn't show that then you probably have the wrong version installed.
http://code.jellycan.com/show_menu2/
Logged
avde
Pending Apprentice Baker
**
Offline Offline

Posts: 6


« Reply #229 on: June 13, 2008, 12:17:56 PM »

@brofield:
yeah I know I have the wrong version, but I can't upgrade to 4.6... If I just install show_menu2-4.6.zip it says upgraded sucessefuly but under module info it remains 4.5... If I try to uninstall the show_menu2 module before upgrading I get "cannot uninstall"...
So what should I do? How can I upgrade the module?
Logged
brofield
Senior Baker
*****
Offline Offline

Posts: 199


WWW
« Reply #230 on: June 13, 2008, 12:23:29 PM »

Manually install it.

take a copy of the existing modules/show_menu2 directory
delete all of the files
unzip the show_menu2.zip file
copy all of the files into the modules/show_menu2 directory

B
Logged
BerndJM
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 850



WWW Email
« Reply #231 on: June 13, 2008, 12:42:51 PM »

Hi Brofield,

sure the the SM2 call :
Code:
show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM|SM2_PRETTY);
Nothing exotic - did I miss something?

And thanks for the link to the docu - I made the german translation, so I'm quiet sure I read it cheesy

Regards Bernd
Logged

Recommended site of the day: Help-Projekt
avde
Pending Apprentice Baker
**
Offline Offline

Posts: 6


« Reply #232 on: June 13, 2008, 01:56:45 PM »

Manually install it.

take a copy of the existing modules/show_menu2 directory
delete all of the files
unzip the show_menu2.zip file
copy all of the files into the modules/show_menu2 directory

B

Thanks mate! It worked, after manually upolading the new files I only had to reload add-ons with the Admin-Tool and now it shows 4.6 under module info and the menu is shown on the search page! Thanks a lot for the kind support!
Logged
brofield
Senior Baker
*****
Offline Offline

Posts: 199


WWW
« Reply #233 on: June 14, 2008, 07:27:53 AM »

@bernd
Apologies my friend. Thanks for the German translation. The lack of classes on the ul tag is normal. It has always been this. The list of classes used for the list open is set by the function startList(). The only classes that will ever be used are "menu-top" and if numbered menus are enabled, "menu-N". The list of classes for the items are far more numerous. The documentation doesn't mention this.

Cheers,
Brodie
Logged
bupaje
Geek-Like Baker
*****
Offline Offline

Posts: 401


WWW
« Reply #234 on: June 16, 2008, 08:03:38 AM »

Hi. Can someone help me with a question? I've tried this but not doing it right as when I change I get errors in the log or no data.

This page ...

http://stormvisions.com/pages/store.php

This code works ...

Code:

echo'<h3>Categories</h3>';
echo'<div style="border-width:0px;">';
show_menu2(0, SM2_CURR+1, SM2_ALL, SM2_ALL|SM2_CURRTREE);
echo'</div>';

I just want to add the description tag...

Code:
[DESCRIPTION]

can anyone show me the answer?

Thanks very much.

Burt
Logged

BerndJM
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 850



WWW Email
« Reply #235 on: June 16, 2008, 12:46:02 PM »

Hi,

to use teh [description] tag you have to set the SM2_ALLINFO flag:

Code:
show_menu2(0, SM2_CURR+1, SM2_ALL, SM2_ALL|SM2_CURRTREE|SM2_ALLINFO);

Regards Bernd
Logged

Recommended site of the day: Help-Projekt
BerndJM
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 850



WWW Email
« Reply #236 on: June 16, 2008, 12:48:06 PM »

@brofield:
Quote
The lack of classes on the ul tag is normal. It has always been this.
Funny, I never noticed this before ... rolleyes

Regards Bernd
Logged

Recommended site of the day: Help-Projekt
bupaje
Geek-Like Baker
*****
Offline Offline

Posts: 401


WWW
« Reply #237 on: June 16, 2008, 04:46:42 PM »

Thanks!
Logged

bupaje
Geek-Like Baker
*****
Offline Offline

Posts: 401


WWW
« Reply #238 on: June 17, 2008, 09:00:55 PM »

@brofield - a quick idea to consider ....

I note that using show_menu2 sitemap example, and removing everything except [keywords] it is possible to create a 'fake' tag cloud of sorts. I wondered if it might be possible to add a 'tag cloud' format to your show_menu2, with some  css options to vary text size color.
Logged

brofield
Senior Baker
*****
Offline Offline

Posts: 199


WWW
« Reply #239 on: June 18, 2008, 05:39:31 AM »

re: tag cloud
Tag clouds take into account everything in the menu tree, not just the current page. I think this is best left to a specific addin module.
Logged
Pages: 1 ... 10 11 [12] 13 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!