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
PHP snippet in page
#3
mvlcek Wrote:
ljgww Wrote:How someone adds <?PHP ... snippet of code ?> in a page?

when I try to add some php code it gets escaped... of course, I use SOURCE mode in editor. However when page get saved, content gets escaped....

Ideas?

Exec PHP plugin (but has some incompatibilities with other plugins) or DynPages plugin (where you add the code in a component and then add a link to the component on the page)

Thanks a lot! Will explore plugins. Second option looks more inviting because of organization (and clarity). Any experience with that one?
Reply


Messages In This Thread
PHP snippet in page - by ljgww - 2011-11-26, 00:35:24
PHP snippet in page - by mvlcek - 2011-11-26, 08:11:16
PHP snippet in page - by ljgww - 2011-11-26, 13:17:53
PHP snippet in page - by Connie - 2011-11-26, 18:42:06
PHP snippet in page - by ljgww - 2011-11-26, 22:42:59
PHP snippet in page - by Connie - 2011-11-26, 22:50:16



Users browsing this thread: 3 Guest(s)