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 08-27-2004 10:00 PM

Inline Moderation Tools (v1.2.1)
 
Note: Development of this hack has stopped.
The built-in version is far superior to this hack and has better controls and permission checking. For those of you who will remain on 3.0.x, I will try to support this hack as best I can, but it won't be a top priority. If you plan on moving to 3.5, I hope this hack made your life a little bit easier while you waited :).


Current Version: 1.2.1 (Wed Dec 11 15:26:30 PDT 2004)

What this is?
This hack will allow you and your moderators to do your job more effectively by allowing you to mass-moderate. You can perform the same action on multiple threads and posts without leaving the current page!

What is required?
In order to use this hack, you must have cookies and JavaScript enabled! If you don't, this hack will not work. (Note: there is no "alternative display" for people without JavaScript enabled).

How many changes?
Uploads: 2
File edits: 2
And template additions/edits

Support
I will provide all support here in this thread.

Bugs
I have thoroughly tested this hack with as many different combinations I could think of. But I probably have either over looked one or two, or just didn't think of some. If you find any odd behaviour, please let me know!

Changes Since
  • 1.2.0
    • Fixed problems with merging threads
    • Enhancement to the merge thread screen
  • 1.1.0
    • (Hopefully) resolved all JavaScript issues
    • Merge threads
    • Removed search results moderation ability (it was too much work to maintain and a user could bypass the protection if he knew how the hack operated)
    • Bug with not updating all user fields in post merge
    • Bug with checking for the wrong permissions when deleting a post
    • Template caching
    • Selection boxes only appear when a user is a moderator
  • 1.0.0
    • Fixed search results
    • Added small announcement patch

Fixes For 1.2.1
The following fixes are in in the next version:
On The To-Do List
  • Usergroup permission for inline moderation

If you'd like a moderator action added to this hack, post it below and I'll look into it.

What are the screen shots of?
Don't forget to click install!!!

N. Wright 08-28-2004 12:21 AM

I haven't tested it out fully, but this hack seems to work good except for a few minor bugs: During the install one of the template modifications says to modify FORUMHOME, but thats actually supposed to be FORUMDISPLAY. Also, the colspan of announcements is not increased when it should be.

Good work tho, I'm going to continue using it.

alkatraz 08-28-2004 12:38 AM

Sweet!!

rob_daemon 08-28-2004 01:09 AM

Quote:

Originally Posted by N. Wright
I haven't tested it out fully, but this hack seems to work good except for a few minor bugs: During the install one of the template modifications says to modify FORUMHOME, but thats actually supposed to be FORUMDISPLAY. Also, the colspan of announcements is not increased when it should be.

Good work tho, I'm going to continue using it.

Thanks for pointing that out to me. The instructions have now been changed :)

Quote:

Sweet!!
Glad you like ;)

N. Wright 08-28-2004 02:49 AM

forumdisplay_announcement changes:
Find:
PHP Code:

<td class="alt2" colspan="<if condition="$show['threadicons']">5<else />4</if>"


Replace:
PHP Code:

<td class="alt2" colspan="<if condition="$show['threadicons'] AND !can_moderate()">5<else /><if condition="!$show['threadicons'] AND can_moderate()">5<else /><if condition="$show['threadicons'] AND can_moderate()">6<else />4</if></if></if>"


Red Blaze 08-28-2004 04:13 AM

Works on 3.0.0. Would make things easier. ^_^ Thank you.

/me clicks install

EDIT: You could add this to the search thread thing since the checkbox appears there too. *shrugs* just a suggestion.

pjdaley 08-28-2004 05:16 AM

INSTALLING PRONTO

you have asnwered my prayers: https://vborg.vbsupport.ru/showthread.php?t=68461

thank you thank you

rob_daemon 08-28-2004 05:26 AM

Quote:

Originally Posted by N. Wright
forumdisplay_announcement changes:
Find:
PHP Code:

<td class="alt2" colspan="<if condition="$show['threadicons']">5<else />4</if>"


Replace:
PHP Code:

<td class="alt2" colspan="<if condition="$show['threadicons'] AND !can_moderate()">5<else /><if condition="!$show['threadicons'] AND can_moderate()">5<else /><if condition="$show['threadicons'] AND can_moderate()">6<else />4</if></if></if>"


Thanks for the fix :)

I've added it into the next version and have added you to the "special thanks" list that is also in the next version.

Quote:

Originally Posted by pjdaley
INSTALLING PRONTO

you have asnwered my prayers: https://vborg.vbsupport.ru/showthread.php?t=68461

thank you thank you

Glad I could help :)

Quote:

Originally Posted by Sonikku
Works on 3.0.0. Would make things easier. ^_^ Thank you.

* Sonikku clicks install

Thanks :)

Quote:

EDIT: You could add this to the search thread thing since the checkbox appears there too. *shrugs* just a suggestion.
I can look at adding this into the search results page.

SnowBot 08-28-2004 06:14 AM

I have clicked Install but may hang fire as you are making a new version to actulary install it :) I love the idea of this.

HiDeo 08-28-2004 07:37 AM

Thanks, I'll install today ;)

[high]* HiDeo clicks install[/high]

Mephisteus 08-28-2004 10:23 AM

Very nice :)

[high]* Mephisteus clicks install[/high]

SaN-DeeP 08-28-2004 11:10 AM

rob_daemon.
this is surely a very handy tool. I appreciate your time for same..

Will install it once tested.

Big thnx

mharmon 08-28-2004 06:58 PM

Nice -- but shouldn't there be an option in the actual thread to select multiplie posts and delete them permanently? Not just soft delete?

Reeve of shinra 08-28-2004 07:42 PM

Doesnt most of this appear under thread tools? (feels like I missed something)

rob_daemon 08-28-2004 07:57 PM

Quote:

Originally Posted by mharmon
Nice -- but shouldn't there be an option in the actual thread to select multiplie posts and delete them permanently? Not just soft delete?

I considered hard delete but that could be a problem if you accidentally selected the wrong option.

Quote:

Doesnt most of this appear under thread tools? (feels like I missed something)
Yes they do. The point is to be able to do it onto multiple posts/threads at the same time.

Mephisteus 08-28-2004 08:24 PM

What I am wondering is that although this is considered one of the few real missing features in vBulletin, it only has 12 installs...

accyroy 08-28-2004 08:38 PM

at last - this finally brings vbulletin upto the same standards as my old YaBB board! :)
Been waiting for ages for this!

rob_daemon 08-28-2004 08:40 PM

Quote:

Originally Posted by DarkSSJ3
What I am wondering is that although this is considered one of the few real missing features in vBulletin, it only has 12 installs...

I did only release it yesterday. But as long as at least one person installs it, I'm happy :).

Quote:

at last - this finally brings vbulletin upto the same standards as my old YaBB board!
Been waiting for ages for this!
:)

Floris 08-28-2004 09:11 PM

Quote:

Originally Posted by rob_daemon
Current Version: 1.0.0 (Fri Aug 27 16:58:26 PDT 2004)

What this is?
This hack will allow you and your moderators to do your job more effectively by allowing you to mass-moderate. You can perform the same action on multiple threads and posts without leaving the current page!

What is required?
In order to use this hack, you must have cookies and JavaScript enabled! If you don't, this hack will not work. (Note: there is no "alternative display" for people without JavaScript enabled).

How many changes?
Uploads: 2
File edits: 1
Template edits: 9
New templates: 3
Queries: 0

Support
I will provide all support here in this thread.

Bugs
I have thoroughly tested this hack with as many different combinations I could think of. But I probably have either over looked one or two, or just didn't think of some. If you find any odd behaviour, please let me know!

Fixes For 1.0.0
The following fixes are in in the next version:
On The To-Do List
  • Merge threads

If you'd like a moderator action added to this hack, post it below and I'll look into it.

What are the screen shots of?
Don't forget to click install!!!

Why didn't you use the forum / thread tool drop down box instead of adding more data on the screen?

great step forward :)

rob_daemon 08-28-2004 09:29 PM

Quote:

Originally Posted by floris
Why didn't you use the forum / thread tool drop down box instead of adding more data on the screen?

great step forward :)

Because on my forum, I stripped out all of the DHTML menus and I prefer to not use them :). It wouldn't be hard to move it into the DHTML menu, though.

Skyline_GT 08-28-2004 09:58 PM

nice hack
* Skyline_GT clicks installed

YLP1 08-28-2004 10:26 PM

Hi all, I installed this mod.... and went back through to make sure I didn't miss a step but I don't have the inline mod tools showing on my forums:
http://www.yourlincolnpark.com/LPSForum/lpsforum.php

Any ideas where I screwed up? And yes... I created the new templates.

YLP1 08-28-2004 10:31 PM

OOps....I see it now but it only appears on my defualt skin and not the child skins.....any ideas why?

Diana Notacat 08-28-2004 10:38 PM

If you could add a mass close/open to that it would be beyond fantastic. XD

rob_daemon 08-29-2004 02:32 AM

Quote:

Originally Posted by YLP1
OOps....I see it now but it only appears on my defualt skin and not the child skins.....any ideas why?

If you have customized the templates that require changing, then that would cause this to happen.

Quote:

If you could add a mass close/open to that it would be beyond fantastic. XD
This already exists in the toolset. :) View a forum and the check out the tool list and you'll see "Open Theads" and "Close Threads" (here for a picture).

wrongful 08-29-2004 11:52 AM

Quote:

Originally Posted by accyroy
at last - this finally brings vbulletin upto the same standards as my old YaBB board! :)
Been waiting for ages for this!

Haha, yeah this was the only thing that I missed from my old YaBB board.

Great hack, installed!

dndog 08-29-2004 02:20 PM

Thanks so much. Heck, even phpBB has this feature that vBulletin lacks!

/me clicks install.

Abe1 08-30-2004 12:24 AM

<font color="#2da72e">* Abe1 clicks installed</font>

Great hack!

2 bugs:

1) When you click the usercp, you see the 'New Subscribed Threads'. They all have check boxes next to them that do nothing.

2) When a thread is deleted, and you click 'view', you see check boxes by every post that do nothing.

integra99 08-30-2004 12:51 AM

Another bug, if you do a search for new post, it shows the checkboxes, and gives a javascript error if you check them

rob_daemon 08-30-2004 01:33 AM

I'll look into putting conditionals around the check boxes for the next version.

AxelF 09-02-2004 06:11 AM

Great hack... :)

Any update on those conditionals to fix the check boxes showing in subscribed threads and search results? Thanks.

teksigns 09-02-2004 05:53 PM

awaiting update to install ! cool script man !

keep up the good work !

rob_daemon 09-03-2004 02:01 AM

Quote:

Originally Posted by AxelF
Great hack... :)

Any update on those conditionals to fix the check boxes showing in subscribed threads and search results? Thanks.

It may be this weekend or not. School just started, but I have labour day off. It should be there within the next two weeks, though.

teksigns 09-04-2004 01:56 PM

I noticed that there is a merge feature for merging post....

how about a feature to merge threads as well ?

any idea how to make that happen ?

rob_daemon 09-04-2004 05:48 PM

Quote:

Originally Posted by teksigns
I noticed that there is a merge feature for merging post....


how about a feature to merge threads as well ?

any idea how to make that happen ?

Look at the "On The To-Do List" part of the first post.

integra99 09-07-2004 12:43 AM

Ok, here's a quick fix for the search bug..

In search.php, add in after the declarations
Code:

if ($_REQUEST['mod'] == 1)
{
        $onload .= " inline_reset(); ";
}

In template search_results find
Code:

<body>
and replace with
Code:

<script type="text/javascript" src="clientscript/inline_moderation.js"></script>
 
<body onload="inline_init($foruminfo[forumid], 'thread'); <if condition="$_REQUEST['mod'] == 1">inline_reset();</if>">

Then find
Code:

$vbphrase[showing_results_x_to_y_of_z]</phrase></span>
        </td>
</tr>
</table>

And add after
Code:

<if condition="can_moderate()"><br>
<div align="right"><table>
<tr valign="top">
        <td colspan="2" align="right">
                <form action="inlinemod.php" method="post" name="inlinemod">
                <input type="hidden" name="type" value="thread" />
                <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="right">
                <tr class="alt1">
                        <td align="right" class="smallfont">
                                <strong>Inline Moderation Tools:</strong>
                                <select name="inlinemodact">
                                        <option value="close" selected="selected">Close Threads</option>
                                        <option value="open">Open Threads</option>
                                        <option value="stick">Stick Threads</option>
                                        <option value="unstick">Unstick Threads</option>
                                        <option value="move">Move Threads</option>
                                        <option value="delete">Delete Threads</option>
                                        <option value="undelete">Undelete Threads</option>
                                </select>
                                <input id="inline_go" type="submit" name="submit" value="Go" />
                                <input type="button" name="reset" value="Clear" onclick="inline_reset();" />
                        </td>
                </tr>
                </table>
                </form>
        </td>
</tr>
</table></div>
</if>

Then find
Code:

        <td class="thead" align="center" nowrap="nowrap">$vbphrase[views]</td>
and add after
Code:

                <if condition="can_moderate()">
                        <td class="thead" align="center"><if condition="$show['threadmoved']">-<else /><input type="checkbox" id="inlinemod_$thread[threadid]" name="inlinemod_$thread[threadid]" value="1" onclick="select_item($thread[threadid], this);" /></if>
                </if>

I believe that does it! The only bug I can find so far is because you are using the tools from a search window and not a forum, when the script tries to redirect you back to the forum you were viewing, it gives an error, but the moderation tools still work fine. Click on your logo to take you back to your forums index, go on about your day :)

integra99 09-07-2004 12:44 AM

Also, if you check the box at the top of the search window (in thead), it will not show it as selecting all the boxes, but if you use the inline mod tools, it will mod everything you see :)

rob_daemon 09-07-2004 05:29 AM

I thank you integra99 for you posting the template fixes, but I wouldn't do those straight up. Because the forumid isn't passed, there's no way to tell (unless you want to be query-happy) if user x is a moderator of forum y via the search results.

In version 1.1.0, I have added the ability to use inline moderation tools via search results only if you have removed the security stop(s). For more detailed information about these security stops, please read READ_THIS_NOTICE in the new downloadable archive.

And 1.1.0 is now released :)

integra99 09-07-2004 02:50 PM

Quote:

Originally Posted by rob_daemon
I thank you integra99 for you posting the template fixes, but I wouldn't do those straight up. Because the forumid isn't passed, there's no way to tell (unless you want to be query-happy) if user x is a moderator of forum y via the search results.

In version 1.1.0, I have added the ability to use inline moderation tools via search results only if you have removed the security stop(s). For more detailed information about these security stops, please read READ_THIS_NOTICE in the new downloadable archive.

And 1.1.0 is now released :)

If I had known you were going to release it that quick, I wouldn't have done that :D

Sure works a lot better than my quick fix, thanks!

AloneEagle 09-12-2004 02:05 AM

Hi there,
I don't really understand the step where you said "Add inline_merge:" and "Add inline_move:" Can you please tell me how and what to do on this step ?
Thanks


All times are GMT. The time now is 12:12 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.01845 seconds
  • Memory Usage 1,866KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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