Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-13-2001 Last Update: Never Installs: 26
 
No support by the author.

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.


Download here

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 02-14-2002, 09:23 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excuse.
Is it possible to create a Warning group and, instead of actually moderating user posts, simply to be notified via email of their new posts ?
(just like an automatic subscription to their threads)

??

Thanks
Reply With Quote
  #53  
Old 02-15-2002, 05:54 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it work with 2.2.2???
Reply With Quote
  #54  
Old 02-18-2002, 08:57 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Joshua Clinard
This looks like a cool hack. I'm not installing it until 2.2.2 is out. Can someone tell me if mods can add a user to the moderation que? Also, do you have to create a moderation usergroup for this to work?
Adding a user to moderation is easy - just change their user type to "Moderated User" or whatever you've set as your category. But yes, you do have to create a usergroup for it.
Reply With Quote
  #55  
Old 02-21-2002, 08:54 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you've used my addendum to this hack earlier (to automatically make new users moderated), you might like a rather more useful-looking moderation queue screen.

This version shows how many posts a user has made, how many replies the existing thread currently has, and has an easy "de-moderate this user" link which takes you to their admin member profile.

Instructions are:

In /mod/moderate.php...

find maketableheader("Posts awaiting validation");

replace this block (down to restarttable();) with:

PHP Code:
maketableheader("Posts awaiting validation");

  
$posts=$DB_site->query("SELECT postid,pagetext,post.dateline,userid,thread.title as title,thread.forumid as forumid,forum.title as forumtitle,thread.replycount as replycount FROM post,thread,forum WHERE thread.threadid=post.threadid AND thread.forumid=forum.forumid AND post.visible=0 AND (1=0 $sql) ORDER BY dateline");
  while (
$post=$DB_site->fetch_array($posts)) {

    
$user=$DB_site->query_first("SELECT userid,username,posts FROM user WHERE userid='$post[userid]'");
    
makelabelcode("<b>Posted by:</b>","<a href="user.php?s=$session[sessionhash]&action=viewuser&userid=$user[userid]">$user[username]</a> ($user[posts] posts) - [<a href="http://forums.mediauk.com/admin/user.php?s=$session[sessionhash]&action=edit&userid=$user[userid]" target=_blank>un-moderate</a>] (in new window)");
    
makelabelcode("<b>Located in:</b>","<a href="/forumdisplay?s=$session[sessionhash]&forumid=$post[forumid]">$post[forumtitle]</a>");
    
makeinputcode("Thread: ($post[replycount] replies)","title[$thread[threadid]]",$post[title]);
    
maketextareacode("Message:","postpagetext[$post[postid]]",$post[pagetext],4,80);
    
makeyesnocode("Validate:","validatepost[$post[postid]]",1);
    
makeyesnocode("Delete:","deletepost[$post[postid]]",0);
    
maketableheader("&nbsp;","",0);

    
$done=1;
  }
  
restarttable(); 
Tested with 2.2.1 - not 2.2.2.
Reply With Quote
  #56  
Old 02-24-2002, 01:21 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by bira
Eva it's from the mass-prune-redirects hack:

That's cos there are two "control panels" -- one in admin and one in mod
Excuse: should be necessary to modify the index.php to link the thread.php?action=prunered or that function is included elsewhere in the existing code ?
I didn't found.

Thanks.


P.S.: I'll push up even my question on Post #51 about a slight modification to 'moderate user'. Simply, instead of setting his posts 'visible=0', I would that post be reported to the webmaster with an email...
I tried following a path similar to 'email this page' (i.e. sendtofriend.php) but didn't managed to make the process hidden.
Simply I would create a new template with the thread link and the userid moderated posting here and send everything via mail() to the webmaster.
Someone could give me any hint about ?

Thanks for both answers.
Bye
Reply With Quote
  #57  
Old 02-24-2002, 02:59 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Incidentally, I've furthered this hack to also add "moderators can see unmoderated messages", and an enhanced control panel moderation section.

I've not documented this, but if anyone wants me to have a go, I'll certainly add it to The Big List.
Reply With Quote
  #58  
Old 03-07-2002, 04:39 PM
heidit's Avatar
heidit heidit is offline
 
Join Date: Jan 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone confirm that it works on 2.2.2?
Reply With Quote
  #59  
Old 03-25-2002, 09:03 PM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very, very nice......

will add......
Reply With Quote
  #60  
Old 03-26-2002, 01:00 PM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

great hack. But I only installed massprune redirects for admins.

There is one problem: If there are to much redirects to delete I get a time out and the script terminates.

My suggestion: Because I can't find any table that points to a redirect-thread and imho it's not nessesary to update counters delete all threads at once.

I have not tested, but the following should work:
in admin-thread-php-addition replace
PHP Code:
  while ($thread=$DB_site->fetch_array($threads)) {
    
deletethread($thread[threadid],0);
  } 
by
PHP Code:
  $threadlist "";
  while (
$thread=$DB_site->fetch_array($threads)) {
    if (
$threadlist == "") {
      
$threadlist $thread[threadid];
    } else {
      
$threadlist .= "," $thread[threadid];
    }
  }
  if (
$threadlist != "") {
    
$DB_site->query("DELETE FROM thread WHERE threadid in (".$threadlist.")");
  } 
and
PHP Code:
  while (list($key,$val)=each($delete)) {
    if (
$val==1) {
      
deletethread($key,0);
    }
  } 
by
PHP Code:
  $threadlist "";
  while (list(
$key,$val)=each($delete)) {
    if (
$val==1) {
      if (
$threadlist == "") {
        
$threadlist $key;
      } else {
        
$threadlist .= "," $key;
      }
    }
  }
  if (
$threadlist != "") {
    
$DB_site->query("DELETE FROM thread WHERE threadid in (".$threadlist.")");
  } 
Reply With Quote
  #61  
Old 03-26-2002, 08:20 PM
admiralapril admiralapril is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by babak
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?
I am getting the same error after installing the user moderated hack. I'm using 2.2.3. Any ideas??
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05618 seconds
  • Memory Usage 2,346KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete