vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Inline Moderation Tools (v1.2.1) (https://vborg.vbsupport.ru/showthread.php?t=68791)

rob_daemon 03-17-2005 04:28 AM

Glad you go this fixed :). Interesting problem, I'm not sure why exactly it'd happen, though.

YLP1 03-19-2005 08:25 PM

I still can't get this mod to work for invidivual posts...works for for topics.....this is going to drive me to drink! LOL

I did as you asked and created a new style with no parent, but still have the problem.

Any other ideas?

psico 03-21-2005 05:29 PM

Quote:

Originally Posted by honestjohn
It was related to another javascript applet running on the site - all fixed!

What Javascript? Because I?m having the same problem.

Tnx in advance.

Kei Kurono 03-23-2005 08:33 PM

One thing i felt that can be improved is the inline deletion.

It does soft deletion.

But i want to physically delete a mass of thread, which i cannot do with the inline moderation tool.

maybe you should make so when you tick the forum threads, and select inline option delete, it then prompts, soft ot physical deletion.

just an opinion.

EscortCossie 03-25-2005 02:37 PM

I have the same problem with moving threads.

Does someone have a fix for this?

Edit:

I tired using Firefox insted of IE.. haven't got any problems yet (after moving approx 1000 threads :))

msimplay 03-28-2005 07:24 PM

I have one problem i merged two posts and one of them had attachments and those seemed to disappear when the posts were merged

Neutral Singh 03-29-2005 01:11 AM

Exellent Hack !! I remember the first time i installed this hack, it created a real mess on my forum but this time around it installed like a charm... thanks for this gr8 handy tool !!

Regards

sv1cec 03-29-2005 10:47 AM

I didn't went through the whole thread again, this hack works wonders, since it was installed, but I have a question/suggestion.

In our forums, the moderator are instructed never to delete a post/thread before creating a copy in a specific forum. In that way, if the user who posted the post/thread complains, we have the initial text for resolution.

In some cases, the mods want to copy a single post (or multiples, that's irrelevant) to the specified forum, but also edit the existing post in its original location. Would it be possible to have something similar to split, but which will copy the selected posts in a new thread in a selected forum, while still leaving the original one in its original position, for further action (like editing)? This would be extremely helpful, this hack covers all our moderator needs, but that.

Needless to say, I am at the authors disposal, if I need to elaborate.

UPDATE: I tried to do this myself, but I just do not have the coding expertise and the time to do it. It's pretty similar to splitting, the difference being that new posts have to be created, in addition to a new thread. And that's when I had to go pick up the twins from the nursery. With the twins at home, every coding effort is ... canceled.

Rgds

sv1cec 03-30-2005 01:03 PM

Quote:

Originally Posted by Kei Kurono
One thing i felt that can be improved is the inline deletion.

It does soft deletion.

But i want to physically delete a mass of thread, which i cannot do with the inline moderation tool.

maybe you should make so when you tick the forum threads, and select inline option delete, it then prompts, soft ot physical deletion.

just an opinion.

This is the part of code you should use to permanently delete threads. Go in your inlinemod.php and find:

PHP Code:

        // -------------------------------------------------------------------
        
        
default:
            
print_no_permission();
        break;
    }
}

// ###################################################################
// Handle output

if (defined('PRINT_TPL'))
{
    
$navbits construct_navbits(array('' => 'Inline Moderation Options'));
    eval(
'$navbar = "'fetch_template('navbar') . '";');
    eval(
'$HTML = "' fetch_template(PRINT_TPL) . '";');
    eval(
'print_output("' fetch_template('THREADADMIN') . '");');
}
?> 

Right above that, add:

PHP Code:

        // -------------------------------------------------------------------
        
        
case 'remove':
            if (!
can_moderate($vars['forumid'], 'caneditthreads'))
            {
                
print_no_permission();
            }
            if (!
is_array($vars['threads']))
            {
                eval(
print_standard_error('error_invalidid'));
            }
            if (empty(
$_POST['do']))
                {
                    
define('PRINT_TPL''inline_remove_thread');
                }
            else
                {
                    if (
$_POST['confirm'] == 'Yes')
                    {
                        foreach (
$vars['threads'] AS $threadid)
                        {
                            
delete_thread($threadid$vars['forum']['countposts'], 1, array('userid' => $bbuserinfo['userid'], 'username' => $bbuserinfo['username'], 'reason' => '''keepattachments' => 1));
                        }
                        
build_forum_counters($vars['forumid']);
                    }
                    if (
$vars['forumid'])
                    {
                        
$url "forumdisplay.php?$session[sessionurl]f=$vars[forumid]&mod=1";
                    }
                    eval(
print_standard_redirect('redirect_deletethread'));
                }
        
        break; 

You will also need a template, called inline_remove_thread, which should contain the followings:

HTML Code:

<form action="inlinemod.php" method="post" name="vbform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="doproces" />
<input type="hidden" name="type" value="thread" />
<input type="hidden" name="inlinemodact" value="remove" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">Physically Remove Threads</td>
</tr>
<tr>
        <td class="thead">Forum $vbphrase[title]: <span style="font-weight:normal">{$vars['forum']['title']}</span></td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
                       
                        <fieldset class="fieldset">
                                <legend>Confirmation</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>You have selected to physically remove some threads from this forum. <b>This cannot be undone.</b><P>Are you sure you want to proceed?</td>
                                </tr>
                                <tr>
                                        <td>
                                                Confirm removal:
                                                <select name="confirm"><option value='No' selected>No</option><option value='Yes'>Yes</option></select>
                                        </td>
                                </tr>
                                </table>
                        </fieldset>
               
                </div>
        </div>
       
        <div style="margin-top:$stylevar[cellpadding]px">
                <input type="submit" class="button" value="Proceed" accesskey="s" />
                <input type="button" class="button" value="$vbphrase[cancel]" accesskey="c" onclick="history.back(1)" />
        </div>
        </td>
</tr>
</table>

</form>

Then go to your FORUMDISPLAY template and find:

HTML Code:

<option value="undelete">Undelete Threads</option>
Below that, add:

HTML Code:

<if condition="$bbuserinfo['userid']==1">
<option value="remove">Physically Remove Threads</option>
</if>

As you understand, I like to reserve the rights for permanent deletion, only for myself. If you want your mods to be able to use it too, just remove the if and the /if things.

Rgds

Kei Kurono 03-31-2005 04:11 AM

Thx buddy *muaks

Kudos =^_^=;


All times are GMT. The time now is 03:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02420 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete