[3.3][BETA] Private Message Search

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

[3.3][BETA] Private Message Search

Post by NeoDev »

Extension Name
PM Search

Extension Description
Enables users to perform private message searching using Sphinx (Manticore) search engine or MySQL full text

Extension Version
0.4.0 Beta

Requirements
phpBB 3.3.0+ (3.2 versions may work, untested)
Sphinx 2.1+ or MySQL 5.7+

Features
  • Search by keyword
  • Search by users
  • Search within subject line or message text
  • Search within folders
  • Real time updates
Screenshots
sample1.png

GitHub
Neo-CTC/pm-search

Extension Download
pmsearch_0.4.0-beta.zip

Installation
  1. Download extension to root/ext/ directory
  2. Unzip file
  3. Enable extension ACP -> Customise -> Extension Management
  4. Adjust settings ACP -> Extensions -> PM Search -> Settings
  5. Create the index for the active backend ACP -> Extensions -> PM Search -> Status
You do not have the required permissions to view the files attached to this post.
Last edited by NeoDev on Tue Sep 19, 2023 2:13 am, edited 7 times in total.
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by NeoDev »

Updated extension to include recipient (aka sent to) searching.

v0.2.0a
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2533
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by P_I »

Are you aware of the previous efforts in viewtopic.php?f=501&t=2263011?

Is Sphinx a requirement or will this extension support MySQL Fulltext and phpBB Native Fulltext backends?

I ask because for those running phpBB on shared hosting plans the Sphinx backend often isn't available based on my limited investigation.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by NeoDev »

Yes I've seen that extension. This one's similar but with more features.

At the moment only Sphinx is support as it is what I'm most familiar with. Once the feature set is stable, I'll be able to start adapting the code for other backends.
Come for the comics, stay for the bad fish puns.
— The Cross Time Cafe
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2533
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by P_I »

NeoDev wrote: Tue Oct 26, 2021 2:39 pm At the moment only Sphinx is support as it is what I'm most familiar with. Once the feature set is stable, I'll be able to start adapting the code for other backends.
Thanks. This functionality is notably absent from phpBB core code so I'm interested in your efforts, particularly once the other backends are supported.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
igorbond
Registered User
Posts: 138
Joined: Sun Mar 24, 2013 5:54 pm

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by igorbond »

Code: Select all

Fatal error: Uncaught OutOfBoundsException: Package "ocramius/proxy-manager" is not installed in /var/www/southklad/data/www/southklad.ru/forum/ext/crosstimecafe/pmsearch/vendor/composer/InstalledVersions.php:188 Stack trace: #0 /var/www/southklad/data/www/southklad.ru/forum/vendor/composer/package-versions-deprecated/src/PackageVersions/Versions.php(112): Composer\InstalledVersions::getPrettyVersion('ocramius/proxy-...') #1 /var/www/southklad/data/www/southklad.ru/forum/vendor/ocramius/proxy-manager/src/ProxyManager/Version.php(52): PackageVersions\Versions::getVersion('ocramius/proxy-...') #2 /var/www/southklad/data/www/southklad.ru/forum/vendor/ocramius/proxy-manager/src/ProxyManager/Factory/AbstractBaseFactory.php(80): ProxyManager\Version::getVersion() #3 /var/www/southklad/data/www/southklad.ru/forum/vendor/ocramius/proxy-manager/src/ProxyManager/Factory/LazyLoadingValueHolderFactory.php(45): ProxyManager\Factory\AbstractBaseFactory->generateProxy('phpbb\\template\\...', Array) #4 /var/www/southklad/data/www/southkl in /var/www/southklad/data/www/southklad.ru/forum/ext/crosstimecafe/pmsearch/vendor/composer/InstalledVersions.php on line 188
Error 1: Uncaught OutOfBoundsException: Package "ocramius/proxy-manager" is not installed in /var/www/southklad/data/www/southklad.ru/forum/ext/crosstimecafe/pmsearch/vendor/composer/InstalledVersions.php:188 Stack trace: #0 /var/www/southklad/data/www/southklad.ru/forum/vendor/composer/package-versions-deprecated/src/PackageVersions/Versions.php(112): Composer\InstalledVersions::getPrettyVersion('ocramius/proxy-...') #1 /var/www/southklad/data/www/southklad.ru/forum/vendor/ocramius/proxy-manager/src/ProxyManager/Version.php(52): PackageVersions\Versions::getVersion('ocramius/proxy-...') #2 /var/www/southklad/data/www/southklad.ru/forum/vendor/ocramius/proxy-manager/src/ProxyManager/Factory/AbstractBaseFactory.php(80): ProxyManager\Version::getVersion() #3 /var/www/southklad/data/www/southklad.ru/forum/vendor/ocramius/proxy-manager/src/ProxyManager/Factory/LazyLoadingValueHolderFactory.php(45): ProxyManager\Factory\AbstractBaseFactory->generateProxy('phpbb\\template\\...', Array) #4 /var/www/southklad/data/www/southkl at file /var/www/southklad/data/www/southklad.ru/forum/ext/crosstimecafe/pmsearch/vendor/composer/InstalledVersions.php line 188
Image
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by NeoDev »

I do not know why you are receiving that error. The error does not occur when installing the extension on a fresh install of phpBB 3.3.5. Furthermore, this extension does not use the "ocramius/proxy-manager" package, nor are those words found inside any file of the extension. Most likely it is a problem with your install of phpBB, ask again in the support forums.
Come for the comics, stay for the bad fish puns.
— The Cross Time Cafe
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by NeoDev »

Updated to version 0.3a.

Added support for searching using MySQL.
Come for the comics, stay for the bad fish puns.
— The Cross Time Cafe
Midway
Registered User
Posts: 76
Joined: Tue Dec 09, 2014 8:02 pm

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by Midway »

Hi,

when I do a search in my private messages I get this error

Code: Select all

SQL ERROR [ mysqli ]

Can't find FULLTEXT index matching the column list [1191]

SQL

SELECT SQL_CALC_FOUND_ROWS p.msg_id id FROM phpbb_privmsgs p JOIN phpbb_privmsgs_to t ON p.msg_id = t.msg_id WHERE t.user_id = 2 AND MATCH(message_text,message_subject) AGAINST('+blah' IN BOOLEAN MODE) AND p.author_id = 2 AND MATCH(p.to_address) AGAINST("u_2") AND t.folder_id in (0) GROUP BY p.msg_id ORDER BY message_time DESC LIMIT 0,10

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 345
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/ext/crosstimecafe/pmsearch/controller/ucp_controller.php
LINE: 355
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/ext/crosstimecafe/pmsearch/ucp/main_module.php
LINE: 60
CALL: crosstimecafe\pmsearch\controller\ucp_controller->display_messages()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: crosstimecafe\pmsearch\ucp\main_module->main()

FILE: [ROOT]/ucp.php
LINE: 440
CALL: p_master->load_active()
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by NeoDev »

You need to create the indexes or you started the creation process but it did not finish. Go to the Extensions panel > PM Search > Status. Under MySQL it should give the status as either Index missing or Index incomplete. Keep hitting the Rebuild search index button until it says it finished.
Come for the comics, stay for the bad fish puns.
— The Cross Time Cafe
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by 3Di »

Just a note,
The SQL_CALC_FOUND_ROWS query modifier and accompanying FOUND_ROWS() function are deprecated as of MySQL 8.0.17.
https://dev.mysql.com/doc/refman/8.0/en ... found-rows
Oh, btw.. are you the same kevinwalter as of viewtopic.php?p=15779661#p15779661 ?
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
[Dimetrodon]
Registered User
Posts: 494
Joined: Tue Aug 30, 2022 3:29 am
Location: Paleozoic Era

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by [Dimetrodon] »

On my test bench, I get an AJAX error service unavailable when trying to build a MySQL index.
Avatar by Phoenix-of-Starlight.
User avatar
NeoDev
Registered User
Posts: 25
Joined: Mon Oct 18, 2021 9:52 pm
Name: Neo

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by NeoDev »

It's some problem with the MySQL side of extension sending an error at same time as the AJAX request. Might be related to phpbb debugging if enabled. The MySQL functionality is less tested than the Sphinx search functions. I'll need to revisit the MySQL functions.
Come for the comics, stay for the bad fish puns.
— The Cross Time Cafe
isay
Registered User
Posts: 1
Joined: Fri May 26, 2023 7:04 am

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by isay »

Dear Neo,
Thank you for your work. The following error in all my searches:

Code: Select all

Problem connecting to search engine
Image

Any help?
Best regards.

phpBB: v3.3.8
MySQL: v5.7.23
Theme: Prosilver
Another Extension: None
User avatar
[Dimetrodon]
Registered User
Posts: 494
Joined: Tue Aug 30, 2022 3:29 am
Location: Paleozoic Era

Re: [3.3][ALPHA] Private message searching using Sphinx

Post by [Dimetrodon] »

Hey isay,

I do not think you should be using this on a live board, especially since this is in [Alpha]. It's in its very early stages.
Avatar by Phoenix-of-Starlight.

Return to “Extensions in Development”