Page 7 of 9

Posted: Wed Dec 14, 2005 1:32 pm
by kooky
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...

Posted: Mon Jan 16, 2006 8:49 pm
by Bnasir
Can anybody tell me how to enable this bin?

Cant find any option in Configation in admin Panel

Please Help.... :(

Posted: Thu Jan 19, 2006 1:30 pm
by kooky
In your AdminCP ► General Admin ► Configuration
You have Bin forum, just add the id of you bin ;)

Posted: Tue Jan 24, 2006 7:53 pm
by eno123
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).

Posted: Fri Feb 03, 2006 12:24 am
by Lord Raiden
Is there a way with this mod to enable a custom icon for the "bin" forum to diferentiate it from the other forums?

Posted: Sun Feb 19, 2006 12:08 am
by nm3210
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,

Posted: Sun Feb 19, 2006 1:46 pm
by Lord Raiden
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?

Posted: Mon Feb 27, 2006 3:12 am
by Lord Raiden
*bump* Still interested in finding out about how to do that trash bin image.

Posted: Thu Mar 09, 2006 6:45 pm
by chrisb123
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 :)

Posted: Thu Mar 09, 2006 6:47 pm
by chrisb123
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 ??

Posted: Sun Apr 30, 2006 11:31 am
by beery
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?

does not work with 2.0.20

Posted: Tue May 02, 2006 7:35 am
by orynider
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:

Posted: Sun Jun 25, 2006 2:02 pm
by MilesTEG
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

Posted: Sun Jun 25, 2006 5:29 pm
by pengunio
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?

Posted: Sun Jun 25, 2006 5:53 pm
by MilesTEG
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.