No, but it adds a new icon (recycle bin) at the bottom of each topic, near delete, move...Mut wrote: Hi, is ther a demo of this anywhere?
And you define the bin forum via your AdminCP...
kooky wrote: and in modcp.php, you can try thisCode: Select all
# #-----[ FIND ]---------------------------- # $mode = 'delete'; # #-----[ REPLACE WITH ]------------------------ # $mode = ($userdata['user_level'] == ADMIN ? 'delete' : '';
Code: Select all
$mode = ($userdata['user_level'] == ADMIN) ? 'delete' : '';
Code: Select all
//
// Start session management
//
$userdata = session_pagestart($user_ip, $forum_id);
init_userprefs($userdata);
//
// End session management
//
Noonster wrote:Snowboardalliance wrote: 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
Code: Select all
log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']);
Code: Select all
log_action('Recycle', $topic_id, $userdata['user_id'], $userdata['username']);
Also, if you guys want better integration, you should be adding the cases for Recycle in rules.php, lang_main.php and then editing your template.cfg to have the recycling bin image - kind of complicated,