Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
View X Last Private Messages In AdminCP 1.1 Details »»
View X Last Private Messages In AdminCP 1.1
Version: 1.1, by FatalBreeze FatalBreeze is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-24-2005 Last Update: 07-22-2005 Installs: 19
Code Changes Additional Files  
No support by the author.

Hack Built By: FatalBreeze
Version: 1.1
Date: 10/7/2005
Name Of Hack: View X Last Private Messages In AdminCP.

THE ENTIRE HACK IS BUILT IN ENGLISH!!!!

*Note: All the tips posted here were taken.

What This Hack Does: This hack allows the admins who has access to the column "Users" in the admincp,
to view the last X (you define it in the admincp) private messages which were sent by the users.

The Reason I Built This Hack: i built this hack because i just wanted to see if someone is spamming the forums, or advertising
his forum. because i have a lot of users i cannot view each and every ones outgoing messages, so i built this hack to see the last pm's which were sent.

Screen Shots Are Attached Below, Please Execuse Me I Have Built This Hack In A Forum Which Uses Hebrew... So Dont Be Afraid... : )

If you like it please click INSTALL!!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-25-2005, 07:36 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FatalBreeze
I have updated the instructions earlier.
Great
But they where not instructions, just advices
Reply With Quote
  #13  
Old 03-25-2005, 07:58 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, cheer

Thank for Hack, "click Install"
Reply With Quote
  #14  
Old 03-25-2005, 10:53 PM
Viks Viks is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i still cud not understand what this hack does? :?
Reply With Quote
  #15  
Old 03-26-2005, 06:41 AM
FatalBreeze FatalBreeze is offline
 
Join Date: Apr 2004
Location: Haifa - Israel
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 03-26-2005, 02:43 PM
Viks Viks is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 03-26-2005, 08:56 PM
FatalBreeze FatalBreeze is offline
 
Join Date: Apr 2004
Location: Haifa - Israel
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 03-27-2005, 12:56 AM
Viks Viks is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 03-27-2005, 01:21 AM
Viks Viks is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 03-27-2005, 08:55 AM
FatalBreeze FatalBreeze is offline
 
Join Date: Apr 2004
Location: Haifa - Israel
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

: ) hope you enjoy this hack
Reply With Quote
  #21  
Old 06-11-2005, 02:16 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 11:53 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.05750 seconds
  • Memory Usage 2,311KB
  • Queries Executed 26 (?)
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_php
  • (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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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