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)

StevenTN 12-16-2004 05:15 AM

I just finally added the hack... and so my admins don't have to mess around with typing in URLs, I added a crude search form to the Admin CP home...

I've also hacked my config.php and pm.php so there's now a $canviewpms variable and it will regard that instead of the $superadministrators variable.

Find this...
PHP Code:

   if (can_administer('canadminusers'))
   {
       
print_label_row($vbphrase['quick_user_finder'], '
           <form action="user.php" method="post" style="display:inline">
           <input type="hidden" name="s" value="' 
$session['sessionhash'] . '" />
           <input type="hidden" name="do" value="find" />
         <input type="text" class="bginput" name="user[username]" size="30" tabindex="1" />
         <input type="submit" value=" ' 
$vbphrase['find'] . ' " class="button" tabindex="1" />
         <input type="submit" class="button" value="' 
$vbphrase['exact_match'] . '" tabindex="1" name="user[exact]" />
           </form>
           '
'''top'NULLfalse
       
);
   } 

And before the closing curly brace, add this...
PHP Code:

       print_label_row('Lookup PM (by userid)''
         <form action="/boards/admincp/pm.php" method="get" style="display:inline">
         <input type="text" class="bginput" name="userid" size="30" tabindex="1" />
         <input type="submit" value=" ' 
$vbphrase['find'] . ' " class="button" tabindex="1" />
           </form>
           '
'''top'NULLfalse
       
); 

The reason why I added it is a) we're covered in our ToS when it comes to these, b) I had a rather crude PM system when we had vB2.3.x, and c) We get complaints at least once or twice a month about abusive PMs, which is covered in point a.

If you want me to make this more viable (like have the vbphrase variable), let me know.

Mechanical Mind 12-18-2004 11:08 PM

* clicks install *

Not working for me.

Am I confused, all I did was upload it to admincp folder and try to reach the link via my web browser.

I got this message: the requested document is not found on this server.

Help!!!

StevenTN 12-18-2004 11:18 PM

What was the URL you tried? I'm willing to bet it might've been mistyped or put in the wrong area.

Mechanical Mind 12-18-2004 11:28 PM

Quote:

Originally Posted by StevenTN
What was the URL you tried? I'm willing to bet it might've been mistyped or put in the wrong area.

Well, I have renamed my adminCP folder. Could this have something to do with it? But I tried modifying the URL to include that. And I tried modifying the one instance of "admincp" to "my secret name".

I guess the real question is:
- What do I need to add/delete/modify since I have a renamed adminCP folder?

Samira 12-22-2004 06:15 PM

Is anyone else having problems reading messages with the Quote tags? I had a mod installed that altered the look of the quotes and I uninstalled that, but am having the same problem. Suggestions?

JD210 12-27-2004 09:06 AM

Installed it, but I get the following error at the top, plus it is showing that no PMs have been sent. I use 3.0.3.

Quote:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of array_keys(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home2/www/******/forum/admincp/pm.php on line 156

Paul M 12-27-2004 09:55 AM

Quote:

Originally Posted by JD210
Installed it, but I get the following error at the top, plus it is showing that no PMs have been sent. I use 3.0.3.

Are you using php5 ?

JD210 12-27-2004 08:34 PM

No, PHP 4

TMAC 12-31-2004 09:44 PM

So does this work with version 3.03?

Thanks You

pco 01-01-2005 08:55 PM

Quote:

Originally Posted by Samira
Is anyone else having problems reading messages with the Quote tags? I had a mod installed that altered the look of the quotes and I uninstalled that, but am having the same problem. Suggestions?

in pm.php in function parse_pm_bbcode($bbcode) change at the end of the return line from this:

PHP Code:

,$vboptions['privallowbbcode'])); 

to this:

PHP Code:

,$vboptions['privallowbbcode'],1)); 

:)


All times are GMT. The time now is 08:11 PM.

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.03380 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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