Code: Select all
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
Code: Select all
include($phpbb_root_path . 'includes/functions_logbook.'.$phpEx);
Code: Select all
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
Code: Select all
include($phpbb_root_path . 'includes/functions_logbook.'.$phpEx);
Greeger wrote: Next the delete button in the logbook page wasn't working for me. I found the problem looked like code may have been changed in the page header but not in the template. To fix this I looked in logbook.php and found:And then I uncommented the lines below it.Code: Select all
//ADMIN: Can do the delete button etc. Done in page_header.php
This didn't work for me so I changed the code to the following, Unfortunately this only displays the delete button for the admin with user id 2.
you might be able to replaceCode: Select all
//ADMIN: Can do the delete button etc. Done in page_header.php if ($userdata['user_id'] == 2) { $template->assign_block_vars('switch_is_admin', array()); }
withCode: Select all
$userdata['user_id'] == 2
Code: Select all
($board_config['log_allow_all'] && $userdata['user_view_log']) || $userdata['user_id'] == 2
Code: Select all
CREATE TABLE `phpbb_logbook` (
`log_id` mediumint(10) NOT NULL auto_increment,
`action` varchar(50) default NULL,
`user_id` mediumint(8) default '0',
`username` varchar(25) default NULL,
`user_ip` varchar(8) default '0',
`time` int(11) default '0',
`old_forum_id` mediumint(9) default NULL,
`old_topic_id` mediumint(9) default NULL,
`old_topic_title` varchar(60) default NULL,
`old_post_id` mediumint(9) default NULL,
`old_post_time` int(11) default '0',
`old_title` varchar(60) default NULL,
`old_text` text,
`new_forum_id` mediumint(9) default NULL,
`new_topic_id` mediumint(9) default NULL,
`new_topic_title` varchar(60) default NULL,
`new_post_id` mediumint(9) default NULL,
`new_title` varchar(60) default NULL,
`new_text` text,
PRIMARY KEY (`log_id`)
) TYPE=MyISAM ;
ALTER TABLE `phpbb_users` ADD `user_view_log` TINYINT( 4 ) DEFAULT '0' NOT NULL;
Code: Select all
define('LOGBOOK_TABLE', $table_prefix.'logbook');
00100100 wrote: Hi there, thanx for this great hack, u are going to save me headaches .
I installed it manually today, and the functionality is perfect. There is a funny error though:
I does not log all the forums, the old forum pages that have been greated few months ago are logged perfectly, but the forums that i created few weeks ago are not being loged for anything.
I have no clue where to start looking for the error, any ideas?
I do have other modifications installed on the forums, but i have no idea if it is conflecting with any of them, because i dont know where to look for the error.
thanx
hornybookworm wrote: When I click on the logbook link in the admin page I get this error:
SQL Error : 1146 Table 'greengo_lfriends.LOGBOOK_TABLE' doesn't exist
Code: Select all
#
#-----[ OPEN ]-------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]-------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-------------------------------------------------
#
//MOD Logbook
define('LOGBOOK_TABLE', $table_prefix.'logbook');
lumian wrote: ahh good call, i musta missed that. Thanks!
--heh now im gettingWarning: mysql_free_result(): 25 is not a valid MySQL result resource in /hsphere/local/home/jajones/forums.macabreguild.com/db/mysql4.php on line 318
commenting out those lines seems to fix it