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 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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fancy URL: http://domain/cat1/cat2/page
#4
Not using the most recent version but also using I18N Navigation - probably part of my issue. To update, I would have to go through another Certification and Accreditation to use to be able to use on my network with Information Assurance approval.

That would work from just looking at your code - should be a recursive function to support all levels - some pseduo code - might need globals without looking at getSimpleCode:
Code:
function getParents($slug) {
   $data = self::getPageData($slug);
   if ($data->parent != "") {
      $array[] = getParents($slug);  //Capture the parent via recursion
   }
   return (isset($array) ? $array : false);
}
Reply


Messages In This Thread
Fancy URL: http://domain/cat1/cat2/page - by Kida - 2013-04-27, 23:52:38
RE: Fancy URL: http://domain/cat1/cat2/page - by bandrzej - 2013-05-05, 22:36:27



Users browsing this thread: 1 Guest(s)