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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature Roadmap etc Development Discussion
#15
I've got thru the documentation again. get_header() ain't that important. It's the link creating i18n replacements (like get_i18n_navigation(), get_i18n_link(), etc.) that need to be put instead of core functions for URIs to be "properly" generated and for %parents% tag to get parsed.

Still, those URIs won't work without some kind of a magical serverside rewrite, becasue GS expects to get a single slug (+params):
Code:
# get page id (url slug) that is being passed via .htaccess mod_rewrite
if (isset($_GET['id'])){
    $id = str_replace ('..','',$_GET['id']);
    $id = str_replace ('/','',$id);
    $id = lowercase($id);
Like the comment explains, on Apache this can be achieved within .htaccess, but on nginx this may be a problem because of how nginx server configuration is organized. I'm running an nginx server myself and I still can't figure out that rewrite rule (my regex-fu is pretty basic).

Even then it's a sort of cheat, because it doesn't matter if you go with:
Code:
http://site.com/page-with-children/child-page/subchild-page/
or
Code:
http://site.com/subchild-page/
coz' both will work.
Reply


Messages In This Thread
RE: Feature Roadmap etc Development Discussion - by Everyone - 2013-09-13, 06:48:43



Users browsing this thread: 3 Guest(s)