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)

Ncturnal 09-01-2006 02:03 AM

Quote:

Originally Posted by mrderanged
Quick question. If someone who has permission to the admincp but isn't a superadmin, can they see that this add-on is installed?

Thanks

Yes, the option will show up but give an insufficient priviledges if they try to use it, unless you have not given them the ability to administer users since this option shows up in the manage users submenu.

Nxs 09-01-2006 07:51 AM

Quote:

Originally Posted by AngieZ
I did that and it's saying "I don't have permission."
I'm running 3.6.0... could this be the problem?

Works fine with 3.6.0
If you dont have permission to upload files to a folder on your host - contact your providor, there is something wrong.

Without the includes/xml file - you should still be able to use the system by goign to the direct URL of http://yourdomain.com/admincp/read_pms.php

Ncturnal 09-01-2006 12:20 PM

Quote:

Originally Posted by Nxs
Without the includes/xml file - you should still be able to use the system by goign to the direct URL of http://yourdomain.com/admincp/read_pms.php

Good point, I didn't think about that.

funkmeister 09-03-2006 05:16 AM

Quote:

Originally Posted by gwhooooey
For some reason the smilies (which I think were working when I first installed this... are now trying to link to them, but they think it's in the admincp/images etc directory.. which of course they're not.

How would I change it so it changes back to the normal directory?

Any news as to when the above issue is going to be addressed, as well as the characters in the "To" field and finally the missing quoted text?.

Thanks - works great aside from those minor nuisances.

Ncturnal 09-03-2006 05:19 AM

Quote:

Originally Posted by gwhooooey
For some reason the smilies (which I think were working when I first installed this... are now trying to link to them, but they think it's in the admincp/images etc directory.. which of course they're not.

How would I change it so it changes back to the normal directory?

As a temporary fix, you create an images directory and copy the smiles to it.

syedakm 09-07-2006 01:32 PM

I added the following line to my include/config.php

Quote:

$config['SpecialUsers']['superadministrators']['administrators'] = '1';
Even then it didn't work and after that i added myself to to the superadmin group, and still no luck.. any ideas?

phpdevrus 09-07-2006 10:01 PM

nice looks like it runs fine for :-)

excellent thanks.

Brandon Sheley 09-14-2006 04:01 AM

no install instructions ? :(

Bulent Tekcan 09-14-2006 10:25 AM

Quote:

Originally Posted by Loco.M
no install instructions ? :(

Did you read the 1st message ?

Quote:

Installation:

Upload "read_pms.php" to your admincp folder and "cpnav_rpm.xml" to your includes/xml folder.


thumbsucker 09-16-2006 05:10 PM

It says I don't have permission. I added my username to config.php but I know a while back I accidentally deleted by admin acccount and had to get another created. Does that mean my userID number is not 1? How can I find out what my userID admin number is or can I just write in the username itself?

Help!

Dexter_kcd 09-16-2006 05:19 PM

Quote:

Originally Posted by thumbsucker
It says I don't have permission. I added my username to config.php but I know a while back I accidentally deleted by admin acccount and had to get another created. Does that mean my userID number is not 1? How can I find out what my userID admin number is or can I just write in the username itself?

Help!


If you created a new user account, your user ID is not going to be 1. You need to find out your current user number (click on your profile, and it will display u= and then your user ID number.

Add that ID number to the SuperAdministrators section of your vBulletin config.php.

Dexter...

Snake 09-17-2006 05:14 PM

Oh this is great to have on my forums. Thanks!

haris_led 09-19-2006 12:30 AM

Hi, i think there is a bug!:)
When I send a pm to a user, and then I go to read pms it shows it.
OK so far.
BUT, if the user, deletes the pm from his inbox, and then, i delete it also from my sent folder, it still shows it in read pms.
If i click on the link to see it i get a database error saying:
Code:

Database error in vBulletin 3.6.1:

Invalid SQL:
SELECT username FROM user WHERE userid =;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064

i suppose this is happening because the hack does not find that pm in the database.
any solutions?
thanks :D

Dexter_kcd 09-19-2006 09:21 PM

The deleted PM will show in the latest PMs list until your forum runs Scheduled Task "Hourly Cleanup #2." That CRON job cleans up PMs, and by default it runs once per hour.

You can test this yourself by sending a PM to a user, having them delete it right away, and then checking the Read PMs list. Then go into your Admin CP -> Scheduled Tasks -> Scheduled Task Manager. Find Hourly Cleanup #2, and hit the Run Now button. Then go back to the Read PMs page and view the Latest PMs. The deleted PM should be gone from the list.

Dexter...

haris_led 09-19-2006 09:22 PM

Quote:

Originally Posted by Dexter_kcd
The deleted PM will show in the latest PMs list until your forum runs Scheduled Task "Hourly Cleanup #2." That CRON job cleans up PMs, and by default it runs once per hour.

You can test this yourself by sending a PM to a user, having them delete it right away, and then checking the Read PMs list. Then go into your Admin CP -> Scheduled Tasks -> Scheduled Task Manager. Find Hourly Cleanup #2, and hit the Run Now button. Then go back to the Read PMs page and view the Latest PMs. The deleted PM should be gone from the list.

Dexter...

Thanks a lot! :D

Nathan2006 09-20-2006 06:15 PM

Thanks Dream

Install

Guest201202001 09-21-2006 01:29 PM

And for 3.6.1????

haris_led 09-21-2006 01:31 PM

Quote:

Originally Posted by L'ingegnere
And for 3.6.1????

yes, it works with 3.6.1

Zagis 09-22-2006 07:07 PM

Hi,

I've uploaded "read_pms.php" to my admincp folder and "cpnav_rpm.xml" to my includes/xml folder but there is nothing in my control panel's users area.
Do I have to do something more to make it work?

vB 3.6.1

Regards

iran.gs 09-22-2006 07:52 PM

installed thanks this is a life saver as soon l installed :) cought 2 of my high rank muds talking bad about me lol

Hornstar 09-27-2006 05:38 AM

Quote:

Originally Posted by iran.gs
installed thanks this is a life saver as soon l installed :) cought 2 of my high rank muds talking bad about me lol

rofl that is great lol I've caught people out as well, even making money behind my back when I should be getting commision.

Code9 09-29-2006 07:05 PM

I got an error... Fatal Error Could not open /home/.duce/axay86/liupharmnote.com/forums/includes/xml/cpnav_vbulletin.xml

anyone have any ideas? I dont see anything in admincp

Lena Starling 10-01-2006 03:52 PM

This is by far one of the most useful hacks to me. Thanks for making it.

Pitlane 10-03-2006 04:01 PM

Excellent hack, on my old board I discovered someone from a rival board trying to poach members so this hack will be great this time round and the Moderate PM's hack too

mugz 10-04-2006 01:04 PM

i just installed it on my site but i cant see any sign of this in the admin control pannel or ware to look?

abramelin 10-08-2006 06:23 AM

is this works on 3.6.2?

Shazz 10-08-2006 06:40 AM

Quote:

Originally Posted by abramelin
is this works on 3.6.2?

Yes...

RWDF1 10-09-2006 03:26 PM

Great, I suspected one of my members was using the PM system to spam, I installed this, confirmed what I thought, and he is now the proud owner of a lifetime ban, thanks to this hack.

Thanks.

Edit- I use 3.6.2

ed146 10-19-2006 02:23 AM

Nvm, fixed the problem

Colton Jones 10-19-2006 06:37 AM

I use 3.6.2 and it's not showing up anywhere. I installed everything right as well. Did you mean Super Moderators? Because there is no Super Administrator in 3.6.2, it seems. Maybe in 3.6.0 - I even went as far as to added and joined a new usergroup "Super Administators", in hopes of it just working and it didn't.

Maybe I just suck.

EDIT - It's working. I've been wanting one of these for years. Thanks. Great hack.

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 09:13 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.01564 seconds
  • Memory Usage 1,834KB
  • 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
  • (8)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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