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)

FatalBreeze 03-24-2005 10:00 PM

View X Last Private Messages In AdminCP 1.1
 
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!!

FatalBreeze 03-25-2005 12:14 PM

Now That's starnge... i got stock without being able to post the HACK itself...
if a moderator can contact me please...

Marco van Herwaarden 03-25-2005 12:30 PM

Just edit your post and upload the hack as an attachment.

FatalBreeze 03-25-2005 12:38 PM

oh ok i havent seen where the edit button is....
k now everyting is great.

Marco van Herwaarden 03-25-2005 01:08 PM

Thanks for sharing this FatalBreeze.

Just a few remarks:
  • Could you rename the install.php to install.txt, so people know it is just a text file.
  • I would add support for a list of id's in '$useridofsuper', or just use the config.php variable '$superadministrators'.
  • Are you Dr. PHP?
  • Prefix all the tablenames in queries with ' " . TABLE_PREFIX . " '
PHP Code:

                $id $DB_site->query_first("SELECT userid FROM user WHERE username = '$user'"); 

To avoid SQL-Injections change to:
PHP Code:

                $id $DB_site->query_first("SELECT userid FROM user WHERE username = '" addslashes($user) . "'"); 

Same goes for the second query on username.

FatalBreeze 03-25-2005 01:13 PM

oh thanks i installed it in another forum and i use different nick there.
and this is my first hack but thanks ill fix everything

Marco van Herwaarden 03-25-2005 01:21 PM

No problem that is why we are here to help eachother.

Viks 03-25-2005 02:11 PM

nice Mod!

pls let us know if you've updated the instructions... i will install.

FatalBreeze 03-25-2005 02:46 PM

I have updated the instructions earlier.

Viks 03-25-2005 03:27 PM

I installed it.. and I have 2 issues.

1. there is already a PM.php file that I am using so i named yours ppm.php and amended the instructions for admincp/index.php accordingly.

2. When I click on the link in admicp i get the following message:

No valid userid specified

Add ?userid=x to the end of the URL
(where x is an Existing user)

----------

I am not sure why I am getting this message becoz i think it is supposed to pick up last 20 pms and not pms by userid.


All times are GMT. The time now is 12:12 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.04480 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_php_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