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
GetSimple/Backend only capability
#6
I originally looked for a static html cms so I could add a cms to my site, when i found GS I realized how powerful it was and that it was totally worth redoing my sites in GS instead.

Although I am still using custom components to auto include some php pages that are not in GS.
( this required some finagling with the include paths due to the fact that including them from components changes the php working path )

for example this code could go in a content-bottom hook or a content filter
Code:
<?php
GLOBAL $inSidebar;

if($inSidebar==true) return;

$includes = array('','maps','places','stats');
$pages = array('','dev_grapher.php','dev_zones.php','dev_resources.php','dev_about.php','dev_stats.php');

$slug = get_page_slug(false);
$pageidx = array_search($slug,$includes);

#echo $slug;
#echo $pageidx;

# _debugLog(get_defined_vars());
if(isset($pageidx) and $pageidx!=''){
  # echo "<pre>including: ".$pages[$pageidx]."</pre>";
  include('../'.$pages[$pageidx]);
}else {
  require_once('../include.php');
}

?>

Basically if you hit up the slug "maps" (must exist ) it will include "dev_grapher.php"

You could use the error-404 hook also and do this without having to create the empty slugs, but then your menu would not have them.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
RE: GetSimple/Backend only capability - by shawn_a - 2013-11-04, 00:11:40
GetSimple/Backend only capability - by Connie - 2012-08-11, 17:49:59
GetSimple/Backend only capability - by yurifanboy - 2012-08-12, 06:39:31
GetSimple/Backend only capability - by shawn_a - 2012-08-14, 03:03:35



Users browsing this thread: 2 Guest(s)