Welcome to Geeklog, Anonymous Thursday, October 15 2026 @ 07:19 pm EDT
Geeklog Forums
Bad behavior2 2.0.0 breaks search function
Status: offline
::Ben
Site Admin
Admin
Registered: 01/14/05
Posts: 1592
***** IMPORTANT! EXTRA STEP FOR THIS PLUGIN *****
5) Edit your lib-common.php file. Find the line where the lib-database.php is
included:
require_once( $_CONF['path_system'] . 'lib-database.php' );
AFTER that line, add:
require_once($_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php'
;
Note: As of Geeklog 1.6.1, the include for lib-database.php is done by the
config class, so you won't find the above line any more. A good place for
the bad_behavior2 include would be just before where we set the webserver's
timezone:
require_once $_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php';
/**
* Set the webserver's timezone
*/
5) Edit your lib-common.php file. Find the line where the lib-database.php is
included:
require_once( $_CONF['path_system'] . 'lib-database.php' );
AFTER that line, add:
require_once($_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php'
Note: As of Geeklog 1.6.1, the include for lib-database.php is done by the
config class, so you won't find the above line any more. A good place for
the bad_behavior2 include would be just before where we set the webserver's
timezone:
require_once $_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php';
/**
* Set the webserver's timezone
*/
Thank you.
Ben
40
54
Quote
All times are EDT. The time is now 07:19 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content