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
Add filter problems
#4
Which plugins are installed? Some plugins break content filters.

Here is my known good content test plugin.

Code:
<?php
/*
Content Filter Test
*/


# get correct id for plugin
$thisfile = basename(__FILE__, ".php");

# register plugin
register_plugin(
    $thisfile,        # ID of plugin, should be filename minus php
    'Content Filter', # Title of plugin
    '1.0',              # Version of plugin
    'Shawn a',        # Author of plugin
    '',                 # Author URL
    'Test content filters',     # Plugin Description
    '',                             # Page type of plugin
    ''                              # Function that displays content
);

# activate hooks
add_filter('content','debug_content');

function debug_content($content) {
    // error_reporting(E_ALL | E_STRICT);
    // ini_set('display_errors', 1);
  return "CONTENT FILTER TEST BEGIN" . $content . "CONTENT FILTER TEST END";
}

function debug_content_show() {
    echo '<p>I append a test string to content data using a content filter</p>';
}

?>
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Add filter problems - by cumbe - 2012-01-27, 00:57:34
RE: Add filter problems - by shawn_a - 2015-07-26, 00:40:26
RE: Add filter problems - by shawn_a - 2015-07-26, 00:44:59
RE: Add filter problems - by df8oe - 2015-07-26, 18:07:50
RE: Add filter problems - by shawn_a - 2015-07-27, 01:13:00
RE: Add filter problems - by shawn_a - 2015-07-27, 01:49:11
RE: Add filter problems - by df8oe - 2015-07-27, 02:44:53
RE: Add filter problems - by shawn_a - 2015-07-27, 05:22:46
Add filter problems - by mvlcek - 2012-01-27, 01:03:38
Add filter problems - by cumbe - 2012-01-27, 02:26:55
Add filter problems - by shawn_a - 2012-01-27, 02:40:44
Add filter problems - by cumbe - 2012-01-27, 18:56:21
Add filter problems - by cumbe - 2012-01-28, 03:32:07
Add filter problems - by shawn_a - 2012-01-28, 03:48:54
RE: Add filter problems - by df8oe - 2015-07-25, 20:43:12



Users browsing this thread: 2 Guest(s)