Welcome, Guest. Please login or register.
March 21, 2010, 05:12:25 AM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 veröffentlicht!
Download und weitere Informationen gibt es hier .
110567 Posts in 15967 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Templates, Menus & Design (Moderators: Argos, BerndJM)
| | |-+  Multilanguage site: submenu dissapears after search #SOLVED#
Pages: 1 [2] Go Down Print
Author Topic: Multilanguage site: submenu dissapears after search #SOLVED#  (Read 6792 times)
Boudi

Offline Offline

Posts: 501


//o_-\\


« Reply #25 on: April 21, 2008, 09:14:17 PM »

Hello,


I have a question, Is sir Brofield still on this topic, trying to solve it?   smiley

Besides that I would like to hear from other multilanguage users if they have this problem or not.

Hope 2 hear from you  smiley

Sincerely,
Knert
« Last Edit: April 21, 2008, 09:21:23 PM by knert » Logged

...:: Bake the Unbakable ::...
brofield

Offline Offline

Posts: 224


WWW
« Reply #26 on: April 22, 2008, 05:11:24 AM »

Fixed.

In class.frontend.php, function get_page_details(), add the following line:

     // Page ID
     define('PAGE_ID', $this->page['page_id']);
+   define('REFERRER_ID', PAGE_ID);

(Note that this change isn't strictly necessary, but I feel that it is better to have it as it makes the necessary template code a little simpler. Simpler is always better. See below)

In Settings -> Show advanced settings -> Search Settings -> Header, add this input field immediately following the <form> open tag.

     <input type="hidden" name="referrer" value="[REFERRER_ID]" />

In the template, add the following input field immediately following the search <form> open tag.

     <input type="hidden" name="referrer" value="<?php echo REFERRER_ID; ?>" />

If the class.frontend.php is not modified, it can still be done with the code:

     <input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />

Upgrade to the latest show_menu2 version 2.6

     http://code.jellycan.com/show_menu2/


NOTE: would you please test with these changes and verify for me that it is fixed (I've tested on 2.7 for multi-language sites, and 2.6.7 for a normal site).

B
« Last Edit: April 22, 2008, 07:40:49 AM by brofield » Logged
Boudi

Offline Offline

Posts: 501


//o_-\\


« Reply #27 on: April 22, 2008, 10:43:18 AM »

Hi Brofield,

First off all...thank you for taking the time to try to solve this issue. I really appreciate it!

Specs:

- WB 2.7
- Allcss2 template

I did exactly what you wrote and it works like a charm!  cheesy cheesy

The menu stays intact like It should be! Great stuff! So nice to see it works after weeks of stress  rolleyes

I will now test it in combination with other mods like anynews, multiple menu's etc.
If I have results about that I will put them here right away!

Thank again for helping me (and us) out!  smiley smiley
Logged

...:: Bake the Unbakable ::...
doc

Offline Offline

Posts: 3581


« Reply #28 on: April 22, 2008, 07:09:12 PM »

Hello Brofield,

tested the latest version of show_menu2 (v4.60) on an existing WB 2.6.7 multi-lingual site: http://help.websitebaker.org/
Everything works as it should (also tested with WB 2.7), thanks for providing a working solution.

Have updated the show_menu2 module on the addons repository with your latest version.

Thanks for your contribution.
Regards Christian
« Last Edit: April 22, 2008, 09:02:49 PM by doc » Logged
gucci

Offline Offline

Posts: 37


« Reply #29 on: May 14, 2008, 01:02:06 PM »

Hallo Brofield,

I had the same problem like Knert.
Now, the menu stays intact when I click on search and the results are displayed.
But when I click on one of the results all div containers above the div container who includes the search (in index.php of my template) disappear.

I use wb 2.7 with showmenu2 (version 4.6), multilingual site.

Code:
<?php show_menu2(0SM2_ROOT+1SM2_ALLSM2_CURR+1|SM2_CURRTREEfalsefalsefalsefalsefalse'<ul id="header_menu" class="menu">'); ?>

Is this a problem of my template or a showmenue2 problem?

Sincerely

gucci
« Last Edit: October 23, 2008, 09:00:53 AM by gucci » Logged
brofield

Offline Offline

Posts: 224


WWW
« Reply #30 on: May 16, 2008, 12:28:54 AM »

Your parameters to the function look wrong. The flags are definitely wrong.

B
Logged
Pages: 1 [2] Go Up Print 
Jump to:  

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