Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2014, 12:03 PM
ARLreborn ARLreborn is offline
 
Join Date: Jan 2014
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default SQL Query to view Private Messages

Hi,

Is there such a query to view a certain users messages?

I saw one for vB 3.X

SELECT message FROM pmtext WHERE fromuserid = XXX;

But these tables don't exist in vB5... Any advice?
Reply With Quote
  #2  
Old 08-03-2014, 12:24 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this plugin will allow you to see pms for vb4 but its not made for vb5. You could look at the xml and see what the query is and see if you could use it on vb5 but as vb5 is different in so many ways i dont see it working. On another note why you need to see private pms
Reply With Quote
Благодарность от:
ARLreborn
  #3  
Old 08-03-2014, 12:34 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The database table in vBulletin 5 is named "privatemessage" and it is possible to view the tables with SQL commands but as stated above, why would you invade members' privacy? Private Message both explicitly and implicitly states the message is private. If you're that concerned about a member turn off their ability to use the private messaging system.
Reply With Quote
Благодарность от:
ARLreborn
  #4  
Old 08-03-2014, 12:35 PM
ARLreborn ARLreborn is offline
 
Join Date: Jan 2014
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See private pm's - a user is taking members away from the forum... Have no proof, we only want to check his messages as we respect privacy... But when it's been reported in one PM, we want to see if it's occurring elsewhere.

Will look @ the vb4 ones and come back to you Thanks for the input

--------------- Added [DATE]1407073009[/DATE] at [TIME]1407073009[/TIME] ---------------

Tried this:
SELECT about FROM privatemessage WHERE userid = **;


No joy. UserID isn;t included in the columns - any ideas?

--------------- Added [DATE]1407073218[/DATE] at [TIME]1407073218[/TIME] ---------------

Further more, we don't want to see other member's PM's, just one users. It's more to get proof of lurring people away.

That is purely it, I can't stress that enough
Reply With Quote
  #5  
Old 08-04-2014, 11:14 AM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
SELECT * FROM node WHERE node.contenttypeid = 27 AND node.userid = 1;
27 looks like the default content type ID for a vb 5 install. If you get weird results, you can double check the number in the contenttype table.
Reply With Quote
2 благодарности(ей) от:
ARLreborn, Lynne
  #6  
Old 08-04-2014, 09:59 PM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you need it only for one user then why not looking directly on the private messages table on phpmyadmin?
Reply With Quote
  #7  
Old 08-05-2014, 05:11 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ProSportsForums View Post
why would you invade members' privacy? Private Message both explicitly and implicitly states the message is private.
1. We changed the phrase Private to Personal where needed to stop wrong thinking

2. Our rules say we can look, we don't hide it (we look, very rarely)
(Rule 15) http://www.ausphotography.net.au/for...hp?do=vsarules

3. To think that someone won't look is dumb
-- once anything is on the web someone you don't expect will see it.
vB has a admin tool that lets admin's see PMs

Why look?
We have had some cases of disputes between members and needed to see the correspondence.
There are other legit reasons for an admin to look, and some admins might look without reason.
The reality is most of us are too busy to bother, just saying that it can and will happen.

Kym
Reply With Quote
Благодарность от:
ARLreborn
  #8  
Old 08-05-2014, 11:21 AM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scanu View Post
If you need it only for one user then why not looking directly on the private messages table on phpmyadmin?
Because, there's nothing in the private messages table that would be helpful for what the OP is looking for?
Reply With Quote
Благодарность от:
ARLreborn
  #9  
Old 08-05-2014, 11:33 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ARLreborn View Post
See private pm's - a user is taking members away from the forum... Have no proof, we only want to check his messages as we respect privacy... But when it's been reported in one PM, we want to see if it's occurring elsewhere.
You have a flagged (reported) such PM, and that's not enough proof?

When I suspect poaching I handle it with any one of several staff decoy accounts. A poacher typically won't PM a staff member since most boards have those accounts identified, but will PM active members it sees, or in reply to a PM from another member that isn't a staffer.

Use of decoy accounts catches poachers in the act, every time it is tried.
Reply With Quote
  #10  
Old 08-05-2014, 11:37 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dead Eddie View Post
Because, there's nothing in the private messages table that would be helpful for what the OP is looking for?
Then I'm not sure i completely understand what he wants
Reply With Quote
Reply


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 06:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12015 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete