MyBB Hacks

Full Version: Soft Delete
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
(10-14-2010 04:20 AM)noammn Wrote: [ -> ]Hi, i have a problem:
http://img176.imageshack.us/img176/3310/problemi.png
I think the problem is that I don't have the column of the Rating..
How can i fix this problem?
Please help me...

You can edit forumdisplay_thread_deleted template in your global template.
(10-14-2010 04:31 AM)RateU Wrote: [ -> ]
(10-14-2010 04:20 AM)noammn Wrote: [ -> ]Hi, i have a problem:
http://img176.imageshack.us/img176/3310/problemi.png
I think the problem is that I don't have the column of the Rating..
How can i fix this problem?
Please help me...

You can edit forumdisplay_thread_deleted template in your global template.

Thanks =]
Where can I find this mod's languages variables
I think there is no a specific language file for this plugin.
But I think you need to wait Yumi to reply.
Search the files for ) or $lang->

You can overwrite these with a language file (+ will need to load it during global_start).
Example

PHP Code:
isset($lang->purge_post) or $lang->purge_post = 'Purge Post';

Make the typical plugin file, adding a line such as

PHP Code:
$l['purge_post'] = "whatever";


You can do this for each instance of the language variable.

Also, edit inc/plugins/softdelete.php, find:

PHP Code:
if(!defined('IN_MYBB'))
    die('This file cannot be accessed directly.');

Add below:

PHP Code:
$plugins->add_hook('global_start', 'softdelete_loadlang');
function softdelete_loadlang() { $GLOBALS['lang']->load('softdelete'); }


Hope that helps.

Updated to v1.24:
- fix bug with editing polls
- fix issue with deleting moved threads
- fix XThreads template prefix conflict with newer versions of XThreads

Still haven't tested this with 1.6.1, mainly the counters (which are a bit of a mess).
Nice, So can you make a plugin that automatically makes a reported posts and threads invisible (unaproved)?
Can I?  Probably.
Will I?  Probably not.
Why not? I need something like that
The great thing is, I don't.
Pages: 1 2 3 4 5 6 7 8 9
Reference URL's