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 09-12-2004 03:57 AM

Quote:

Originally Posted by AloneEagle
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

Sure! What you do is you go into the Style Manager and in the style's drop-down menu to the left, select "Add New Template" and name to what the instructions say and make the template's contents be what the instructions specify.

Phalynx 09-15-2004 06:50 AM

Great, thanks!

Burns 10-02-2004 09:52 PM

Hi rob_daemon!

When i have read the name "Inline Moderation" i was very happy,
but i looks like this hack does not include what i really need :( :

- show unapproved posts along with others
( whereever they would apprear after approvement ),
and let moderators approve ( or delete ) them.

Also it would be nice to be able to "unapprove" a post
( if a moderator approved a post by mistake,
while he/she actually wanted to wait with approvement of this post
until other mod/admin reviewes it, or let others approve it )

I requested it in vb.com forum , and others requested it too
http://www.vbulletin.com/forum/showt...ghlight=inline
http://www.vbulletin.com/forum/showt...ghlight=inline

Could you add this feature to your Inline Moderation hack?

rob_daemon 10-03-2004 02:32 AM

I'm not sure how feasible it would to go from moderated to unmoderated posts, but the other way shouldn't be hard. The first one may present a challenge, but I can take a look and see.

Burns 10-03-2004 05:57 AM

Thank you ^_^
I tried to do it myself this evening,
but i know too little about vB code, and php in general,
i all could do so far was to let users with mod. privilegies see unapproved posts in threads,
while other users can not.
Then i tried to find out how to change the background color for unapproved posts
( or highlight them anyhow ), but failed : (
( though it's rather simply task... )

There are not many admins who need to approve new posts,
but i'm sure, everyone who does, will be grateful if you add this option...

About change from unmoderated to moderated - probably i wouldn't think of it myself,
but it was in IPB and i liked this feature

Also i would like to add, that to approve new posts inline,
the unapproved posts really need to be highlighted, as well as the threads, pages and forums with unapproved posts
( else it would be alomst impossible to find them )

And the last thing... guess it would not go well along with your inline moderation concept,
but it would be really nice to have for approvement "approve/delete" buttons at every post, it could save a lot of click-work,
if you need to approve or delete just single posts in many threads or even forums...
( 1 click instead of 4 clicks + scroll-down pro approvement )

rob_daemon 10-03-2004 07:41 AM

I have an idea of how to make it work (and yes the posts would be highlighted). My only concern is that it may require quite a few modifications to showthread.php; other than that I can see it working.

It will probably be a few weeks as school keeps me extremely busy.

pjdaley 10-03-2004 03:03 PM

how would i be able to edit more then 1 thread title at the same time using this wonderful hack? i need to add a prefix to all my threads in a certain forum. thanks in advanced

rob_daemon 10-03-2004 05:10 PM

That's beyond the scope of the hack. You could probably do it with a single MySQL query, though.

korg 10-07-2004 01:10 AM

Thanks for this beautiful work, I will install this hack in my board.

HuangA 10-09-2004 07:53 PM

Great hack, thanks for sharing this great work with us.

*HuangA clicks install


Edit: oops, didn't see you already mention inline merge therads is already in the works. GOOD JOB! :)

Lord Brar 10-10-2004 11:26 AM

I installed it. It worked fine when I was logged in as Admin... but as soon as I logged out, It gave a JS error on show thread and forum display pages :(

Any Idea why???????

BTW I am on IE 6 and WinXP

rob_daemon 10-10-2004 09:56 PM

Can you post the JavaScript error? I don't run into any problems.

Lord Brar 10-11-2004 11:18 AM

Quote:

Originally Posted by rob_daemon
Can you post the JavaScript error? I don't run into any problems.

I unistalled this hack... But I got that yellow ! sign of JS error in IE. BTW I will reinstall it and see if I get that error again and if I do, I will ask you what to tell you :D

lanc3lot 10-11-2004 01:03 PM

Hello rob_daemon,

First of all, congrats for this great hack!

Can u please tell me, how can i move a single post to another forum and thread(cant understand how can i do that with Vb either..:( )

Thanks, keep up the good work

Ps

In case i want to uninstall later(i dont want, i just check), i must undo whatever i did...right?

:)

rob_daemon 10-11-2004 05:57 PM

Quote:

Originally Posted by lanc3lot
Hello rob_daemon,

First of all, congrats for this great hack!

Can u please tell me, how can i move a single post to another forum and thread(cant understand how can i do that with Vb either..:( )

Thanks, keep up the good work

Ps

In case i want to uninstall later(i dont want, i just check), i must undo whatever i did...right?

:)

To move a single post to another forum in vB, you first have to split it from the thread. This will create a new thread with only the post(s) you wanted and then you can move it around.

As for uninstalling, you just undo whatever you did to install it.

korg 10-11-2004 10:43 PM

how do I make this work in postbit vertical? I can't see the tick to split posts.

XanaduRanch 10-11-2004 11:39 PM

Thanks! This works great! But I am getting an error, "Can't Find Phrase 'splitthread'". I didn't see any instructions for adding a phrase. but it's late here. Did I miss something? Seems to work anyway ...

XR

integra99 10-11-2004 11:51 PM

I'd like to see all the normal thread and post management tools in your hack, such as merging threads, physically deleting threads and posts, soft deleting threads/posts, etc. It would also be nice to have your inline tools work with this hack so you could mass download threads, and this hack for bumping a few threads at a time.

rob_daemon 10-12-2004 02:01 AM

Quote:

how do I make this work in postbit vertical? I can't see the tick to split posts.
Did you add the template modification in the instructions to the postbit template?

Quote:

Thanks! This works great! But I am getting an error, "Can't Find Phrase 'splitthread'". I didn't see any instructions for adding a phrase. but it's late here. Did I miss something? Seems to work anyway ...

XR
Odd, I'm not sure why that would be occurring. I don't even get the thread split redirect message.

Quote:

I'd like to see all the normal thread and post management tools in your hack, such as merging threads, physically deleting threads and posts, soft deleting threads/posts, etc. It would also be nice to have your inline tools work with this hack so you could mass download threads, and this hack for bumping a few threads at a time.
As stated previously in this thread: merging is on the to-do, and physically deleting is something I considered but decided against (it may wander its way into the hack in the future, though), and soft deletes already exist.

I don't have any intentions, however, to make this hack specifically compatible with other hacks. It's not hard to add custom actions if you know PHP, however.

integra99 10-12-2004 04:42 AM

Sounds like a plan. I'll look into what it would take to integrate those other hacks on my own, and post them up when I get some time. I would like to see the physical delete though :D

korg 10-12-2004 10:39 PM

Quote:

postbit or postbit_legacy

Find:
Code:

$post[iplogged]
Add after:
Code:

                        <if condition="can_moderate()"><input type="checkbox" id="inlinemod_$post[postid]" name="inlinemod_$post[postid]" value="1" onclick="select_item($post[postid], this);" /></if>

I did this only in postbit, as you said either one.....or you meant both?

This is my modification:
Quote:

<else />&nbsp;</if>
<div style="padding:0px 0px 1px 0px;"></div>
<div align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> </if>$post[iplogged]<if condition="can_moderate()"><input type="checkbox" id="inlinemod_$post[postid]" name="inlinemod_$post[postid]" value="1" onclick="select_item($post[postid], this);" /></if></div>
</td>

rob_daemon 10-12-2004 11:17 PM

If you want the checkbox to appear on the left-style postbit, edit postbit_legacy. If you want it to appear on the top-style postbit, edit postbit.

psico 10-16-2004 03:56 AM

Quote:

Originally Posted by rob_daemon
If you want the checkbox to appear on the left-style postbit, edit postbit_legacy. If you want it to appear on the top-style postbit, edit postbit.

The split option is not working... I?ve checked 2 or more post in a thread and then select Split Posts from the pop-down menu and the I received this error:
"You must specify some posts to split off from this thread."

theArchitect 10-16-2004 05:39 AM

*theArchitect clicks install. And is very impressed with one of the best and most useful hacks he has seen.*

What is the progress of the fix for check boxes being displayed even when a moderator does not have permission to moderate that forum?

rob_daemon 10-16-2004 07:46 AM

Quote:

The split option is not working... I?ve checked 2 or more post in a thread and then select Split Posts from the pop-down menu and the I received this error:
"You must specify some posts to split off from this thread."
I'm not sure what is happening. I haven't had any problems. Are you sure that you uploaded the JavaScript file into the clientscript folder and that you made the JavaScript file included on the proper pages?

Quote:

*theArchitect clicks install. And is very impressed with one of the best and most useful hacks he has seen.*
:) Glad you like it.

Quote:

What is the progress of the fix for check boxes being displayed even when a moderator does not have permission to moderate that forum?
I'll look into doing this but I'm not sure when I'll have time to work on this hack; school keeps me pretty busy.

theArchitect 10-19-2004 12:34 AM

I have just had a bug reported from one of my users. When he click on any page that utilises the inline_moderation.js file he gets the attached error.

Though the strange thing is that I am not getting this error, nor are 99% of my users.

If you could help me with this it would be most appreciated as I do not wish to ditch the inline tool but do want to spare my members the hassle of having to cancel an error message box every time they view a thread.

rob_daemon 10-19-2004 04:50 AM

For now, do the following:

Open up all the templates in which you added
HTML Code:

<script type="text/javascript" src="clientscript/inline_moderation.js"></script>
And wrap that line in this condition:

HTML Code:

<if condition="can_moderate()"></if>
Leaving you with

HTML Code:

<if condition="can_moderate()"><script type="text/javascript" src="clientscript/inline_moderation.js"></script></if>
And that should hide all the errors from him. I'm not sure why it's choking on line 99, however.

By the way, I'll add this in the next update (when it's ready).

theArchitect 10-19-2004 06:14 AM

Quote:

Originally Posted by rob_daemon
For now, do the following:

Open up all the templates in which you added
HTML Code:

<script type="text/javascript" src="clientscript/inline_moderation.js"></script>
And wrap that line in this condition:

HTML Code:

<if condition="can_moderate()"></if>
Leaving you with

HTML Code:

<if condition="can_moderate()"><script type="text/javascript" src="clientscript/inline_moderation.js"></script></if>
And that should hide all the errors from him. I'm not sure why it's choking on line 99, however.

By the way, I'll add this in the next update (when it's ready).

Many thanks for your speedy response.

I have made the changes and am just waiting to hear back from the user with the problem.

DJ WaBBiT 10-24-2004 09:30 AM

Installed and my moderators are verry gratefull 2 you :D

nice work thanx allot.

Revan 10-26-2004 05:35 AM

I am having some errors.
1. In my UserCP, udner Subscribed Threads, I see the checkboxes but no Inline Mod Tools buttons for thread managing. Checking these boxes displays the following error (loosely translated from Norwegian): "A runtime error has occurred. Do you wish to debug?
Line: 523
Error: Expected an object"

2. Whenever I (Admin, so not related to problem above with the can_moderate() fix) view forumdisplay?f=$forumid, I get this error: "A runtime error has occurred. Do you wish to debug?
Line: 93
Error: 'null' is null or not an object"


Otherwise, this hack has recieved great responses from my coadmin (and me;))
cheers :)

rob_daemon 10-26-2004 03:25 PM

I'll check these both out when I get home tonight, but I'm not sure what is causing them.

Andy R 11-03-2004 05:55 PM

Thanks for such a useful tool!

Is there anyway to have a "select all" feaure? I sue this tool to search for off-topic keywords and then from the serach results want to delete pages of posts. Clicking each is taking forever. Since that is a Javascript function, I was thinking it might be an easy addition???

rob_daemon 11-04-2004 03:17 AM

Quote:

Originally Posted by organic-hosting
Thanks for such a useful tool!

Is there anyway to have a "select all" feaure? I sue this tool to search for off-topic keywords and then from the serach results want to delete pages of posts. Clicking each is taking forever. Since that is a Javascript function, I was thinking it might be an easy addition???

I looked into a "select all" feature and it's a little more complicated than one would think. I'll check out some solutions for this, though.

Revan 11-05-2004 10:46 AM

Um...doesnt using the internal jscript function "js_select_all(this)" (or something like that, its used in the backup.php in acp if you want to know the exact code) work?
I know it will if the IMT uses a form to submit the selected boxes... I didnt look for this in the code, Im just throwing off hopefully helpful suggestions :)

rob_daemon 11-05-2004 01:43 PM

Hmm... I'll play around with the code but I'm not sure how that function works so I can't vie a definite answer. Thanks for the suggestion :)

seraphex 11-06-2004 05:00 AM

Here's what I did to remedy the script errors mentioned above. I don't know if this is the correct way to do it and I'm not a coder.

After the hack is installed..

FORUMDISPLAY TEMPLATE

Find:
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>">

Replace with:
Code:

<if condition="can_moderate()">
<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>">
</if>
<else /><body><else />

SHOWTHREAD TEMPLATE**

Find:
Code:

<script type="text/javascript" src="clientscript/inline_moderation.js"></script>
</head>
<body onload="inline_init($thread[threadid], 'post');$onload">

Replace with:
Code:

<if condition="can_moderate()"><script type="text/javascript" src="clientscript/inline_moderation.js"></script>
</head>
<body onload="inline_init($thread[threadid], 'post');$onload">
</if>

<else />
</head>
<body>
<else />

search_results TEMPLATE

Find:
Code:

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

Replace with:
Code:

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

Users see an extra row between views and forum without this edit

In the same file..

Find:
Code:

<td class="thead" nowrap="nowrap">&nbsp;</td>
Replace with:
Code:

<if condition="can_moderate()">
<td class="thead" nowrap="nowrap">&nbsp;</td>
</if>

or if you want some text above the checkboxes describing what they are for use:

Code:

<if condition="can_moderate()">
<td class="thead" nowrap="nowrap">&nbsp;Moderate?&nbsp;</td>
</if>



** Edit: Fixed a typo.. thanks for pointing it out O-H..

Andy R 11-07-2004 02:52 AM

I noticed that the Private Message Interface has a select all feature. It looks like the javascript for it is in the pm_messagelist template.

Amavisca 11-11-2004 11:44 PM

I have a small problem. I install everything fine, my Mod said everything is working however the del funtion when they try to use it, it said they dont have permision. How can i fix it?

theArchitect 11-11-2004 11:47 PM

Quote:

Originally Posted by Amavisca
I have a small problem. I install everything fine, my Mod said everything is working however the del funtion when they try to use it, it said they dont have permision. How can i fix it?

You may need to check your permissions for moderators. So long as they have the power to delete posts it should work fine.

Zoints 11-15-2004 03:49 AM

It looks like your tamplates aren't cached? I know inline_merge isn't.

Another question, is it possible to limit the ability to use these tools by usergroup? I only want my admin, supermods, and mods to be able to use and see it. Right now I have some users who are moderators of private forums but aren't REAL moderators. They can see and use this right now which I don't want.

Thanks! And great hack!


All times are GMT. The time now is 08:16 AM.

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.01489 seconds
  • Memory Usage 1,857KB
  • 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
  • (11)bbcode_code_printable
  • (6)bbcode_html_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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