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 1121 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 830 postParser->parse_message
/showthread.php 1121 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 830 postParser->parse_message
/showthread.php 1121 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 830 postParser->parse_message
/showthread.php 1121 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 830 postParser->parse_message
/showthread.php 1121 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
PHP How to get page ID
#1
Is there some simple php code snippet to get page id?
Reply
#2
For the current page, get_page_slug() (to display) or return_page_slug()
http://get-simple.info/wiki/themes:template_tags
Reply
#3
(2015-03-12, 07:15:16)Carlos Wrote: For the current page, get_page_slug() (to display) or return_page_slug()
http://get-simple.info/wiki/themes:template_tags

Of course .. my bad Blush. How about get all pages? like if i want to show all pages (and all new pages also) in one page? Rolleyes
Reply
#4
As of GS 3.3.x, a way to do something like that could be accessing global $pagesArray and using caching functions, like in this script:
http://get-simple.info/forums/showthread.php?tid=3083
(if you know a bit of php you can use some of the code - ignore the custom permalink stuff)
Reply
#5
(2015-03-15, 19:22:20)Carlos Wrote: As of GS 3.3.x, a way to do something like that could be accessing global $pagesArray and using caching functions, like in this script:
http://get-simple.info/forums/showthread.php?tid=3083
(if you know a bit of php you can use some of the code - ignore the custom permalink stuff)

Thanx, that works fine Big Grin. Jus t playing with bootstrap scrollby Big Grin.
Reply




Users browsing this thread: 2 Guest(s)