Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Read PMs Details »»
Read PMs
Version: 0.7, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.8 Rating:
Released: 08-05-2006 Last Update: Never Installs: 1657
Re-useable Code Additional Files  
No support by the author.

This will let you read your member's private messages.

Features:

- List PMs separated by sent/received given a username or id
- List all users with PMs
- Search PMs by "exact text", "all words" and "at least one of the words"
- List the latest 100 PMs sent

Installation:

Upload "read_pms.php" to your admincp folder and "cpnav_rpm.xml" to your includes/xml folder. Do not import the xml, upload it!!!

Usage:

On your admin control panel, under the "User" menu theres a link to the Read PMs mod. Only Super Administrators can use it.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
too_cool_3

Comments
  #72  
Old 10-30-2006, 03:26 PM
Perpetuum Perpetuum is offline
 
Join Date: May 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #73  
Old 10-30-2006, 03:28 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Manually edit your config.php and there's a place to list the userids of those that you wish to be Super Admins.
Reply With Quote
  #74  
Old 11-02-2006, 05:20 PM
scan-pa scan-pa is offline
 
Join Date: May 2006
Location: Lebanon Co. Pa. USA
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #75  
Old 12-03-2006, 10:00 AM
GeekDrew GeekDrew is offline
 
Join Date: Dec 2004
Location: Columbus, OH, USA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #76  
Old 12-03-2006, 10:06 AM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks But this Hack take privaci of all users and finished PM. Installed and Runnig. Best Regards
Reply With Quote
  #77  
Old 12-08-2006, 03:39 PM
BoArDa's Avatar
BoArDa BoArDa is offline
 
Join Date: Apr 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #78  
Old 12-08-2006, 04:27 PM
scootman's Avatar
scootman scootman is offline
 
Join Date: Jan 2005
Location: Sweden
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Click Install, Thank you,
Reply With Quote
  #79  
Old 12-08-2006, 07:58 PM
mlucek's Avatar
mlucek mlucek is offline
 
Join Date: Feb 2004
Location: Lost Angeles
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Intalled.

Quote:
Originally Posted by GeekDrew View Post
And that takes care of the unserialization issue.
Thanks for the fix GeekDrew !
Reply With Quote
  #80  
Old 12-09-2006, 07:54 AM
BryceW BryceW is offline
 
Join Date: Feb 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im SO glad I found this mod. I have a serious case of people signing up just to spam our PM's.
Reply With Quote
  #81  
Old 12-09-2006, 02:58 PM
Alantris Alantris is offline
 
Join Date: Nov 2006
Location: Russia
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really is it not a shame to you? To read personal messages of users, this disrespect for them. On that they Personal!
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 06:03 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.05381 seconds
  • Memory Usage 2,315KB
  • 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
  • (7)bbcode_code
  • (1)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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