View Full Version : [Release vb2.0] 3 Admin Tools: Remove Redirect, Edit Posts, & Moderate User
bira
Sat 14th Apr '01, 10:41am
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:
Redirect Removal: Allows you to delete the "Moved" redirect to a thread.
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).
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 (http://www.atlasf1.com/personal/bira/admin-tools.zip)
bira
Sat 14th Apr '01, 10:57am
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
Sat 14th Apr '01, 11:38am
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
Sat 14th Apr '01, 11:43am
Thanks tubedogg :)
bokhalifa
Sat 14th Apr '01, 11:47am
good hack:p
eva2000
Sat 28th Apr '01, 3:51am
can the remove redirect link be made available in the /mod control panel as well ?
CJ
Sat 28th Apr '01, 4:04am
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
Sat 28th Apr '01, 4:10am
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
Sat 28th Apr '01, 4:52am
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
Sat 28th Apr '01, 5:15am
ok Eva, I understand what you mean now. I'll write a separate hack for that
CJ
Sat 28th Apr '01, 6:18am
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
Sat 28th Apr '01, 6:21am
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
Sat 28th Apr '01, 6:32am
Fourth Admin Tool added at Eva2000's request :D
Prune Redirects in Moderators CP (http://www.vbulletin.com/forum/showthread.php?s=&threadid=15409)
CJ
Sat 28th Apr '01, 6:38am
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
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
Sat 28th Apr '01, 7:50am
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
Sat 28th Apr '01, 8:01am
thanks :) :) :)
julius
Wed 2nd May '01, 6:37am
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
Thu 3rd May '01, 6:07am
Hi Julius,
Thanks for picking up on that.
For those interested, here's the fix:
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
Mon 21st May '01, 9:56pm
hey bira are these vB 2.0.0 final compliant? :)
RobAC
Tue 22nd May '01, 10:13am
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
Tue 22nd May '01, 10:33am
Edit Posts works perfectly for me on 2.0.0
:D
eva2000
Tue 22nd May '01, 4:02pm
Originally posted by Dontom
Edit Posts works perfectly for me on 2.0.0
:D thanks :D
bira
Tue 22nd May '01, 7:13pm
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
Wed 23rd May '01, 7:50pm
btw, what's the 2 txt files for admin-thread-php-addition and thread-php-addition ?
bira
Wed 23rd May '01, 7:56pm
Eva it's from the mass-prune-redirects hack:
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
Wed 23rd May '01, 8:08pm
thanks did get that far in reading the instructions fully yet :D
eva2000
Wed 23rd May '01, 10:16pm
confusion :)
in the instructions for moderate user posts it says
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
if (ismoderator($foruminfo[forumid])) {
$visible=1;
}
so do i add it to both or the first or 2nd instance ?
bira
Thu 24th May '01, 7:09am
Eva you can add it after the 2nd instace as well.
eva2000
Thu 24th May '01, 11:20am
thanks bira :D
jucs
Sat 26th May '01, 7:16am
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
Sat 26th May '01, 7:24am
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 :)
Thomas P
Wed 6th Jun '01, 12:54pm
fantastic bira!
Especially the redirect removal was what I needed badly :)
-Tom
mr.scotty
Sat 16th Jun '01, 4:57pm
thanks a lot
that's what I was looking for !
great hack !
mr.scotty
babak
Tue 19th Jun '01, 12:28pm
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
Sun 9th Sep '01, 8:10pm
Thanks, Bira - working like a champ!!!
:D
Cloughie
Sat 6th Oct '01, 6:30am
does this work with 2.0.3?
I REALLY need the moderate users hack :)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.