Page 3 of 9

:)

Posted: Sun Nov 28, 2004 1:08 pm
by yossabeh
Forum ID - OFCOURSE!!!

GOT IT!

Posted: Sun Dec 05, 2004 11:52 am
by addso
how can we make this mod compatible with log moderator actions mod? if a moderator recycles a topic, then it is not shown in the logs ... not even as a move topic ... :?

Posted: Sun Dec 05, 2004 1:24 pm
by Famitsu
addso wrote: how can we make this mod compatible with log moderator actions mod? if a moderator recycles a topic, then it is not shown in the logs ... not even as a move topic ... :?
i don't know and where to find your log moderator actions? so i can't help you :roll:

Posted: Sun Dec 05, 2004 7:07 pm
by addso
sorry I assumed you know about that mod :oops: , since it's highly know for forums with lots of moderators (to keep them from doing damage :D and to punish them if necessary).

it's the first mod that comes in the mod database for the admin tools. here's the link http://www.phpbb.com/phpBB/viewtopic.php?t=73523

thanks :)

Posted: Sun Dec 05, 2004 7:17 pm
by Cyberpenguin
addso wrote: sorry I assumed you know about that mod :oops: , since it's highly know for forums with lots of moderators (to keep them from doing damage :D and to punish them if necessary).

it's the first mod that comes in the mod database for the admin tools. here's the link http://www.phpbb.com/phpBB/viewtopic.php?t=73523

thanks :)


yeah, the bin would be cooler if it could be logged by admin actions, and if it had an option to remve the post counts of a user if there post gets trashed.

Posted: Sun Dec 05, 2004 7:38 pm
by addso
Cyberpenguin wrote:
addso wrote:sorry I assumed you know about that mod :oops: , since it's highly know for forums with lots of moderators (to keep them from doing damage :D and to punish them if necessary).

it's the first mod that comes in the mod database for the admin tools. here's the link http://www.phpbb.com/phpBB/viewtopic.php?t=73523

thanks :)


yeah, the bin would be cooler if it could be logged by admin actions, and if it had an option to remve the post counts of a user if there post gets trashed.
You can use an additional mod that does that with some forums. Read the full topic. I have that mod added, and each time a topic gets recycled, it decreases the post count. However I would like to see an script that recycles a post - that is automatically splits it into a new topic and then recycles that.

Posted: Sun Dec 05, 2004 10:12 pm
by Famitsu
@ addso -> you should ask morpheus2matrix, he knows how his mod works and how to add a new 'case'
because i'm busy for a while, ~2 weeks

Posted: Sun Dec 05, 2004 10:46 pm
by addso
ok I will ... but how about the post recycling feature?

Posted: Tue Dec 07, 2004 9:18 am
by addso
it's easy to get the logs to log the recycle feature. just add the line

Code: Select all

// Log actions MOD Start
log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']);
// Log actions MOD End
after

Code: Select all

$message = $lang['Topics_Moved_bin'];
in the modcp.php file .. :)

Posted: Tue Dec 07, 2004 9:21 pm
by Famitsu
Great
that will help others users :)
addso wrote: how about the post recycling feature?
not currently
anyway you can split your topic to move post per post !!!

Posted: Sat Dec 11, 2004 12:18 am
by Snowboardalliance
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 line

Code: Select all

// Log actions MOD Start
log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']);
// Log actions MOD End
after

Code: Select all

$message = $lang['Topics_Moved_bin'];
in the modcp.php file .. :)



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 logged

Code: Select all

// Log actions MOD Start
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
// Log actions MOD End
After

Code: Select all

include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);

AND

Code: Select all

// Log actions MOD Start
log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']);
// Log actions MOD End
After

Code: Select all

			$message = $lang['Topics_Moved_bin'];
It's basically the same but in the bin.php
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??

Posted: Mon Dec 27, 2004 1:01 am
by Wolf_Kanuni
Famitsu wrote: if you only want allow ADMIN to delete topic just replace this line:

Code: Select all

$is_auth['auth_delete']
with

Code: Select all

$userdata['user_level'] == ADMIN
keep in mind, your moderators will always delete posts via modcp
so you need to edit this file (modcp.php) too
search for the same variable

Code: Select all

if (!$is_auth['auth_delete'])
replace with

Code: Select all

if (!$userdata['user_level'] == ADMIN)
means: if (!) not level ADMIN return error message


Sorry but why would one need to do that? In ACP/forum permissions, you can assign the delete function to only admins anyway.

Posted: Mon Dec 27, 2004 2:15 pm
by Famitsu
Wolf_Kanuni wrote:
Famitsu wrote:if you only want allow ADMIN to delete topic just replace this line:

Code: Select all

$is_auth['auth_delete']
with

Code: Select all

$userdata['user_level'] == ADMIN
keep in mind, your moderators will always delete posts via modcp
so you need to edit this file (modcp.php) too
search for the same variable

Code: Select all

if (!$is_auth['auth_delete'])
replace with

Code: Select all

if (!$userdata['user_level'] == ADMIN)
means: if (!) not level ADMIN return error message


Sorry but why would one need to do that? In ACP/forum permissions, you can assign the delete function to only admins anyway.
yep
it was another solution :lol:

thanks for remind us this possibility :D

Posted: Fri Feb 25, 2005 4:25 am
by jlenko
I like this mod... but I created a parse error (somehow) with it. I actually don't think it was this mod specifically, but something else that tries to call something that was edited out...

my forums: www.bcjbody.org/forums

i installed "Bin" tonight.. now when you click on Usergroups, you get this error:
Parse error: parse error in /home/virtual/site34/fst/var/www/html/forums/groupcp.php on line 541


So I looked up line 541 of groupcp.php:
// 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
//
if ( !empty($HTTP_POST_VARS['add']) ||


Line 541 (according to Word) is in bold above.

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?

Any suggestions?

...j

Posted: Fri Feb 25, 2005 3:00 pm
by blinddruid
Ok I feel rather silly asking this but what do I put in ehre ?
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.