Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Reported Posts Center Details »»
Reported Posts Center
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-24-2003 Last Update: Never Installs: 27
 
No support by the author.

This hack gives vB one major thing that it's been missing: a central location to manage reported posts. Every time a post is reported, it will show up in the RPC. Moderators can then mark them as resolved.

Show Your Support

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

Comments
  #22  
Old 05-27-2003, 03:58 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 03:30 AM Sebastian said this in Post #16
filburt, Great Hack.

Can you list some of the tables this alters, if any, .. and which files are modified? Thanks.
One table creation, only report.php (IIRC) modified.
Reply With Quote
  #23  
Old 05-27-2003, 03:59 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 12:57 AM Boofo said this in Post #20
If they are the moderator of that forum, they should be able to see it, too, if I read the code right. If they are not, they really have no business seeing it.
I'm guessing I did it correctly. Make sure the user in question is the moderator usergroup instead of just assigned as a moderator (an annoying problem with vB).
Reply With Quote
  #24  
Old 05-27-2003, 04:19 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You did it right with the "if (!$permissions['ismoderator']) show_nopermission();" line. I always put them in the Moderators Usergroup before I assign them any forums, just to be safe.
Reply With Quote
  #25  
Old 05-27-2003, 07:55 AM
sleepbirdcyp's Avatar
sleepbirdcyp sleepbirdcyp is offline
 
Join Date: Dec 2001
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didnt run the install_rpc.php

I just created a table

PHP Code:
CREATE TABLE reportedpost
    
(
        
reportedpostid int(10unsigned NOT NULL auto_increment,
        
postid int(10unsigned NOT NULL default '0',
        
userid int(10unsigned NOT NULL default '0',
        
dateline int(10unsigned NOT NULL default '0',
        
comments text NOT NULL,
        
PRIMARY KEY  (reportedpostid)
    ) 
TYPE=MyISAM 
and modified report.php, created 4 new templates

PHP Code:
error_postalreadyreported
reportedposts
reportedposts_bit
reportedposts_emptybit 
my mods really cant see the report center! :dead:

is there anything i didnt to do?
Reply With Quote
  #26  
Old 05-27-2003, 08:00 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try changing this line:

PHP Code:
if (!$permissions['ismoderator']) show_nopermission(); 
to something like:

PHP Code:
if ($bbuserinfo['usergroupid']!=or $bbuserinfo['usergroupid']!=or $bbuserinfo['usergroupid']!=7) {
show_nopermission();
exit;

Reply With Quote
  #27  
Old 05-27-2003, 08:21 AM
sleepbirdcyp's Avatar
sleepbirdcyp sleepbirdcyp is offline
 
Join Date: Dec 2001
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:00 PM Boofo said this in Post #25
You can try changing this line:

PHP Code:
if (!$permissions['ismoderator']) show_nopermission(); 
to something like:

PHP Code:
if ($bbuserinfo['usergroupid']!=or $bbuserinfo['usergroupid']!=or $bbuserinfo['usergroupid']!=7) {
show_nopermission();
exit;

mods still cant access reportedposts.php
:cry: :cry: :cry: :cry:
Reply With Quote
  #28  
Old 05-27-2003, 08:23 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code you needed to change is in that file at the top. Did you change it there?
Reply With Quote
  #29  
Old 05-27-2003, 08:27 AM
sleepbirdcyp's Avatar
sleepbirdcyp sleepbirdcyp is offline
 
Join Date: Dec 2001
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open the reportedposts.php

find

if (!$permissions['ismoderator']) show_nopermission();

and replaced with

if ($bbuserinfo['usergroupid']!=5 or $bbuserinfo['usergroupid']!=6 or $bbuserinfo['usergroupid']!=7) {
show_nopermission();
exit;
}

I do! and also check them usergroupid are 5,6,7
but.....................

Reply With Quote
  #30  
Old 05-27-2003, 09:42 AM
TheLab TheLab is offline
 
Join Date: May 2003
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i didnt change nothing in the code... and everything works great. All moderators can see the reported post center. I just have one question. How can i add a link of that in the Admin panel at Vbulletin options? I tried to edit the /admin/options.php but didnt find any other link there.

Thanks in advance
Reply With Quote
  #31  
Old 06-22-2003, 09:48 PM
discussfitness discussfitness is offline
 
Join Date: Jan 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

filburt1

I'm using an unhacked vB2.3.0 and I followed this instruction:

Quote:
1. Upload install_rpc.php and the entire folder templates_reportedpostscenter to your forums' admin directory and run install_rpc.php.
When I run install_rpc.php I just get a blank page, with nothing on it. I view the source and all I see is this:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
I checked the database and no tables were created.

What's going on? Cheers.
Reply With Quote
Reply

Thread Tools

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 09:04 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.07079 seconds
  • Memory Usage 2,311KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (6)bbcode_php
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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