vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Read PMs (https://vborg.vbsupport.ru/showthread.php?t=123166)

Perpetuum 10-30-2006 03:26 PM

Waht is a "Super Administrator"? In my vB 3.6 there is only a Administrator group. In this group are 3 users, including me. But nobody except of me is able to see the "Read PMs" Link. I have the userid 1, but I don't think this is important.

Maybe anybody knows how to fix that problem?

ConqSoft 10-30-2006 03:28 PM

Manually edit your config.php and there's a place to list the userids of those that you wish to be Super Admins.

scan-pa 11-02-2006 05:20 PM

Super Admin is the "god Account" usualy userid# 1

You can add more admins, by adding there userid to the "is super Admin" line in the config.php file.

GeekDrew 12-03-2006 10:00 AM

I installed this, but didn't like a few things. I'm using 3.6.4, and I had the serialized "to" field issue. I also didn't like that I had to promote someone to superadministrator just to review private messages -- because that let them have authority over administrators, which I did not want.

In order to change the security check, I did this:

In \includes\config.php

Find:
Code:

    //    ****** SUPER ADMINISTRATORS ******
    //    The users specified below will have permission to access the administrator permissions
    //    page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1';

Below that, add:
Code:

        //        ****** PRIVATE MESSAGE ADMIN ******
        //        The users specified below will have permission to view all user PMs
$config['SpecialUsers']['privatemessageadmin'] = '1';

In \admin\read_pms.php

Find:
Code:

if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY)) ) {
Replace that with:
Code:

if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['privatemessageadmin'], -1, PREG_SPLIT_NO_EMPTY)) ) {
That takes care of the security issue -- now you can add user IDs to the privatemessageadmin variable, to give them permission to use Read PMs, but not give them full superadmin rights.

Next, to change the unserialization issue...

In \admin\read_pms.php

Find:
Code:

        //print_label_row('To', htmlspecialchars($pm['touserarray']));
        $to = is_array(unserialize($pm['touserarray'])) ? implode(", ", array_values(unserialize($pm['touserarray']))) : null;
        $to = ($to == 'Array') ? htmlspecialchars($pm['touserarray']) : $to;
        print_label_row('To' , $to);

Replace that with:
Code:

        $myarray = array_values(unserialize($pm['touserarray']));
        if (is_array($myarray[0])) print_label_row('To' , htmlspecialchars(implode(", ", array_values($myarray[0]))));
        if (is_array($myarray[1])) print_label_row('BCC' , htmlspecialchars(implode(", ", array_values($myarray[1]))));

And that takes care of the unserialization issue.

All of the above worked beautifully for me on 3.6.4... your mileage may vary.

MrPHD 12-03-2006 10:06 AM

Thanks But this Hack take privaci of all users and finished PM. Installed and Runnig. Best Regards

BoArDa 12-08-2006 03:39 PM

Hm i am not able to install this thing. Tried it via fileupload as well as putting it to ./includes/xml/cpnav_rpm.xml

Always same error message:
File invalid
(Datei ung?ltig)

cpnav_rpm.xml file content:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<navgroups product="vbulletin">

        <navgroup phrase="users" permissions="canadminusers" displayorder="110">

                <navoption displayorder="130">
                        <text>Read PMs</text>
                        <link>read_pms.php</link>
                </navoption>

        </navgroup>

</navgroups>

I am using 3.6.4 with CMPS and some other hacks.

EDIT:
workaround if any other has this problem (i think it depends because displayorder 130 is alreay used with another menu or something)

OPEN: ./includes/xml/cpnav_vbulletin.xml

FIND:
<navoption displayorder="120">
<phrase>access_masks</phrase>
<link>accessmask.php?do=modify</link>
</navoption>

AFTER ADD:
<navoption displayorder="121">
<text>Read PMs</text>
<link>read_pms.php</link>
</navoption>

This will add the Menu in the Users Admin menu by Hand.

scootman 12-08-2006 04:27 PM

Click Install, Thank you,

mlucek 12-08-2006 07:58 PM

Intalled.

Quote:

Originally Posted by GeekDrew (Post 1130641)
And that takes care of the unserialization issue.

Thanks for the fix GeekDrew !

BryceW 12-09-2006 07:54 AM

Im SO glad I found this mod. I have a serious case of people signing up just to spam our PM's.

Alantris 12-09-2006 02:58 PM

Really is it not a shame to you? To read personal messages of users, this disrespect for them. On that they Personal!


All times are GMT. The time now is 07:32 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.01379 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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