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
link in the menu are relative
#2
Should be easy to do.

The get_nav... function uses find_url() get the path and it takes a param for relative.

So we can pass one through get_nav or use some global option.

PHP Code:
* @param string $slug
 
* @param string $parent
 
* @param string $type Default is 'full'alternative is 'relative'
 
* @return string
 
*/
function 
find_url($slug$parent$type='full') { 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
link in the menu are relative - by Oleg06 - 2013-10-07, 20:01:08
RE: link in the menu are relative - by shawn_a - 2013-10-07, 22:53:10
RE: link in the menu are relative - by Oleg06 - 2013-10-07, 23:56:53
RE: link in the menu are relative - by shawn_a - 2013-10-07, 23:59:37
RE: link in the menu are relative - by Oleg06 - 2013-10-08, 00:08:08
RE: link in the menu are relative - by shawn_a - 2013-10-08, 00:12:59
RE: link in the menu are relative - by Oleg06 - 2013-10-08, 00:20:39
RE: link in the menu are relative - by shawn_a - 2013-10-08, 00:23:04
RE: link in the menu are relative - by Oleg06 - 2013-10-08, 00:31:11
RE: link in the menu are relative - by Oleg06 - 2013-10-08, 01:06:13
RE: link in the menu are relative - by shawn_a - 2013-10-08, 06:20:27
RE: link in the menu are relative - by Oleg06 - 2013-10-08, 07:18:15
RE: link in the menu are relative - by shawn_a - 2013-10-08, 07:59:53
RE: link in the menu are relative - by Oleg06 - 2013-10-08, 15:56:28
RE: link in the menu are relative - by Oleg06 - 2013-10-12, 21:06:41
RE: link in the menu are relative - by D.O. - 2013-11-03, 16:40:34
RE: link in the menu are relative - by Oleg06 - 2013-11-03, 17:20:27
RE: link in the menu are relative - by D.O. - 2013-11-03, 18:48:25
RE: link in the menu are relative - by Oleg06 - 2013-11-03, 19:13:18



Users browsing this thread: 2 Guest(s)