vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=304325

[OzzModz] PM Spy
by ozzy47
09 Nov 2013 04:27

2 Attachment(s)
Another mod brought to you by,
https://www.vbulletin.org/forum/external/2015/01/1.png

[OzzModz] PM Spy, has won MOTM for December 2013 Mod of the Month!

First off this mod, [Chris] PM Spy, has been taken over by me. It did belong to Christos Teriakis. He has since given me full rights to the mod, so I am releasing it here. Only thing I have changed as of yet is the title, added the link and changed some template names, so it is basically the same mod. To upgrade from that mod is the same as any other time, unzip the files, load them to your server, overwriting the old files, then import the new xml. Please remember, this mod is as new to me as anyone installing it, so we are both on a learning curve. :)

*** Restriction in use ***
Please note that the Ajax Datagrid that comes as free to you is a commercial script and thus using it outside the specific folder (christeris/datagrid) is not allowed by the script's license agreement.

Note: As of now, if your database is running as mysqli, this mod may not work, there has been one report of this.

1.- What is PM Spy
It's a very simple utility to help Admins/Moderators (depending on usergroup permissions), to know what is happening behind the scenes. In simple words with this utility you can search all user PM's using Ajax (search as you type).
  • You can search on:
    • Sender
    • Recipient(s)
    • Title
    • Message
    • Send date
  • Usernames are clickable to user profile
  • Moving the mouse over the title you can see the full message in tooltip. Don't forget that the text that your enter as search in Title also searches in Message body.
  • Multi mark PMs as read, or unread if viewing PM's you have read already (does not affects the User Read vb option).
  • By clicking the title you can change indexing Ascending/Descending to all fields.
2.- Todo List.
If I see that this mod has enough popularity, I have in mind to extend it by adding some more features.

3.- Installation
  1. Download and unzip the file PMSpy_XXXX.zip
  2. Upload the content of upload folder to the directory where your vB installation is. To be sure: pmspy.php must be on the same directory as global.php, forum.php etc.
  3. CMOD 666 the file: christeris/datagrid/logs/errorlog.txt
  4. Goto Admincp and import product-pmspy.xml
  5. There are some settings at Settings --> Options --> [OzzModz] PM Spy Settings, including usergroup settings
  6. You can access PM Spy by clicking on the PM Spy link in the Quick Links Menu.
  7. New to v1.2.0 Users that are set to superadministrators in includes/config.php will be able to use the system, no matter which usergroups you have set to be able to use it. This means, if you leave the setting, Usergroups Allowed To Use PM Spy empty, only superadministrators will be able to use the mod.
-------------------------------------------------------------------------------------------

If you like this mod please hit the https://www.vbulletin.org/forum/external/2015/08/1.png button to the right ---->

Please remember to click the, https://www.vbulletin.org/forum/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.1.0 Nov 8th 2013
  • Initial Release.
v1.1.1 Nov 9th 2013
  • Fixed the error, Warning: Invalid argument supplied for foreach() in [path]\christeris\datagrid\includes\pmspy_functions.php (Line 19)
  • Fixed the count issues joeychgo reported.
v1.2.0 11th Nov 2013
  • Now you can have it so only users that are set to superadministrators in includes/config.php will be able to use the system, no matter which usergroups you have set to be able to use it. This means, if you leave the setting, Usergroups Allowed To Use PM Spy empty, only superadministrators will be able to use the mod.
v1.3.0 16th Nov 2013
  • Finally fixed the To Users column to show properly.
  • Added the ability to filter the results by To Users.
  • Added a new page, that you can view PM's that you had marked as read, before you were only able to view PM's you did not read.
  • Added ability to mark PM's that you already read, as unread.
  • There was one site that had the Invalid argument error, so I had to change it so if it could not read the receivers userid, it will show Unknown User ID in the To User(s) column. I have no clue why it is happening, but is seems under certain circumstances it might.
v1.4.0 Jan 18th 2014
  • Fixed a issue where users could see the PM's even if they did not have permissions, and no I am not going to tell you how they could have, for obvious reasons. :)
  • Added a option to rename the error log, so you can keep it out of prying eyes.
-------------------------------------------------------------------------------------------

Note: Please do not fill this thread up with opnions on if this mod is moral, should be made, or any other hate it type stuff. If you don't like it, don't use it, it's that simple. I really don't care if you don't like it, so you telling me this has no merit. This is a thread to help those out who use the mod, not a discussion on why you feel it is a bad or un-necessary mod.

ozzy47 09 Nov 2013 04:29

Reserved.

DemOnstar 09 Nov 2013 07:07

Downloaded and tagged for now...

Seems you are on a roll OzzModz.. Wish you all the success you deserve..:up:

joeychgo 09 Nov 2013 09:12

1 Attachment(s)
Looks good. I noticed one thing - the link in the Quick Links dropdown isn't formed correctly.

Judith2 09 Nov 2013 10:47

1 Attachment(s)
I get this

ozzy47 09 Nov 2013 11:23

Quote:

Originally Posted by joeychgo (Post 2459356)
Looks good. I noticed one thing - the link in the Quick Links dropdown isn't formed correctly.

That's strange, what does it show in the Navigation Manager, under Forums / Quick Links for the link?

ozzy47 09 Nov 2013 11:23

Quote:

Originally Posted by Judith2 (Post 2459363)
I get this

What page is that showing up on? What version of PHP and vBulletin are you running?

joeychgo 09 Nov 2013 12:27

Quote:

Originally Posted by ozzy47 (Post 2459384)
That's strange, what does it show in the Navigation Manager, under Forums / Quick Links for the link?

Same - just as its showing there.

joeychgo 09 Nov 2013 12:30

A few suggestions for future -- search by sent TO instead of only from, also search of the messages themselves for keywords.

Overall, I like it.

ozzy47 09 Nov 2013 12:30

I don't know why it would do that, for now you can just change the title of that link to Pm Spy or what ever you wish. Let me know if that solves it.

joeychgo 09 Nov 2013 12:35

Quote:

Originally Posted by ozzy47 (Post 2459394)
I don't know why it would do that, for now you can just change the title of that link to Pm Spy or what ever you wish. Let me know if that solves it.

Yup - it did. I figured it would. Just letting you know so you can deal with it if you see fit.

ozzy47 09 Nov 2013 12:36

I checked the XML and it was missing the text for the link, I have patched the product to fix it. :)

Why it was not included when I added the link is beyond be.

joeychgo 09 Nov 2013 12:38

well, important thing is that you caught it early and fixed it. :)

joeychgo 09 Nov 2013 12:42

Is anyone able to actually read the pms? I cant get them to open for me.

ozzy47 09 Nov 2013 12:44

If I remember correctly, it is only showing on hover, they never opened fully.

joeychgo 09 Nov 2013 12:48

Ah, gotcha... Ok, it works that way. I thought they opened. I also found out that the "title" search, searches the body of the text also.

ozzy47 09 Nov 2013 12:49

Ok I will check out the Title search as soon as I get a chance. :)

joeychgo 09 Nov 2013 12:52

1 Attachment(s)
There is a problem with pagination also...
See the screenshot. It should be showing 15 results but only showing 4.


(sorry, don't mean to be a post) :)

ozzy47 09 Nov 2013 12:56

Are you sure there is more than 4 PM's with joey in the title?

joeychgo 09 Nov 2013 13:00

Look at the search results number on the screenshot.

Also, as I said above, title searches the body also. 'joey' isn't in any of those titles

ozzy47 09 Nov 2013 13:03

Ok cool, I will check that out as well as the other issues, thanks for reporting.

Judith2 09 Nov 2013 13:42

Quote:

Originally Posted by ozzy47 (Post 2459385)
What page is that showing up on? What version of PHP and vBulletin are you running?

On Forums! I run vbulletin 4.2.1 and PHP 5.2.6



By the way I have the same Problem like joeychgo

http://www.vbulletin.org/forum/attac...1&d=1383991938

Can everyone see it, or only admins??

ozzy47 09 Nov 2013 13:56

Ok I'll check out the errors, for the link, you can fix it in the Navigation Manager. Only users in the groups you set in the options will be able to see / use the link.

joeychgo 09 Nov 2013 13:57

You set the usergroup permissions in the ACP> Settings --> Options --> PM Spy

Mariner1 09 Nov 2013 16:21

How do i fix the link in Navigation Manger pls,theres nothing there regarding pm spy

ozzy47 09 Nov 2013 17:39

Edit the link in the Navigation Manager and change the title to PM Spy,you probably got the mod before I corrected the product XML.

ozzy47 09 Nov 2013 17:47

Quote:

Originally Posted by Judith2 (Post 2459424)
On Forums! I run vbulletin 4.2.1 and PHP 5.2.6



By the way I have the same Problem like joeychgo

http://www.vbulletin.org/forum/attac...1&d=1383991938

Can everyone see it, or only admins??

Can you PM me with a full Admin account, I am unable to replicate the errors you posted in post #5, I can try and debug it on your site since it is happening there.

ozzy47 09 Nov 2013 18:03

Quote:

Originally Posted by joeychgo (Post 2459417)
Look at the search results number on the screenshot.

Also, as I said above, title searches the body also. 'joey' isn't in any of those titles

Weird, I am unable to replicate the pagination issue, no matter what I select it shows the proper amount of listings.

Looking at the search issue, it seems it is supposed to search the title and message, you would think not though as the search input box is below the title, so maybe in a updated version, I could change the title heading to Title / Message

Mariner1 09 Nov 2013 18:29

Ok ive redownloaded and reinstalled it,still nothing in navigation manager im afraid

ozzy47 09 Nov 2013 18:31

Quote:

Originally Posted by Mariner1 (Post 2459472)
Ok ive redownloaded and reinstalled it,still nothing in navigation manager im afraid

Can you PM me a admin account, and a link to your site, and I will see what is going on with it.

K4GAP 09 Nov 2013 18:46

Tagged and waiting to download after a few more days of letting others pick out any problems. :0

ozzy47 09 Nov 2013 18:48

Yeah I am trying to figure it all out, as I am not able to replicate any of the issues, other than the Quick Links link, which should be sorted.

K4GAP 09 Nov 2013 18:55

I can give you admin access on my test forum if you need? Let me know and I'll pm you the access info.

ozzy47 09 Nov 2013 18:56

Are you having any of the reported issues on your test forum? If so which ones?

K4GAP 09 Nov 2013 19:01

I have not installed on my test forum but can if you wish.

ozzy47 09 Nov 2013 19:16

Sure, please do and then see if you get any of the errors that have been reported.

K4GAP 09 Nov 2013 19:18

Installed with all settings left on default. The only problem, when setting cmod to 0666, it will only reset to 0766 no matter what I do. That was using my ftp program "FireFTP". I'll look in my server cpanel and try to cmod there.

ozzy47 09 Nov 2013 19:20

Hmmm, I never used FireFTP, I have always used FileZilla.

ozzy47 09 Nov 2013 19:25

Yeah I don't see any of the reported issues showing on your test site GaryT, thanks for trying though. :)

K4GAP 09 Nov 2013 19:26

Quote:

Originally Posted by ozzy47 (Post 2459508)
Hmmm, I never used FireFTP, I have always used FileZilla.

Was successful in server cpanel. Now set to 0666.
First time I ever had trouble setting a cmod with FireFTP.

Anyway, everything is good to go now.

K4GAP 09 Nov 2013 19:31

Quote:

Originally Posted by ozzy47 (Post 2459511)
Yeah I don't see any of the reported issues showing on your test site GaryT, thanks for trying though. :)

No problem.

ozzy47 09 Nov 2013 19:33

I do see one issue now, there should be three pm's in the list, but I only see one showing, I'll give it a bit and see if it is a cache issue.

Judith2 09 Nov 2013 23:39

Quote:

Originally Posted by ozzy47 (Post 2459460)
Can you PM me with a full Admin account, I am unable to replicate the errors you posted in post #5, I can try and debug it on your site since it is happening there.


You have a PM! :)

ozzy47 09 Nov 2013 23:41

I replied Judith2 :)

ozzy47 10 Nov 2013 00:26

v1.1.1 Fixed the error, Warning: Invalid argument supplied for foreach() in [path]\christeris\datagrid\includes\pmspy_functions.php (Line 19)
and the count issues joeychgo reported.

Judith2 and joeychgo please upgrade, and it should fix the current issues. GaryT no need to upgrade, I took care of it on your test site. :)

Judith2 10 Nov 2013 00:48

Thanks a lot ozzy

ozzy47 10 Nov 2013 00:53

Did the errors that you were getting go away?

DemOnstar 10 Nov 2013 04:53

1 Attachment(s)
Installed with only 2 issues...

Issue 1.

Even though I have my own customized style, the mod itself ignores the style and reverts to vBulletin default style..

Issue 2.

http://www.vbulletin.org/forum/attac...1&d=1384062755

The links circled above don't work for me...

All else appears to be in good order..

ozzy47 10 Nov 2013 05:00

Both issues are working as expected. The first one is due to the page having its own CSS. The second issue, the title is not a true link, if you hover on it, it shows the message.

For the first issue, I will see about making it so it uses the styles customizations, but I don't know if it feasible yet.

DemOnstar 10 Nov 2013 05:11

Ha ha, right you are...
Didn't see the hover at first....Only issue with that is that some posts contain links and when we leave the hover, we leave the links behind also..

Installed regardless of css issues...:up:

Judith2 10 Nov 2013 09:37

Quote:

Originally Posted by ozzy47 (Post 2459574)
Did the errors that you were getting go away?


Yes, the errors go away!!!! :-) Thanks!

ozzy47 10 Nov 2013 10:23

Excellent, thanks for reporting back. :)

bosanci28 11 Nov 2013 05:05

Hmmm,this is really nice one! Now is it possible to hide this from everyone ,including the users that i give them access as admin? ,and to have only access the real admin account !? can this be achived? Thank you!...

ozzy47 11 Nov 2013 10:48

No, as of right now if they are in the admin group, and you give admins the permission to use this they will be able to see it.

ozzy47 11 Nov 2013 13:15

New Version Available!

v1.2.0
Now you can have it so only users that are set to superadministrators in includes/config.php will be able to use the system, no matter which usergroups you have set to be able to use it. This means, if you leave the setting, Usergroups Allowed To Use PM Spy empty, only superadministrators will be able to use the mod.

bosanci28 11 Nov 2013 14:52

1 Attachment(s)
Quote:

Originally Posted by ozzy47 (Post 2459900)
No, as of right now if they are in the admin group, and you give admins the permission to use this they will be able to see it.

I see... it was nice at least if we can move that "pm spy" from the tab to a secret location so no one can find it,and only the main admin to know.

Also i notice that "to users" the user name dont show...hmmm

ozzy47 11 Nov 2013 14:56

Was it showing before you updated to the latest version?

ozzy47 11 Nov 2013 14:59

I see it happening on my site too, stand by.

bosanci28 11 Nov 2013 15:10

Quote:

Originally Posted by ozzy47 (Post 2459936)
Was it showing before you updated to the latest version?

Hmm,don't remember,forgot ! short on memory today...

Will stand by!...

Thank you.

ozzy47 14 Nov 2013 02:57

I am still working on this issue guys & gals, don't think I have forgot about it.

Nirjonadda 14 Nov 2013 16:24

Please can you add this Features for [DBTech] vBSuper PM's?

ozzy47 14 Nov 2013 16:26

Nope, I can not, according to the agreement I signed into, I am not allowed to do so, sorry. :(

Nirjonadda 14 Nov 2013 16:32

Have your any plan to new Features update for [DBTech] vBSuper PM's?

ozzy47 14 Nov 2013 16:33

Not at this time, and this in not the place to ask that, you know the proper procedures. :)

Nirjonadda 14 Nov 2013 16:36

Quote:

Originally Posted by ozzy47 (Post 2460681)
Nope, I can not, according to the agreement I signed into, I am not allowed to do so, sorry. :(

Why you are not Rewrite your own code for doing this Features?

ozzy47 14 Nov 2013 16:39

I was given the opportunity to take this mod over, as long as I did not release any of it under DBTech. So I can't, if I had said No, another developer may have picked up the mod, and you would be in the same situation. :)

ozzy47 15 Nov 2013 21:09

Good news people, I have the issues sorted, and should have a release tonight or tomorrow. I an just changing a couple of things, and adding something new before releasing. :)

ozzy47 16 Nov 2013 10:42

New Version Available. :)

v1.3.0
  • Finally fixed the To Users column to show properly.
  • Added the ability to filter the results by To Users.
  • Added a new page, that you can view PM's that you had marked as read, before you were only able to view PM's you did not read.
  • Added ability to mark PM's that you already read, as unread.

bosanci28 16 Nov 2013 13:44

So to update to the latest, just upload the files to root and upload the xml file and override and thats it? or need to re-configure something? thanks.

ozzy47 16 Nov 2013 14:04

Nope, that's it. :)

Nirjonadda 16 Nov 2013 16:10

I have Installed and get error page, Is this error happening on your site?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ozzy47 16 Nov 2013 16:15

Where are you seeing that error?

Nirjonadda 16 Nov 2013 16:24

On the top page above forum logo , when go to pmspy_read.php and pmspy.php.

ozzy47 16 Nov 2013 16:27

Are you using mysql or mysqli?

Nirjonadda 16 Nov 2013 16:36

I think using mysql but does not know how to check?
Server Type : Linux
Web Server : Apache
PHP : 5.4.20
MySQL Version : 5.1.70-cll

ozzy47 16 Nov 2013 16:38

Check in your config.php file.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Nirjonadda 16 Nov 2013 16:47

Yes i am using mysqli. This config.php file get vB 4.2.2 File upload but before i am using mysql.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ozzy47 16 Nov 2013 17:06

Ok lets try this, upload this file to, christeris/datagrid/class and let me know if that fixes it.

Nirjonadda 16 Nov 2013 17:13

No,does not fixed now error line is


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ozzy47 16 Nov 2013 17:25

Ok at least those are different lines, try one more time, upload this file to, christeris/datagrid/class and let me know if that fixes it.

Nirjonadda 16 Nov 2013 17:28

Not fixed.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ozzy47 16 Nov 2013 17:37

Grief, try one more time.

Nirjonadda 16 Nov 2013 17:42

Now 408 and 410 line.

ozzy47 16 Nov 2013 17:51

Once again.

Nirjonadda 16 Nov 2013 17:56

Now 411 and 413 , please can you try using mysqli for Resolved this issue for mysqli user?

ozzy47 16 Nov 2013 18:03

No I can not change at this time. Lets try this approach, Instead of me trying a conditional, I changed the mysql call to mysqli so try this file.

Nirjonadda 16 Nov 2013 18:06


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ozzy47 16 Nov 2013 18:09

I do not know then, maybe at some point I will be able to sort it, but it seems not at this point. It is a third party script, so working with it is rather difficult. :(

Nirjonadda 16 Nov 2013 18:13

So i cannot using this mod, Can i go to Uninstall or waiting for you fixing?

ozzy47 16 Nov 2013 18:15

For now I would un-install or just disable it, as I have no idea how to solve it. Everything I tried failed. :(

Judith2 16 Nov 2013 21:59

1 Attachment(s)
Well, I have the error line also again

ozzy47 16 Nov 2013 22:07

Quote:

Originally Posted by Judith2 (Post 2461241)
Well, I have the error line also again

Can you send me a admin account and ftp info?

Judith2 16 Nov 2013 22:32

I send a PM, it's now the same like last time!

ozzy47 16 Nov 2013 22:42

I replied. :)

ozzy47 16 Nov 2013 23:56

Sorted on Judith2's site, and the zip has been updated to reflect the changes.

Judith2 17 Nov 2013 00:08

Thanks for the help ozzy

ozzy47 17 Nov 2013 00:10

Not a problem, thanks for the access so I could troubleshoot it. :)

Nirjonadda 17 Nov 2013 11:14

Does this Mod compatibility with PHP 5.5.x ?

ozzy47 17 Nov 2013 11:21

It should, only issue I know of is the mysqli issue you had. :)

madness85 24 Nov 2013 10:37

Quote:

Originally Posted by ozzy47 (Post 2461393)
It should, only issue I know of is the mysqli issue you had. :)

Hi ozzy the sent to section is blank for me no usernames


All times are GMT. The time now is 21:24.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.