[2.0.10] Bin

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
21
75%
Very Good
5
18%
Good
1
4%
Fair
0
No votes
Poor
1
4%
 
Total votes: 28

yossabeh
Registered User
Posts: 7
Joined: Mon Oct 04, 2004 9:50 am

:)

Post by yossabeh » Sun Nov 28, 2004 1:08 pm

Forum ID - OFCOURSE!!!

GOT IT!

addso
Registered User
Posts: 71
Joined: Tue Nov 30, 2004 1:00 am

Post by addso » Sun Dec 05, 2004 11:52 am

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 ... :?

Famitsu
Registered User
Posts: 774
Joined: Mon Aug 25, 2003 7:59 pm
Location: Account disabled -> see my signature to contact me
Contact:

Post by Famitsu » Sun Dec 05, 2004 1:24 pm

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:
Don't PM me, i won't answer anymore

My Contibs: Online-Offline-Hidden | Email Confirmation
The TRI FORCE (Username Color | User Level | ModeratorCP)
...

My new/current account: contact me here

addso
Registered User
Posts: 71
Joined: Tue Nov 30, 2004 1:00 am

Post by addso » Sun Dec 05, 2004 7:07 pm

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 :)

Cyberpenguin
Registered User
Posts: 14
Joined: Fri Nov 26, 2004 8:28 am

Post by Cyberpenguin » Sun Dec 05, 2004 7:17 pm

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.

addso
Registered User
Posts: 71
Joined: Tue Nov 30, 2004 1:00 am

Post by addso » Sun Dec 05, 2004 7:38 pm

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.

Famitsu
Registered User
Posts: 774
Joined: Mon Aug 25, 2003 7:59 pm
Location: Account disabled -> see my signature to contact me
Contact:

Post by Famitsu » Sun Dec 05, 2004 10:12 pm

@ 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
Don't PM me, i won't answer anymore

My Contibs: Online-Offline-Hidden | Email Confirmation
The TRI FORCE (Username Color | User Level | ModeratorCP)
...

My new/current account: contact me here

addso
Registered User
Posts: 71
Joined: Tue Nov 30, 2004 1:00 am

Post by addso » Sun Dec 05, 2004 10:46 pm

ok I will ... but how about the post recycling feature?

addso
Registered User
Posts: 71
Joined: Tue Nov 30, 2004 1:00 am

Post by addso » Tue Dec 07, 2004 9:18 am

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 .. :)

Famitsu
Registered User
Posts: 774
Joined: Mon Aug 25, 2003 7:59 pm
Location: Account disabled -> see my signature to contact me
Contact:

Post by Famitsu » Tue Dec 07, 2004 9:21 pm

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 !!!
Don't PM me, i won't answer anymore

My Contibs: Online-Offline-Hidden | Email Confirmation
The TRI FORCE (Username Color | User Level | ModeratorCP)
...

My new/current account: contact me here

User avatar
Snowboardalliance
Registered User
Posts: 98
Joined: Mon Nov 29, 2004 2:36 am

Post by Snowboardalliance » Sat Dec 11, 2004 12:18 am

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??
Last edited by Snowboardalliance on Tue May 17, 2005 10:29 pm, edited 1 time in total.

Wolf_Kanuni
Registered User
Posts: 34
Joined: Tue Nov 23, 2004 10:42 am

Post by Wolf_Kanuni » Mon Dec 27, 2004 1:01 am

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.

Famitsu
Registered User
Posts: 774
Joined: Mon Aug 25, 2003 7:59 pm
Location: Account disabled -> see my signature to contact me
Contact:

Post by Famitsu » Mon Dec 27, 2004 2:15 pm

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
Don't PM me, i won't answer anymore

My Contibs: Online-Offline-Hidden | Email Confirmation
The TRI FORCE (Username Color | User Level | ModeratorCP)
...

My new/current account: contact me here

jlenko
Registered User
Posts: 46
Joined: Sat May 22, 2004 7:41 pm
Location: Vancouver BC
Contact:

Post by jlenko » Fri Feb 25, 2005 4:25 am

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

blinddruid
Registered User
Posts: 52
Joined: Thu Apr 15, 2004 3:17 pm

Post by blinddruid » Fri Feb 25, 2005 3:00 pm

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.

Post Reply

Return to “[2.0.x] MOD Database Cleanup”