Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Private Messages & Email Log Details »»
Private Messages & Email Log
Version: 3.1, by Vitaly Vitaly is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.x Rating:
Released: 06-24-2010 Last Update: 03-20-2011 Installs: 199
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files  
No support by the author.

Port of vb.3.8 version

Features:
  1. Log all PM and Emails, sent via forum forms.
  2. Keep logs in separate table with automatic rotation of old records.
  3. Add new menu items in topics and profiles for fast access.
  4. Have nice dynamic menus in search results for cross-searches
  5. Managed access for administrators (except superadmins)
How to install
  1. Upload files to your server
  2. Import product xml
  3. Go to ACP
  4. Select required settings in ?Vbulletin options → Private Message Log?
  5. Set access ?Can view PM logs? to necessary members in ?Usergroups → Administator Permissions?. Super administrators can be skipped.
Notes:

This mod uses full scan for text searches, that can affect SQL-server load at really big boards. Fulltext indexes are not used intentionally, because whose can't produce sharp results and not compatible with innodb. I suppose, that if you really need this mod, you know exactly, what are you doing and what are you going to search. In my practice, ONLY exact matches were useful.

One of tradeoff to reduce SQL-server load ? make log size shorter (1-2 months instead of 6). When vB 4.0 provides refactored search framework, search method can be rewritten.

If you install this mod on your server, i recommend to clarify forum rules, and add text, that your project doesn't provide the ways of confidential communication ? only public and non public.

This mod is developped here http://github.com/rcdesign/vb-pm_log . Patches are welcome.

history

3.1
- fixed specialchars in SQL search request. Thanks to mplode

3.0
- refactoring + some fixes
- separate fields for nick & text in search form

2.5
- ported to vb4
...

2.2
- Redesigned database to improve search/paging in some cases
- Should fix conflicts with other mods, that where reported in this threads
- Sources repo is now @ github

... (not public)

1.9
- Ups... another broken link (from message list to user profiles)
- Fixed access for non superadmins, who had "Read PM Log" privilegies.

1.8
- fixed broken link in ACP popup menu
- workaround to show smiles and bbcodes

1.7
- fixed some sql-error

1.6
- first public release

Download Now

File Type: zip vb-pm_log-2.5.zip (12.0 KB, 446 views)
File Type: zip vb-pm_log-3.0.zip (11.5 KB, 210 views)
File Type: zip vb-pm_log-3.1.zip (11.6 KB, 810 views)

Screenshots

File Type: gif pm_admin.gif (23.2 KB, 0 views)
File Type: gif pm_admin2.gif (24.5 KB, 0 views)
File Type: png pm_menu1.png (22.2 KB, 0 views)
File Type: png pm_menu2.png (38.1 KB, 0 views)
File Type: gif pm_perm.gif (7.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
santor

Comments
  #22  
Old 08-27-2010, 05:44 PM
ppatil007 ppatil007 is offline
 
Join Date: Nov 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vitaly View Post
I think, you have not uploaded file from new mod version. Current file has only 248 strings, and can't generate such error.
I have downloaded "vb-pm_log-2.5.zip (12.0 KB, 148 downloads)"

and tried doing the entire process 4 times i still get same issue

when i do search with user name nothing happens and when i do it for text i get

Warning: Invalid argument supplied for foreach() in [path]/admincp/rcd_pm_log.php on line 312

i think i have used the current version , probably sothing wrong with your code or you may have put the wrong file by mistake
Reply With Quote
  #23  
Old 08-29-2010, 10:55 AM
baggo baggo is offline
 
Join Date: Jan 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I experienced the same error when searching for a blank entry in the text option. However, after sending a test PM and searching again the error stops and the PM show up. I'm assuming the mod only records PM's made AFTER the install? Seems to be working fine for me if so.
Reply With Quote
  #24  
Old 08-29-2010, 11:08 AM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ppatil007: Have you given permission for admin to read PMs, as described in installation steps?

baggo: Yes, it logs pms, sent after installation. In separate table. That guarantees, that logs are intact even if members clear their mailboxes. I had no chance to test it with completely clear log. Will check it later, since bug is not critical. Thank you for report.
Reply With Quote
  #25  
Old 08-29-2010, 03:41 PM
sapphiremagus sapphiremagus is offline
 
Join Date: Sep 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working for me - the error is likely that no one had sent PMs after the install, heh. Once PMs started to be sent, it worked fine. Marking installed, thanks
Reply With Quote
  #26  
Old 08-31-2010, 07:04 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this, copied all the files over and installed with the xbl plugin. I get this on a text search:
Warning: Invalid argument supplied for foreach() in [path]/admincp/rcd_pm_log.php on line 312

And on a user search nothing shows up. Like none of my users have private messages. I know I do and I tried it, still nothing.

I also don't understand the last step. I can't find where you give people permission to see the log pm's.

BTW I have 4.0.5 if that matters.

EDIT: I found the set access part and it only says yes or no for Admins. I set myself to yes and when I search still nothing shows up.
Reply With Quote
  #27  
Old 09-01-2010, 05:34 AM
sapphiremagus sapphiremagus is offline
 
Join Date: Sep 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pportuese View Post
Just installed this, copied all the files over and installed with the xbl plugin. I get this on a text search:
Warning: Invalid argument supplied for foreach() in [path]/admincp/rcd_pm_log.php on line 312

And on a user search nothing shows up. Like none of my users have private messages. I know I do and I tried it, still nothing.

I also don't understand the last step. I can't find where you give people permission to see the log pm's.

BTW I have 4.0.5 if that matters.


EDIT: I found the set access part and it only says yes or no for Admins. I set myself to yes and when I search still nothing shows up.
This looks similar to the issues I was having. The problem is that the log doesn't work retroactively - only PMs sent after the install are logged. Once my users started PMing the error went away and there were logs to go through.

The error itself gives a clue - foreach is a loop. It's trying to loop through all the logs but isn't finding any (and probably is getting a null reference, hence the error instead of dying gracefully).
Reply With Quote
  #28  
Old 09-01-2010, 12:58 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sapphiremagus View Post
This looks similar to the issues I was having. The problem is that the log doesn't work retroactively - only PMs sent after the install are logged.
That explains a lot right there. Is there anyway to make it go back and get the rest of the PM's?

And can you only see these if they are in the users inbox? I don't want to save lots of copies of PM's and waste diskspace that could be used elsewhere.
Thanks!!!
Reply With Quote
  #29  
Old 10-17-2010, 05:41 PM
Matt51723 Matt51723 is offline
 
Join Date: Jul 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problems with errors on my site, however I've added permission for myself to use this feature in admin permissions , but when i go to PM Logs, nothing shows up.
Reply With Quote
  #30  
Old 10-20-2010, 02:19 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed it but do not see Private Message Log under settings > Options...

On vBulletin 4.07.

PM log however is shown under users.
Reply With Quote
  #31  
Old 10-20-2010, 03:03 PM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... no ideas, really. I'll publish refactored code in 1-2 weeks. Let's wait a bit
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 05: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.08080 seconds
  • Memory Usage 2,343KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete