HZRN.COM welcome to my space |
| [Release vb2.0] 3 Admin Tools: Remove Redirect, Edit Posts, & Moderate User | | Published by: mike 2010-03-14 |
| 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)
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
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 :)
hey bira are these vB 2.0.0 final compliant? :)
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?
good hack:p
@IT:Insider.NET 会議室 ディレクトリ - VB.NET:: Debugでは動くがReleaseではエラーになるのは, 1, 2008/04/15 .. Redirect 後にボタンイベント発生? 11, 2007/10/18 HttpWebResponseにおけるpostデータについて, 3, 2007/01/05 ユーザーログイン状態でexeをadmin権限で実行するには? 9, 2005/10/21 . VB2.0からVB.Netへのリプレースについて, 14, 2004/11/18 http://www.atmarkit.co.jp/fdotnet/index/bbs/dir23.htmlHOME | Visual Basic Q & A 掲示板 過去ログ一覧(HTMLバージョン):: ランダムデータから大きい順に1/3のデータを抽出するには<解決> Redirectされたファイルのダウンロードが終了したことを検知するには? .. VBデバックモードの強制終了前にDataBaseオブジェクトのパラメータをREMOVEしなくてもアプリケーションエラーにさせない方法は? admin権限以外で起動できないようにするには? http://homepage1.nifty.com/MADIA/vb/vb_bbs/index.htmlHOME | Thanks, Bira - working like a champ!!!
:D
thanks did get that far in reading the instructions fully yet :D
ok Eva, I understand what you mean now. I'll write a separate hack for that
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
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
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.
Fourth Admin Tool added at Eva2000's request :D
Prune Redirects in Moderators CP (http://www.vbulletin.com/forum/showthread.php?s=&threadid=15409)
thanks a lot
that's what I was looking for !
great hack !
mr.scotty
does this work with 2.0.3?
I REALLY need the moderate users hack :)
thanks bira :D
Thanks tubedogg :)
thanks :) :) :)
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!
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.
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 :)
Eva you can add it after the 2nd instace as well.
fantastic bira!
Especially the redirect removal was what I needed badly :)
-Tom
Originally posted by Dontom
Edit Posts works perfectly for me on 2.0.0
:D thanks :D
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
btw, what's the 2 txt files for admin-thread-php-addition and thread-php-addition ?
Edit Posts works perfectly for me on 2.0.0
:D
can the remove redirect link be made available in the /mod control panel as well ?
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 :)
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
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.
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.
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.
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...)
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.
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 ?
Microsoft Unleashes Visual Studio .NET
IBM's iPhrase Buy Adds to WebSphere
|
You are looking at:hzrn.com's [Release vb2.0] 3 Admin Tools: Remove Redirect, Edit Posts, & Moderate User, click hzrn.com to home
|
#If you have any other info about this subject , Please add it free.# | |
![]() |
|