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)
-   -   Reported Posts Center (https://vborg.vbsupport.ru/showthread.php?t=53351)

filburt1 05-27-2003 03:58 AM

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.

filburt1 05-27-2003 03:59 AM

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).

Boofo 05-27-2003 04:19 AM

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.

sleepbirdcyp 05-27-2003 07:55 AM

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?

Boofo 05-27-2003 08:00 AM

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;



sleepbirdcyp 05-27-2003 08:21 AM

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:

Boofo 05-27-2003 08:23 AM

The code you needed to change is in that file at the top. Did you change it there?

sleepbirdcyp 05-27-2003 08:27 AM

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.....................

:(

TheLab 05-27-2003 09:42 AM

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 ;)

discussfitness 06-22-2003 09:48 PM

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.


All times are GMT. The time now is 01:45 AM.

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.01105 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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