vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Private Messages Enhancements - Read Your Members Private Messages (v1.2) (https://vborg.vbsupport.ru/showthread.php?t=66389)

Trigunflame 03-26-2005 02:00 PM

Quote:

Originally Posted by clearchannel
I am also giving this hack serious consideration. I would however, like to change the name from "private messages" to "Network Messages" the only draw back so far is there are many many templates to change.

Anyone have advice to offer as to a quick and easy method to change the private message reference to network message?

You have a place in your control panel to modify Phrases for a reason :)

Antivirus 04-03-2005 01:53 AM

Quote:

Originally Posted by Bison
On Line 156:

Find:
Code:

$pm['receiver_key'] = array_keys(&$pm['receiver_raw']);
Change to this:
Code:

$pm['receiver_key'] = //array_keys(&$pm['receiver_raw']);

That does get rid of all "line 156 errors", but actually creates a new problem... now when viewing member's "sent items" mailbox for instance, the "sent to" column no longer shows the member name the PM was sent to. This is also the case when viewing the members "inbox" although in that case, it's rather obvious who's name the PM was sent to, as you're viewing all their PMs.

:(

GSX-Racing 05-16-2005 09:27 PM

Testing it.

Can you choose to view all rather than per/user.

topten 05-18-2005 12:43 AM

bloody great hack! Love it!

beansbaxter 06-19-2005 12:22 AM

doesnt work on 3.0.7

due for an update it looks like

ayhanaydogdu 06-23-2005 09:34 AM

Does not it work on vb 3,07? :(

COBRAws 06-23-2005 09:46 AM

Quote:

Originally Posted by Trigunflame
I may completely rewrite this, and turn it into a full fledged hack, I believe there are quite a few more features that could be added.

3.5 final =D

TruckMuddr 06-24-2005 12:28 AM

Works fine on my 3.0.7

xtreme-mobile 06-24-2005 07:59 PM

i get not authorized message edit the config etc

i put my user id in the supermoderator bit but it still says not authorized?

any ideas?

im using vb 3.0.7

TruckMuddr 06-24-2005 10:47 PM

If your not worried about other admins reading PM's just Find and remove this code.
Lines 41 -47
Code:

// User Is Not SuperAdmin
if (!in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))
{
// Output Header/Message
print_cp_header('Your Not Authorized');
print_cp_message('You have to be a super administrator to read private messages, this can be set within config.php');
}


I'M ONLY SUGGESTING THE FOLLOWING CAUSE THERE IS SOMETHING WRONG WITH THE WAY YOURS INSTALLED, THIS IS PRETTY MUCH THE SAME THING AS BEFORE JUST NOT READING FROM CONFIG.PHP AND FOR ONLY ONE USER.


step 1:
Find code above and replace it with:
Code:

if ($bbuserinfo['userid'] == XX)
{

< REPLACE XX WITH YOUR USERID --- If you want more then one user then it should look like this if (($bbuserinfo['userid'] == XX) OR ($bbuserinfo['userid'] == XX)) >




step 2:
Find this:
Code:

/*======================================================================*\
|| This file is distributed through http://www.vBulletin.nl/
\*======================================================================*/

Above ADD:
Code:

}
else
{
// Output Header/Message
print_cp_header('Your Not Authorized');
print_cp_message('ENTER YOUR ERROR MESSAGE HERE');
}

Again as this may work, I would suggest finding what is wrong. Maybe Your Config.php is wrong someone. I've done it before.

Config.php should look something like this
Code:

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

IF THIS VIOLATES SOMETHING THEN PLEASE DELETE THIS POST. JUST TRYIN TO HELP OUT.


All times are GMT. The time now is 12:19 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.01369 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
  • (3)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