The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Main Menu (more than one language?)
#15
holesovice Wrote:So for what I want ( a small site) it can be done!
For sure, it can be done for bigger sites too—as long as you don’t mind having to fill in a x-amount of extra fields on page creation (and these multiplied by the number of languages you’re using).

holesovice Wrote:Yes I understand the debate about the need for a plugin.
Sorry, we got of track a little there.

If you just want this for your little site and don’t mind manually setting up something we could call “links between pages” you can start developing it right now. Throw in Mike’s CustomFields plugin for the extra settings you need. If you’re website only sports 2 languages you’ll need 2 fields. In the first field you throw an identifier (maybe just a 0 of a 1) so you can tell what language the current page is written in. In the second field you fill in the page slug of the equal page in the other language. Now you use your theme coding to link these together.

Of course it would leave the whole menu function still open. You’ll need to recode a menu function that will check the variable of the first custom field and only display pages that share the same variable. This way you’ll only display one language in the menu at a time.

Don’t know how much of this coding you think you are capable of, so don’t hesitate to ask us for help!
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
Main Menu (more than one language?) - by Zegnåt - 2010-03-09, 16:57:58
Main Menu (more than one language?) - by Carlos - 2010-03-26, 08:01:43



Users browsing this thread: 9 Guest(s)