Noonster wrote:Snowboardalliance wrote:addso wrote:PostPosted: Tue Dec 07, 2004 4:18 am Post subject:
it's easy to get the logs to log the recycle feature. just add the lineafterCode: Select all
// Log actions MOD Start log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']); // Log actions MOD End
in the modcp.php file ..Code: Select all
$message = $lang['Topics_Moved_bin'];
I'm REALLY new to this phpBB stuff but from what I've learned I figured out you also need to edit bin.php so that if a Moderator clicks the recycle in the view topic, it is loggedAfterCode: Select all
// Log actions MOD Start include($phpbb_root_path . 'includes/functions_log.'.$phpEx); // Log actions MOD End
Code: Select all
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
AND
AfterCode: Select all
// Log actions MOD Start log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']); // Log actions MOD End
It's basically the same but in the bin.phpCode: Select all
$message = $lang['Topics_Moved_bin'];
EDIT: Help plaese! This works but the topic ID is 0 so you can't see what topic was moved (just noticed) Can anyone tell me how to correct this??
Anyone got an answer to this as i am also needing to know.
Cheers
Darren
Anyone help as i am still unable to get it to work correctly
As i am getting the error below when i edit the bin.php
Fatal error: Call to undefined function: log_action() in /home/corsa/public_html/forum/bin.php on line 229