vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   View X Last Private Messages In AdminCP 1.1 (https://vborg.vbsupport.ru/showthread.php?t=78750)

Marco van Herwaarden 03-25-2005 07:36 PM

Quote:

Originally Posted by FatalBreeze
I have updated the instructions earlier.

Great :D
But they where not instructions, just advices :D

Allan 03-25-2005 07:58 PM

Great, cheer :)

Thank for Hack, "click Install" ;)

Viks 03-25-2005 10:53 PM

i still cud not understand what this hack does? :?

FatalBreeze 03-26-2005 06:41 AM

viks because you have changed the pm.php to ppm.php you need to edit the file index.php in the admincp as well.

so go to admincp/index.php
and find:
PHP Code:

        construct_nav_option($vbphrase['private_message_statistics'], 'usertools.php?do=pmstats''<br />'); 

After Add:

PHP Code:

        construct_nav_option('View Last Private Messages''ppm.php?do=index''<br />'); 

You got this code (Add ?userid=x to the end of the URL
(where x is an Existing user) because you didn't change the index.php file correctly and you mixed it up with another hack. my hack shows the last 20 messages and the other hack shows messages by user ids.

Viks 03-26-2005 02:43 PM

hi Fatalbreeze,
thanks.. ya i was confusing the hacks...
ok. i have not only made the change u recommended but also modifiied the pm.php fil of urs to update references to pm.php to the new file ppm.php in 2 places.

i still get the same meessage as before!!
when i click get 20 pms.. it goes to ppm.php and get the error message

FatalBreeze 03-26-2005 08:56 PM

ok so what you need do to is to open the file ppm.php, and find:

PHP Code:

$cell[] = construct_link_code($pm[title],"pm.php?$session[sessionurl]do=view&pmid=$pm[pmtextid]"); 

And Replace it with
PHP Code:

$cell[] = construct_link_code($pm[title],"ppm.php?$session[sessionurl]do=view&pmid=$pm[pmtextid]"); 

And that's it everything will work correctly.

Viks 03-27-2005 12:56 AM

I have already chaned all references to pm.php to ppm.php in that file.. still it does not work!! i think it is having some prbs with the PM hack i installed earlier.

Viks 03-27-2005 01:21 AM

ok it works only if I rename ur file to pm.php! i searched all through the file why doesnt it work with another name... even changed the references PM.PHP to PVPM.PHP in all the places.. in the pm.php file and also in admincp/index.php file..
still it did not work!!

anyway, ihave modified the earlier hack i had.. so now both of them are working.

thanks fatebreeze.

FatalBreeze 03-27-2005 08:55 AM

: ) hope you enjoy this hack

sv1cec 06-11-2005 02:16 PM

May I make a small suggestion?

In file pm.php, you have something like:

PHP Code:

$cell[] = substr($msg,1,30)."\n\n"

I would change that to :

PHP Code:

$cell[] = substr($msg,0,30)."\n\n"

Or else the first character of the message is lost. Substr considers 0 to be the first character of the string. Better yet, you can replace that line with:

PHP Code:

$cell[] = substr(strip_bbcode(strip_quotes(trim($msg))),0,30)."\n\n"

Also, please change the "Reviever" to "Receiver", I guess this is what you mean.

Rgds and me clicks install.


All times are GMT. The time now is 04:24 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.01697 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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