[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

User avatar
kooky
Registered User
Posts: 510
Joined: Wed Dec 11, 2002 7:15 pm
Location: Where's Your Head At
Contact:

Post by kooky » Wed Dec 14, 2005 1:32 pm

Mut wrote: Hi, is ther a demo of this anywhere?
No, but it adds a new icon (recycle bin) at the bottom of each topic, near delete, move...
And you define the bin forum via your AdminCP...
My Contribs (included the User Class, ModCP...) | My blog

My Station: Image :: My Browser: Image

Bnasir
Registered User
Posts: 5
Joined: Sat Jan 07, 2006 2:08 pm

Post by Bnasir » Mon Jan 16, 2006 8:49 pm

Can anybody tell me how to enable this bin?

Cant find any option in Configation in admin Panel

Please Help.... :(

User avatar
kooky
Registered User
Posts: 510
Joined: Wed Dec 11, 2002 7:15 pm
Location: Where's Your Head At
Contact:

Post by kooky » Thu Jan 19, 2006 1:30 pm

In your AdminCP ► General Admin ► Configuration
You have Bin forum, just add the id of you bin ;)
My Contribs (included the User Class, ModCP...) | My blog

My Station: Image :: My Browser: Image

eno123
Registered User
Posts: 78
Joined: Tue Sep 20, 2005 9:07 pm

Post by eno123 » Tue Jan 24, 2006 7:53 pm

kooky wrote: and in modcp.php, you can try this

Code: Select all

#
#-----[ FIND ]----------------------------
#
		$mode = 'delete';
#
#-----[ REPLACE WITH ]------------------------
#
		$mode = ($userdata['user_level'] == ADMIN ? 'delete' : 
'';


Should be:

Code: Select all

$mode = ($userdata['user_level'] == ADMIN) ? 'delete' : '';
Also, you need to move the

Code: Select all

//
// Start session management
//
$userdata = session_pagestart($user_ip, $forum_id);
init_userprefs($userdata);
//
// End session management
//
bit to before that check so that $userdata is actually filled with something (and not 0).

User avatar
Lord Raiden
Registered User
Posts: 391
Joined: Sat Jun 26, 2004 11:24 pm
Contact:

Post by Lord Raiden » Fri Feb 03, 2006 12:24 am

Is there a way with this mod to enable a custom icon for the "bin" forum to diferentiate it from the other forums?
Steve Lake
-Owner/Admin/Author of:
-Raiden's Realm - Bringing Linux to the World

User avatar
nm3210
Registered User
Posts: 4
Joined: Sun Jan 08, 2006 5:52 am
Contact:

Post by nm3210 » Sun Feb 19, 2006 12:08 am

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


Anyone got an answer to this as i am also needing to know.

Cheers
Darren


K, this is a super easy fix.
change

Code: Select all

log_action('Recycle', $topic_id_sql, $userdata['user_id'], $userdata['username']);
to

Code: Select all

log_action('Recycle', $topic_id, $userdata['user_id'], $userdata['username']);
if you look around the code you'll see that bin.php uses $topic_id but not $topic_id_sql, and it doesn't/shouldn't make a difference.

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,

User avatar
Lord Raiden
Registered User
Posts: 391
Joined: Sat Jun 26, 2004 11:24 pm
Contact:

Post by Lord Raiden » Sun Feb 19, 2006 1:46 pm

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,


Well, that was kind of my original question. What do we need to change to get the recycle bin image on our bin forum?
Steve Lake
-Owner/Admin/Author of:
-Raiden's Realm - Bringing Linux to the World

User avatar
Lord Raiden
Registered User
Posts: 391
Joined: Sat Jun 26, 2004 11:24 pm
Contact:

Post by Lord Raiden » Mon Feb 27, 2006 3:12 am

*bump* Still interested in finding out about how to do that trash bin image.
Steve Lake
-Owner/Admin/Author of:
-Raiden's Realm - Bringing Linux to the World

chrisb123
Registered User
Posts: 409
Joined: Fri Jan 20, 2006 4:05 am
Location: Bury, UK

Post by chrisb123 » Thu Mar 09, 2006 6:45 pm

Good mod this. Easily installed and works a treat

I'm using PHPBB 2.0.19 with other mods installed

I used easymod 0.3.0 to install

Thanks for this mod :)

chrisb123
Registered User
Posts: 409
Joined: Fri Jan 20, 2006 4:05 am
Location: Bury, UK

Post by chrisb123 » Thu Mar 09, 2006 6:47 pm

Lord Raiden wrote: *bump* Still interested in finding out about how to do that trash bin image.


Are you referring to the image that comes in the pack ??

User avatar
beery
Registered User
Posts: 73
Joined: Sat Oct 05, 2002 7:49 am
Location: Bangkok , Thailand

Post by beery » Sun Apr 30, 2006 11:31 am

I like this mod. i need some function that have a icon for member voting delete topic, if member voting at X time, that topic will be automatic delete or move to bin. it possible for this function?

User avatar
orynider
Registered User
Posts: 122
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

does not work with 2.0.20

Post by orynider » Tue May 02, 2006 7:35 am

with 2.0.20 when I select an messege în modcp and I press Recycle I get an messege that I did not selected any subject. How can this be fixed?

And in AdminCP -> General Admin -> Configuration : the Bin forum is not showing :(

When I press the icon at the bottom of topic (Move this topic to bin) i get: Bin has been disabled :(

edit:
I foget to insert in PhpMyAdmin. Work now :lol:

MilesTEG
Registered User
Posts: 11
Joined: Sun Jul 03, 2005 7:54 am

Post by MilesTEG » Sun Jun 25, 2006 2:02 pm

Hello,
I use this MOD on a phpBB board 2.0.21 with Categories Hierarchy 2.1.4e.
For this to work, I had to modify the install.txt.
With ptifo template, the icon for delete topic is the recycle bin icon, so to make sense, I create an icon for delete topic with a red cross, and I create an icon with a recycle bin for the bin action.
In the archive you have the icons for subsilver, ptifo and gg_harmony_blue.

Here you can dowload the archive.

Ps : it includes the original french translation.
++
Miles

pengunio
Registered User
Posts: 78
Joined: Wed Jun 21, 2006 8:24 pm

Post by pengunio » Sun Jun 25, 2006 5:29 pm

how do i get it to work. What do i put for the id number? 0 the bin dosent work and 1 it just delets this.

Can anyone explian how this ID works?

MilesTEG
Registered User
Posts: 11
Joined: Sun Jul 03, 2005 7:54 am

Post by MilesTEG » Sun Jun 25, 2006 5:53 pm

Look at this link : MOD Release Announcements & Support

You have that :
http://www.phpbb.com/phpBB/viewforum.php?f=15

f=15 : this is the forum ID !!
So, you put the number of your bin forum.

Post Reply

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

Who is online

Users browsing this forum: No registered users and 5 guests