vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Private Messages Enhancements - [OzzModz] PM Spy (https://vborg.vbsupport.ru/showthread.php?t=304325)

ozzy47 11-08-2013 11:00 PM

[OzzModz] PM Spy
 
Another mod brought to you by,
https://vborg.vbsupport.ru/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://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/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 11-09-2013 04:29 AM

Reserved.

DemOnstar 11-09-2013 07:07 AM

Downloaded and tagged for now...

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

joeychgo 11-09-2013 09:12 AM

Looks good. I noticed one thing - the link in the Quick Links dropdown isn't formed correctly.

Judith2 11-09-2013 10:47 AM

I get this

ozzy47 11-09-2013 11:23 AM

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 11-09-2013 11:23 AM

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 11-09-2013 12:27 PM

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 11-09-2013 12:30 PM

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 11-09-2013 12:30 PM

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 11-09-2013 12:35 PM

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 11-09-2013 12:36 PM

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 11-09-2013 12:38 PM

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

joeychgo 11-09-2013 12:42 PM

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

ozzy47 11-09-2013 12:44 PM

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

joeychgo 11-09-2013 12:48 PM

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 11-09-2013 12:49 PM

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

joeychgo 11-09-2013 12:52 PM

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 11-09-2013 12:56 PM

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

joeychgo 11-09-2013 01:00 PM

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 11-09-2013 01:03 PM

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

Judith2 11-09-2013 01:42 PM

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

https://vborg.vbsupport.ru/attachmen...1&d=1383991938

Can everyone see it, or only admins??

ozzy47 11-09-2013 01:56 PM

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 11-09-2013 01:57 PM

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

Mariner1 11-09-2013 04:21 PM

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

ozzy47 11-09-2013 05:39 PM

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 11-09-2013 05:47 PM

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

https://vborg.vbsupport.ru/attachmen...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 11-09-2013 06:03 PM

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 11-09-2013 06:29 PM

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

ozzy47 11-09-2013 06:31 PM

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 11-09-2013 06:46 PM

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

ozzy47 11-09-2013 06:48 PM

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 11-09-2013 06:55 PM

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 11-09-2013 06:56 PM

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

K4GAP 11-09-2013 07:01 PM

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

ozzy47 11-09-2013 07:16 PM

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

K4GAP 11-09-2013 07:18 PM

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 11-09-2013 07:20 PM

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

ozzy47 11-09-2013 07:25 PM

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

K4GAP 11-09-2013 07:26 PM

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.


All times are GMT. The time now is 10:28 PM.

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.01501 seconds
  • Memory Usage 1,828KB
  • 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
  • (9)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
  • (40)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