No, they are not, otherwise i would have this error toojlenko wrote: I'm using phpbb 2.0.12... with style CharCoal3:Steel (c3s). Thing is.. I didn't edit this file for the Bin mod...
Out of all the mods I'm using... the only one that I've had to edit groupcp for, was the User Levels mod... same author
Are these two mods incompatible? I've checked all my code, and I've modified it exactly as I should have. Nothing else comes to mind... then again.. I've only really been modding these phpbb forums for.. oh.. 6 months?
Code: Select all
//
// For security, get the ID of the group moderator.
//
switch(SQL_LAYER)
{
case 'postgresql':
$sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod
FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa
WHERE g.group_id = $group_id
AND aa.group_id = g.group_id
UNION (
SELECT g.group_moderator, g.group_type, NULL
FROM " . GROUPS_TABLE . " g
WHERE g.group_id = $group_id
AND NOT EXISTS (
SELECT aa.group_id
FROM " . AUTH_ACCESS_TABLE . " aa
WHERE aa.group_id = g.group_id
)
)";
break;
case 'oracle':
$sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod
FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa
WHERE g.group_id = $group_id
AND aa.group_id (+) = g.group_id";
break;
default:
$sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod
FROM ( " . GROUPS_TABLE . " g
LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = g.group_id )
WHERE g.group_id = $group_id";
break;
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get moderator information', '', __LINE__, __FILE__, $sql);
}
if ( $group_info = $db->sql_fetchrow($result) )
{
$group_moderator = $group_info['group_moderator'];
if ( $group_moderator == $userdata['user_id'] || $userdata['user_level'] == ADMIN )
{
$is_moderator = TRUE;
}
//
// Handle Additions, removals, approvals and denials
jlenko wrote: You have to create a new forum... called Bin or actually whatever you want. Then check the forum ID... enter that number in the Configuration pane of the ACP.. then it'll work.
...j
no we (all) began from zeroeq4bits wrote: *feeling like a complete idiot*
Bin forum
Fill with the forum ID where topics moved to bin, a value of 0 will disable this feature. You should edit this forum permissions to allow or not view/post/reply... by users or forbid access to this forum.
Code: Select all
#
#-----[ FIND ]------------------------------
#
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]-------------------------
#
Famitsu wrote: something like thisCode: Select all
$topic_mod .= ( $userdata['user_level'] == ADMIN ) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ' : "";
Code: Select all
#
#-----[ FIND ]----------------------------
#
$mode = 'delete';
#
#-----[ REPLACE WITH ]------------------------
#
$mode = ($userdata['user_level'] == ADMIN ? 'delete' : '';
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??