vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   3 Admin Tools: Remove Redirect, Edit Posts, & Moderate User (https://vborg.vbsupport.ru/showthread.php?t=14075)

bira 04-13-2001 10:00 PM

Three additional tools for administrators/moderators - one written by wluke (I hope he does not mind me bundling it with the other two I wrote).

Download the zip file attached. Each hack has its own txt file with exact instructions on how to install it.

Hacks description:
  1. Redirect Removal: Allows you to delete the "Moved" redirect to a thread.
  2. Multi Posts Editing: Allows you to conveniently edit several posts in one thread at once, in one page and with one submit button (good for occassions where a thread gets out of hand and people are overboard).
  3. Place User's Posting under Moderation: Allows you to place a user under moderation, whereby his posts and threads will be queued until an admin/moderator validates them. (written by Wluke).

Cheers,

Bira

UPDATE MAY 3rd:

* Added to the zip-file a fourth tool for mass-prune redirects ("moved:" links) older than x days (with ability to select which to delete and which to leave).

* fixed a bug in the user-under-moderation hack, which allowed threads with a poll to go unmoderated.


http://www.atlasf1.com/bb/images/lastpost.gif Download here

bira 04-14-2001 01:57 PM

Some screenshots, for what they're worth:

The link to delete a "Moved" redirect to a thread would look like this:


http://www.atlasf1.com/personal/bira/sample3.gif


The link to edit multiple posts in one thread would look like this:

http://www.atlasf1.com/personal/bira/sample1.gif

And here's a bit of what the multi-edit form page looks like:

http://www.atlasf1.com/personal/bira/sample2.gif

tubedogg 04-14-2001 02:38 PM

Kick-A@@! You rock, bira!

BTW, I hope you don't mind, I borrowed your speech for my sig. :D (But I credited you, so...)

bira 04-14-2001 02:43 PM

Thanks tubedogg :)

bokhalifa 04-14-2001 02:47 PM

good hack:p

eva2000 04-28-2001 06:51 AM

can the remove redirect link be made available in the /mod control panel as well ?

CJ 04-28-2001 07:04 AM

Does the last feature (the place users post under moderation) still have the bug that the user who is actually moderated can view the private forums? (ie forums only for moderators and/or administrators)

Looks like a nice hack :)

bira 04-28-2001 07:10 AM

CJ - it never had that bug. The hack has 0 effect or relevance to permissions.

Eva2000 -- to add it to the mod's control panel you would need to make another hack, which I can look into but I have a feeling I can save that time with an easier solution:

Am I right in assuming that you want it, because you don't allow your mods to delete threads, which means they have no permission going to the "Delete" page? If I am right, tell me this: are they allowed to go to the "Edit" page?

The reason I ask is this: "Edit" and "Delete" - those are just different actions from the same script. It makes the hack allthemore easy to implement on any web page that is essentially outputted from this script. The Mod's control panel is a whole different set of scripts though.

eva2000 04-28-2001 07:52 AM

well my problem is one forum i have get's alot of threads posted in that always get moved out by moderators (who can not delete posts)

this leaves the forum full of redirect links of which my mods want to be able to delete after a certain time i.e. 1, 3, 5 or 7 days

bira 04-28-2001 08:15 AM

ok Eva, I understand what you mean now. I'll write a separate hack for that

CJ 04-28-2001 09:18 AM

Bira, it might not be a bug in teh hack than, but to put users on moderated you need a seperate usergroup, right? Well you need to be careful there. Be sure you disable private forums for that usergroup.

bira 04-28-2001 09:21 AM

CJ - you can't possibly say that if an admin doesn't grant appropriate usergroup permissions per forum, that's a bug?!? :confused:

Private Forums permissions have NOTHING to do with placing a user under moderation of his posts.

I have a user who HAS access to a private forum but his posts are under moderation because he has a tendency to use foul launguage.

Forum permissions are about access and other rights you give or take from users and usergroups.

ALL this hack does is put a user's new post or new thread in the moderation queue, rather than automatically make it public.

bira 04-28-2001 09:32 AM

Fourth Admin Tool added at Eva2000's request :D

Prune Redirects in Moderators CP

CJ 04-28-2001 09:38 AM

Yeah sorry, I wasn't sure at first how this hack worked and if it would be part of the hack.

Sorry, and good hacks anyway

Quote:

Originally posted by bira
CJ - you can't possibly say that if an admin doesn't grant appropriate usergroup permissions per forum, that's a bug?!? :confused:

Private Forums permissions have NOTHING to do with placing a user under moderation of his posts.

I have a user who HAS access to a private forum but his posts are under moderation because he has a tendency to use foul launguage.

Forum permissions are about access and other rights you give or take from users and usergroups.

ALL this hack does is put a user's new post or new thread in the moderation queue, rather than automatically make it public.


RobAC 04-28-2001 10:50 AM

Bira,

Awesome job! I'm looking forward to insalling this one. I'm holding off with installing anymore hacks until the final production version of 2.0 is out. This hack along with a couple of tubedogg's hacks are on the top of my list! :D

bira 04-28-2001 11:01 AM

thanks :) :) :)

julius 05-02-2001 09:37 AM

Place User's Posting under Moderation (I like it! :) )

A little bug:
If there is a poll in the post, the hack doesn't work.

bira 05-03-2001 09:07 AM

Hi Julius,

Thanks for picking up on that.

For those interested, here's the fix:

Code:

Open poll.php

find:

    if (ismoderator($foruminfo[forumid])) {
        $visible=1;
    }

AFTER it put:

    if ($bbuserinfo[usergroupid]==XX) {
              $visible=0;
    }

(Where XX equals the usergroup id of your new group.)

I also updated the download file in the first post. Cheers!

eva2000 05-22-2001 12:56 AM

hey bira are these vB 2.0.0 final compliant? :)

RobAC 05-22-2001 01:13 PM

Good question eva2000. I'd like to install this hack but only if it's 2.0 Gold compliant. "Is bira in the house???" :D

Dontom 05-22-2001 01:33 PM

Edit Posts works perfectly for me on 2.0.0
:D

eva2000 05-22-2001 07:02 PM

Quote:

Originally posted by Dontom
Edit Posts works perfectly for me on 2.0.0
:D

thanks :D

bira 05-22-2001 10:13 PM

Eva I tested all my hacks, and it seems nothing changed as far as my hacks go from rc3, so yes, it will work fine :D

eva2000 05-23-2001 10:50 PM

btw, what's the 2 txt files for admin-thread-php-addition and thread-php-addition ?

bira 05-23-2001 10:56 PM

Eva it's from the mass-prune-redirects hack:

Quote:

4. Open mod/thread.php.

Find:

if ($parentid and !$forumid) {
$forumid = $parentid;
}

Below it PASTE THE ENTIRE CONTENT of thread-php-addition.txt

.
.
.
.

6. Open admin/thread.php.

Find:

adminlog(iif($forumid!=0,"forum id = $forumid",""));

cpheader();

Below it PASTE THE ENTIRE CONTENT of admin-thread-php-addition.txt
That's cos there are two "control panels" -- one in admin and one in mod :)

eva2000 05-23-2001 11:08 PM

thanks did get that far in reading the instructions fully yet :D

eva2000 05-24-2001 01:16 AM

confusion :)

in the instructions for moderate user posts it says

Quote:

4) Open poll.php

find:

if (ismoderator($foruminfo[forumid])) {
$visible=1;
}

AFTER it put:

if ($bbuserinfo[usergroupid]==XX) {
$visible=0;
}
problem is there are 2 instances of the find code in poll.php
Quote:


if (ismoderator($foruminfo[forumid])) {
$visible=1;
}
so do i add it to both or the first or 2nd instance ?

bira 05-24-2001 10:09 AM

Eva you can add it after the 2nd instace as well.

eva2000 05-24-2001 02:20 PM

thanks bira :D

jucs 05-26-2001 10:16 AM

This can be a very good feature so banning is not necessary in all cases. I think it needs to be included in a future version as a feature.

eva2000 05-26-2001 10:24 AM

Quote:

Originally posted by jucs
This can be a very good feature so banning is not necessary in all cases. I think it needs to be included in a future version as a feature.
probably will be :)

ThomasP 06-06-2001 03:54 PM

fantastic bira!
Especially the redirect removal was what I needed badly :)
-Tom

mr.scotty 06-16-2001 07:57 PM

thanks a lot

that's what I was looking for !
great hack !

mr.scotty

babak 06-19-2001 03:28 PM

i just installed the
install-mderate-user-posts.txt
hack alone and put a user into
the moderated group. but when
this user logs in and press the "new thread"
button, he gets the message-page:

"You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
1
2
3
..."

what is the reason?

Christine 09-09-2001 11:10 PM

Thanks, Bira - working like a champ!!!

:D

Cloughie 10-06-2001 09:30 AM

does this work with 2.0.3?

I REALLY need the moderate users hack :)

jucs 11-10-2001 01:22 AM

Does this work with 2.2?

Tommy Boy 11-23-2001 01:23 AM

Or 2.2.1?

julius 11-24-2001 03:32 PM

To prevent a user register himself only to spam throw emails and messages to other users, it would be useful to put one more option in the usergroup:

Email Permissions:

Can Use Send Email to Other Members? yes ---- no


When you're shure that the new member has written on the forum, you can switch him to the group with all permissions enabled.

Psychdrone 11-24-2001 03:54 PM

THis is sweet!

dose it work for 2.2.1??


All times are GMT. The time now is 04:44 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.01395 seconds
  • Memory Usage 1,809KB
  • 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
  • (1)bbcode_code_printable
  • (6)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