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
Find out the navigation level?
#6
media-seven Wrote:"find_url($parent)" results in my root path, no matter where I am.

What do you mean? find_url() is also used by the script that generates your main menu and it should always output correct URLs. What does it do that you don’t want it to do?

media-seven Wrote:And how do I open the XML data file? Couldn't find anything in the documentation about it.

We haven’t documented every single internal function, but this would be getXML(). (As seen on line 42 of the current index.php.)

Something like this would probably handle it (untested):
Code:
function returnParentTitle($parent) {
   $parentdata = getXML(GSDATAPAGESPATH.$parent.'.xml');
   return $parentdata->title;
}
“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
Find out the navigation level? - by media-seven - 2010-10-06, 19:10:09
Find out the navigation level? - by Zegnåt - 2010-10-06, 20:11:42
Find out the navigation level? - by media-seven - 2010-10-06, 20:33:24
Find out the navigation level? - by Zegnåt - 2010-10-07, 01:04:31
Find out the navigation level? - by media-seven - 2010-10-07, 16:21:03
Find out the navigation level? - by Zegnåt - 2010-10-07, 16:54:20
Find out the navigation level? - by media-seven - 2010-10-07, 17:10:00
Find out the navigation level? - by Zegnåt - 2010-10-07, 18:32:45



Users browsing this thread: 1 Guest(s)