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)

Shazz 08-22-2007 03:57 PM

Quote:

Originally Posted by DiesellMinded (Post 1321222)
OK Do you read Pm's on vbFAQ :nervous:

What are you doing illegal? rofl

Shazz 08-22-2007 03:58 PM

Quote:

Originally Posted by josepheseven (Post 1323085)
is there any way that i could give permissions to my other 2 admins to read them also ?

Super admin them...

JWalker05 08-26-2007 09:58 AM

Quote:

Originally Posted by josepheseven (Post 1323085)
is there any way that i could give permissions to my other 2 admins to read them also ?

Like Shazz said, you can either SuperAdmin them or modify read_pms.php. I too wanted to allow some of my other admins to use this mod, but did not want to SuperAdmin them.

You can easily achieve this by modifying:
PHP Code:

// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vbulletin->config['SpecialUsers']['superadministrators'], -1PREG_SPLIT_NO_EMPTY)) ) {
 
rpm_print_stop_back("You don't have permission to access this page.");


to look something like:
PHP Code:

// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vbulletin->config['SpecialUsers']['pmadministration'], -1PREG_SPLIT_NO_EMPTY)) ) {
 
rpm_print_stop_back("You don't have permission to access this page.");


NOTE: The only change was "config['SpecialUsers']['superadministrators']" to "config['SpecialUsers']['pmadministration']" in read_pms.php.

After you make that change, add the following to includes/config.php:
PHP Code:

$config['SpecialUsers']['pmadministration'] = '3,5,36'

Replacing the 3,5,36 with the userid's you want to grant access to.

Hopefully that points you in the right direction. :D

Ditzy.Britt 09-01-2007 05:37 AM

i keep getting this error message when trying to upload the file into my acp
XML Error: unknown at Line 0

nevermind, figured it out.

Ohiosweetheart 09-03-2007 01:50 PM

Quote:

Originally Posted by Ohiosweetheart (Post 1321091)
The statement was addressed to everyone, not just you DM. There are alot of other comments in the thread about reading pm's.

:)

Quote:

Originally Posted by DiesellMinded (Post 1321222)
OK Do you read Pm's on vbFAQ :nervous:

lol - nope.

Quote:

Originally Posted by Shazz (Post 1323274)
What are you doing illegal? rofl

LOL!!

Dream 09-09-2007 12:36 AM

1000 installs for a quick mod to code, not bad :)

I'll have to update this to show quotes some day.

Shazz 09-09-2007 01:40 AM

Quote:

Originally Posted by Dream (Post 1335135)
1000 installs for a quick mod to code, not bad :)

I'll have to update this to show quotes some day.

lol not bad :)
Congrats

Crystal Shards 09-11-2007 01:56 AM

It's telling me I've got an invalid file via both file upload and FTP upload. What do I do about that?

~Crystal

Dream 09-11-2007 02:08 AM

Can you upload other files? If not, this must be a problem with your server.

derfelix 09-11-2007 04:29 AM

great hack !!!

I read through the thread but didnt find anything... so here is my question:

is there an easy way of hiding the Read PMs link in ACP for admins that are not allowed to use it??
(because I have questions and PMs (lol) : why am I not allowed.. I thought I was admin... etc..)

Thx for a reply..
Felix


All times are GMT. The time now is 09:37 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.01428 seconds
  • Memory Usage 1,748KB
  • 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
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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