View Full Version : Private Messages Enhancements - User PM Search
Thaliada
06-12-2007, 10:00 PM
Description:
This modification allows your users to search thru their pms
Installation:
All the installation information is in the package.
Changes/Adds:
7 Plugins
19 Phrases
1 Template
1 Template change
Changelog
2.0
Rewrote some parts and included (hopefully) all feature requests
- Search is now on a single page
- Usergroup permission added
- (Little to) no template changes necessary
- Should hopefully work with other pm addons like pm preview etc without additional template changes (not tested)
1.0.2
Fixed a template bug, thx Makc666
Change
$vbphrase[search_results_in_folder]<span class="normal">: <span id="nav_pmfolders.messagelist">$foldername<script type="text/javascript"> vbmenu_register("nav_pmfolders.messagelist"); </script></span></span>
to
$vbphrase[search_results_in_folder]<span class="normal">: $foldername</span>
1.0.1
Fixed some minor problems
Hornstar
06-13-2007, 12:46 PM
Actually this is something that I had thought of only last night ^^
and now here it is! awesome :)
Muellmann
06-13-2007, 02:28 PM
:up: :up: :up: Absolutely awesome! I searched for such mod a long time. Some staffmembers have so many pm that it's very handy to be able to search through them.
Should be a vb default feature. Thanks very much. ;)
Lizard King
06-13-2007, 02:39 PM
Perfect Modification
MThornback
06-13-2007, 02:59 PM
Great work :D
woww excellent! very nice
MThornback
06-13-2007, 03:07 PM
Question...do you plan on adding usergroup settings?
AzzidReign
06-13-2007, 03:10 PM
Wow! You are amazing! I LOVE YOU! lol I get TONS of PM's at my sites and some of them I just leave in my inbox knowing I have to go back and read them...but then it gets buried 8 pages back...and I have a hard time finding them again.
I've thought that this should be a vb default option for quite some time now! Good work!
i just wanted this like 5 minutes ago :) thanks!
apdcanari
06-13-2007, 05:30 PM
Good hack !
3.5 please ? :rolleyes:
hcmagix
06-13-2007, 07:32 PM
fine hack, its working BUT I get warnings after results.
Warnung: in_array() [function.in-array]: Wrong datatype for second argument in /private.php(206) : eval()'d code (Zeile 359)
Warnung: in_array() [function.in-array]: Wrong datatype for second argument in /private.php(206) : eval()'d code (Zeile 359)
Warnung: in_array() [function.in-array]: Wrong datatype for second argument in /private.php(206) : eval()'d code (Zeile 359) search by keyword
an
Warnung: Invalid argument supplied for foreach() in /private.php(206) : eval()'d code (Zeile 340)
search by username
can u fix it?
Thaliada
06-13-2007, 07:42 PM
I've uploaded a fixed version, forgotten to turn warnings on
Question...do you plan on adding usergroup settings?
Added it to my ToDo list
hcmagix
06-13-2007, 07:48 PM
thx works fine
installed
cheat-master30
06-13-2007, 08:04 PM
This is absolutely incredible as a modification. Seems to work extremely well, and best of all, it has the same helpful Javascript functions as other searches, such as suggesting names. Downloaded, using and rated 5/5.
Ramsesx
06-14-2007, 01:28 AM
Great, now I can search my over 3000 pm's.
jderouen
06-14-2007, 04:26 AM
Excellent!! Clicked installed, rated 5 stars!
SuperTaz
06-14-2007, 04:31 AM
Everything is fine except for your readme file in the zip. It is bunched together and could hardly understand it till I sorted it all out...lol Other than that it is fine.
jderouen
06-14-2007, 04:34 AM
One thing - it apparently doesn't like the word "wonder." I was just testing it, searching through PMs, and even though I had a PM that listed "wonder woman" both in the title and in the body, it wouldn't find it. Found "woman" when I searched for that, but when I searched for "wonder" it told me: Please specify some words or valid user names to search on. There were no matches for those that you specified.
Simms
06-14-2007, 04:44 AM
Thank you!
I have been waiting/wishing for this for more than a year.
Simply awesome ... installed and working!
4x4 Mecca
06-14-2007, 05:17 AM
in my search box on the page, this text is in there by default.
"SELECT id, link FROM #__menu WHERE menutype = 'mainmenu' AND published = 1 ORDER BY parent, ordering"
I deleted it, searched for the word "please" and when the results came back, I clicked on one, and the word please as not in the PM... I don't have any ideas why.
I'm on 3.6.4 of that matters.
testebr
06-14-2007, 05:39 AM
I love you with all my power!
The amazing mod! I want this resource by default in vbulletin next build.
Please send suggestion to Jelsoft team.
sross
06-14-2007, 05:53 AM
got an error in 3.6.4 so guess i need to upgradet to 3.6.7 to ue it
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=8
AND pm.folderid= AND MATCH(pmtext.title, pmtext.message) AGAINST ('+joey' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND MATCH(pmtext.title, pmtext.message) AGAINST ('+joey' IN BOOLEAN MODE)
' at line 7
Error Number : 1064
Date : Thursday, June 14th 2007 @ 01:45:38 AM
Script : http://www.mysite.org/forums/private.php?folderid=0
Referrer : http://www.mysite.org/forums/private.php
IP Address : 121.72.6.223
Username : Me
Classname : vb_database
Thaliada
06-14-2007, 06:19 AM
in my search box on the page, this text is in there by default.
"SELECT id, link FROM #__menu WHERE menutype = 'mainmenu' AND published = 1 ORDER BY parent, ordering"
I deleted it, searched for the word "please" and when the results came back, I clicked on one, and the word please as not in the PM... I don't have any ideas why.
I'm on 3.6.4 of that matters.
Seems like you have another plugin installed which uses a var named $query somewhere before the searchplugin is included. In the Template change <div><input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" /> to <div><input type="text" class="bginput" name="query" size="35" value="" style="width:250px" /> and you should be fine. I'll rename it a next version.
got an error in 3.6.4 so guess i need to upgradet to 3.6.7 to ue it
Just installed 3.6.4 and can't replicate your error, worked fine, sry :/
You could copy and paste the query into phpmyadmin for a more detailed error msg, maybe that helps
Edit: Ah ok i see your problem. somehow the folderid isn't passed along. Do you have any other pm hacks installed? because on a fresh install it works.
Makc666
06-14-2007, 08:02 AM
Good modification!
But here are some notes and bug.
1. After you made a search a bug appears.
There are two down arrows appeare https://vborg.vbsupport.ru/external/2010/06/3.gif after phrase:
Search Results In Folder: Inbox https://vborg.vbsupport.ru/external/2010/06/3.gifhttps://vborg.vbsupport.ru/external/2010/06/3.gif
And after phrase Private Messages in Folder: Inbox the down arrow disappear.
Better to see screenshots:
65638
65639
P.S. This is a clean install of 3.6.7 PL1
The Fix for this is to change this code from ReadMe.txt:
$vbphrase[search_results_in_folder]<span class="normal">: <span id="nav_pmfolders.messagelist">$foldername<script type="text/javascript"> vbmenu_register("nav_pmfolders.messagelist"); </script></span></span>
To this one:
$vbphrase[search_results_in_folder]<span class="normal">: $foldername</span>
2. A littile note.
Why you didn't include templates modification in MOD file, so we have no need to edit template. Just Install.
As I looked throw I think it can be done so.
For example you can take a look how it works in this mod:
https://vborg.vbsupport.ru/showthread.php?t=122592
And once again Thanks for you work!
jluerken
06-14-2007, 08:18 AM
Very nice. Should become a default for one of the future vb versions
jderouen
06-14-2007, 01:44 PM
Still curious why it ignores the word "wonder."
Subah
06-14-2007, 02:17 PM
Cool Thanks :)
Thaliada
06-14-2007, 02:21 PM
2. A littile note.
Why you didn't include templates modification in MOD file, so we have no need to edit template. Just Install.
As I looked throw I think it can be done so.
For example you can take a look how it works in this mod:
https://vborg.vbsupport.ru/showthread.php?t=122592
And once again Thanks for you work!
Didn't knew this is possible, i'll have a look at.
Still curious why it ignores the word "wonder."
Dunno, maybe it's in your ignore list for the standard search?
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=8
AND pm.folderid= AND MATCH(pmtext.title, pmtext.message) AGAINST ('+joey' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND MATCH(pmtext.title, pmtext.message) AGAINST ('+joey' IN BOOLEAN MODE)
' at line 7
Error Number : 1064
Date : Thursday, June 14th 2007 @ 01:45:38 AM
Script : http://www.mysite.org/forums/private.php?folderid=0
Referrer : http://www.mysite.org/forums/private.php
IP Address : 121.72.6.223
Username : Me
Classname : vb_databaseI have the same error on 3.6.7 pl1.
PS this mod (https://vborg.vbsupport.ru/showthread.php?t=149528) is designed to implement template changes easily ^^ should make it easier to learn how to use this function this way :P
Thaliada
06-14-2007, 02:36 PM
AND pm.folderid=
is the problem, when does this error occure?
Do you have any other pm mods installed?
if(!isset($_GET['folderid'])) $_GET['folderid'] = 0;
at the beginning should deal with it. You can try replacing it with if(!isset($_GET['folderid']) || trim($_GET['folderid']) == '') $_GET['folderid'] = 0;
otherwise i don't have a clue what could cause this problem.
i've updated the archiv accordingly
harley_m
06-14-2007, 04:17 PM
You are godly for doing this!
Awesome, thank you so much :)
Harley
jderouen
06-14-2007, 05:57 PM
Dunno, maybe it's in your ignore list for the standard search?
No, it's not. I'm not so much concerned about that one word as I am confused, and concerned that there are other words it won't be able to find.
Thaliada
06-14-2007, 06:20 PM
Are you sure you are searching in the right folder?
If so, could you send me a copy of the specific pm and your exact search query?
4x4 Mecca
06-14-2007, 08:19 PM
No, it's not. I'm not so much concerned about that one word as I am confused, and concerned that there are other words it won't be able to find.
I opened the xml, and the word wonder is not even in there, so it's not the product itself messing up, it's something on your server. I don't know if you already knew that, I'm just trying to help.
rjmjr69
06-15-2007, 12:34 AM
Great Hack
harley_m
06-15-2007, 05:23 PM
Having used this I have one suggestion / plea for help
Having it above the PM's is useful, but a bit 'in your face', and having it below means the results also appear down there.
What would be perfect is a new item in the left hand Control Panel menu under PM's for search - which would open up a new control panel page with the PM searching / results on it - rather than having the search right there in the inbox.
PM searching is dead useful, but having it as a self contained feature they choose from the menu would be much less in the way for everyday PM usage.
Would this be hard? I know one can create custom Vb pages with the header etc on them, but then you would lose the control panel interface / menu. Is there a way of creating a new 'control panel page' easily?
but great work on this, very much appreciated
Harley
Nathan2006
06-15-2007, 05:42 PM
Thank you Thaliada
This is something I really need :D
Install
Fungsten
06-15-2007, 08:34 PM
On test server.
StrifeX
06-16-2007, 06:31 AM
I have to say, awesome work man! This is a truly great job of a vB-Addon. :D
Definitely should be vBulletin default, rated 5/5 and clicked install.
scottct1
06-16-2007, 07:56 PM
Installed and nominated as MOTM!
Triky
06-18-2007, 12:03 PM
Really thanks, man! Installed!
Dannyloski
06-21-2007, 12:25 AM
love this thing, installed and working great, man you're my hero for making this hack, i really needed this ... Nominated for MOTM
Coleccromos
06-21-2007, 04:15 PM
Nice,installed.
gg
sybakaos
06-21-2007, 04:52 PM
I like it a lot because it simply works. Installed & Nominated, this should be a standard feature!
Makc666
06-22-2007, 11:19 AM
Thaliada, why this one was not fixed in 1.0.1?
But here are some notes and bug.
1. After you made a search a bug appears.
There are two down arrows appeare https://vborg.vbsupport.ru/external/2010/06/3.gif after phrase:
Search Results In Folder: Inbox https://vborg.vbsupport.ru/external/2010/06/3.gifhttps://vborg.vbsupport.ru/external/2010/06/3.gif
And after phrase Private Messages in Folder: Inbox the down arrow disappear.
Better to see screenshots:
65638
65639
P.S. This is a clean install of 3.6.7 PL1
The Fix for this is to change this code from ReadMe.txt:
$vbphrase[search_results_in_folder]<span class="normal">: <span id="nav_pmfolders.messagelist">$foldername<script type="text/javascript"> vbmenu_register("nav_pmfolders.messagelist"); </script></span></span>
To this one:
$vbphrase[search_results_in_folder]<span class="normal">: $foldername</span>
Thaliada
06-23-2007, 07:40 AM
Sry, I have much work atm, missed it. It's included now, thank you!
Coleccromos
06-23-2007, 04:24 PM
For the alone update it is necessary to care the file or to modify something but?
thank you
klaush
06-23-2007, 07:57 PM
Awesome modification!
Is it possible to transport this to vb 3.5?
Thanks for your answer...
rjmjr69
06-24-2007, 07:51 PM
So the upgrade is done how?
Makc666
06-25-2007, 03:02 PM
Sry, I have much work atm, missed it. It's included now, thank you!
Thanks.
But I want to throw a little note about 1.0.2
product-pm_search.xml
In 1.0.0 you had a line:
<phpcode><![CDATA[if(!isset($_GET['folderid'])) $_GET['folderid'] = 0;
In 1.0.1 you changed it to:
<phpcode><![CDATA[if(!isset($_GET['folderid']) || trim($_GET['folderid']) == '') $_GET['folderid'] = 0;
In 1.0.2 you changed it back to:
<phpcode><![CDATA[if(!isset($_GET['folderid'])) $_GET['folderid'] = 0;
I think you better know how this line must look like :rolleyes:
Thaliada
06-25-2007, 03:12 PM
Thx again, normaly this line should not be necessary, but some people seemed to have problems without it. Included it again.
@klaush
there is a 3.5 version on this board.
Nathan2006
06-28-2007, 12:46 AM
Thanks for the update :)
4x4 Mecca
06-28-2007, 05:39 AM
Did you ever change the name query? Or is that not planned? It was interfering with my other hack quick search in the navbar. :)
SirFlash
06-29-2007, 02:03 AM
I installed this on vb3.6.4, made the template change included in the file, and it didn't work. The script appears in place, but when i enter a keyword on the pm search form, it returns an SQL error page with this message:
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=1
AND pm.folderid= AND MATCH(pmtext.title) AGAINST ('+testkeyword' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND MATCH(pmtext.title) AGAINST ('+testkeyword' IN BOOLEAN MODE)
ORDER BY pmtext.d' at line 7
Error Number : 1064
Date : Thursday, June 28th 2007 @ 10:48:04 PM
Script : http://mywebsite.com/private.php?folderid=0
Referrer : http://mywebsite.com/private.php
IP Address : 192.168.1.1
Username : SirFlash
Classname : vB_Database_MySQLi
I thought maybe changing a line of code as Thaliada suggested (https://vborg.vbsupport.ru/showpost.php?p=1268214&postcount=23) may work, but i still get an error. The code below didn't fix the problem for me.
change <div><input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" /> to <div><input type="text" class="bginput" name="query" size="35" value="" style="width:250px" />
I don't know if this has something to do with a conflict in value="$query" or what.
So for now i can't use this mod because it won't work, although the PM search is an excellent tool and i concur with others that this should absolutely be vb default in future versions. If anyone has any ideas on what i can do to get this to work, that would be much appreciated.
Talking Poker
06-29-2007, 06:14 PM
Nice looking mod, but doesn't work for me either. I get the following:
Database error in vBulletin 3.6.7:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM vb3_pm AS pm
LEFT JOIN vb3_pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN vb3_icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=1
AND pm.folderid= AND MATCH(pmtext.title, pmtext.message) AGAINST ('+test' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND MATCH(pmtext.title, pmtext.message) AGAINST ('+test' IN BOOLEAN MODE)
O' at line 7
Error Number : 1064
Date : Friday, June 29th 2007 @ 12:06:26 PM
Script : http://www.talkingpoker.com/forum/private.php?folderid=0
Referrer : http://www.talkingpoker.com/forum/private.php
IP Address : 68.202.190.31
Username : Talking Poker
Classname : vB_Database_MySQLi
Dark_Sirius
06-29-2007, 07:23 PM
Working just fine in 3.6.4 Thanks!
Thaliada
06-30-2007, 06:37 PM
#Sit Flash & Talking Poker
does the first line of the php code of the plugin starts with
if(!isset($_GET['folderid']) || trim($_GET['folderid']) == '') $_GET['folderid'] = 0;
if not, replace it with this one.
if so, do you have any other pm plugins installed and does the problem still exists if you turn them off?
rainyleaves
07-03-2007, 02:54 PM
Working great !! in 3.6.7LP1 Thanks!
Just one question.
Can I use wild cards?
How do I?
Thanks :)
Thaliada
07-03-2007, 02:59 PM
Use * as wildcard.
rainyleaves
07-03-2007, 03:51 PM
Thahks! Thaliada :)
Silvio
07-03-2007, 10:28 PM
Ty so much for share your marvelous hack. Its really great hack and works nicelly with vb367.:up:
just 2 things.
1) why it adds on phrases some that are identical on the regular vB search phrases? could not use those of vB?
2) A very odd thing is: Try to click on "Number Of Search Results" and all PM will be flagged/unflagged (selected all/unselected all) - I installed also this mod https://vborg.vbsupport.ru/showthread.php?t=149710 but I do not thing is the cause.
apologises for my terrible itanglish:erm:
take care
regards
ciao
Thaliada
07-04-2007, 05:28 PM
Thx, i'll fix this bug in the next release.
SirFlash
07-12-2007, 07:36 PM
Thaliada, yes, the first line of the php code plugin does indeed start with that code.
The other pm plugins i have installed are:
Calculate Percentage of PM Quota Used (https://vborg.vbsupport.ru/showthread.php?t=136533)
I don't think this will be useful, but i also had installed at one point Private Message Attachments v1.53 (https://vborg.vbsupport.ru/showthread.php?t=127113) but then i uninstalled it completely because it wasn't compatible. I tried uninstalling and re-installing PM search after this but i still get the same SQL error.
I also installed vbAnonymyzer (https://vborg.vbsupport.ru/showthread.php?t=131292), version 2.5, which basically works to change URL's, but i disabled this plugin and tried getting PM Search to work, and same prob again. I didn't update to vbanon 2.7 yet but i don't think that would fix the problem.
Any ideas what the conflict may be?
Thaliada
07-12-2007, 07:43 PM
Try to disable the other plugins, if that doesn't work im sry. I don't know what else could cause this error.
You can remove AND pm.folderid=" . mysql_real_escape_string($_GET['folderid']) . " from the code, to avoid the error, but the search won't be folder specific anymore.
SirFlash
07-12-2007, 09:08 PM
I uninstalled the product, re-imported/re-installed it with that line removed from the xml file.
When i enter a search term, it doesn't go anywhere, no error page, and no results either. Thanks for your help anyway, but i'm going to have to give up on this hack, at least for now. Hopefully someday vb will make this default though, it really should be!
seesawgame
07-18-2007, 02:38 PM
I install it at 3.6.7 PL1 and I use it to search by keyword, I can't found any PMs
but used member account it's work.
My website is Chinese forums. So, the key word does work for Chinese?
Makc666
07-18-2007, 04:35 PM
I install it at 3.6.7 PL1 and I use it to search by keyword, I can't found any PMs
but used member account it's work.
My website is Chinese forums. So, the key word does work for Chinese?
Open manually some PM from that user.
Copy any long enough word from PM's text.
And try to search with each by pasting that word.
seesawgame
07-19-2007, 12:11 AM
Open manually some PM from that user.
Copy any long enough word from PM's text.
And try to search with each by pasting that word.
I have do that
even I copy these PMs key words to paste at searching engine used ASCII
but search engine show error back to me--
Please specify some words or valid user names to search on. There were no matches for those that you specified
Fungsten
07-27-2007, 07:30 PM
The Mod works on 3.6.8.
ericgtr
07-27-2007, 08:38 PM
Wonderul mod! IMO should be default in VB, installed!
TheMilkCarton
07-27-2007, 09:53 PM
If you want your search results to utilize the Avatar in PM List (https://vborg.vbsupport.ru/showthread.php?t=127414) & PM Preview (https://vborg.vbsupport.ru/showthread.php?t=132622) hacks:
In the PM Search plugin,
FIND: eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";');ADD ABOVE:$sk_avurl = fetch_avatar_url($userid);
if($vbulletin->options['pm_preview'] AND $vbulletin->userinfo['pmpreview'])
{
$prvmessage = htmlspecialchars_uni($pm['message']);
if($vbulletin->options['pm_preview_strip_quotes'])
{
$prvmessage = strip_quotes($prvmessage);
}
$prvmessage = strip_bbcode($prvmessage);
if(strlen($prvmessage) > $vbulletin->options['pm_preview'] AND $vbulletin->options['pm_preview'] != -1)
{
$prvmessage = fetch_trimmed_title($prvmessage, $vbulletin->options['pm_preview']);
}
$prvmessage = fetch_censored_text($prvmessage);
eval('$pmpreview = "' . fetch_template('pm_preview') . '";');
}
In case you REALLY don't understand and need a screenshot.. :) Click --> 67593
Dannyloski
07-28-2007, 03:11 AM
TheMilkCarton, would you be able to provide the Code to add if we wanted to make this Hack work with the GTPreview Messages Enhanced Listing Hack (link here (https://vborg.vbsupport.ru/showthread.php?t=149710)) instead of the other one you posted?
TheMilkCarton
07-28-2007, 12:57 PM
TheMilkCarton, would you be able to provide the Code to add if we wanted to make this Hack work with the GTPreview Messages Enhanced Listing Hack (link here (https://vborg.vbsupport.ru/showthread.php?t=149710)) instead of the other one you posted?
That mod is overly complicated. It basically forces you into keeping a "default-ish" pm_messagelistbit template just so that it can carry out the replace.
Why not instead use the PM Preview hack that lets you place the $pmpreview wherever you want in the pm_messagelistbit template? It also gives you separate ACP options instead of forcing you into using the same ACP setting for two different things.
You may want to ask Princeton how to integrate his PM Preview with this, sorry.
Dannyloski
07-28-2007, 03:04 PM
^ Thanks ... I might uninstall the one I have now and change over to the one you listed as I really want to have this ability for the PM Search ...
Dannyloski
07-28-2007, 03:42 PM
TheMilkCarton, I went ahead and Uninstalled the previous PM Preview Hack I had and installed the one you suggested. Then I followed the steps you listed in Post #71 (https://vborg.vbsupport.ru/showpost.php?p=1303441&postcount=71), but its not working for me. I see the PM Search Results as normal PMs and not with the PM Preview added ... Do I have to have the Avatar in PM List (https://vborg.vbsupport.ru/showthread.php?t=127414) Hack installed? I dont want to add that Hack.
What I did was locate the below in PM Search Plugin:
eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";');
And above I added:
eval('$pmpreview = "' . fetch_template('pm_preview') . '";');
TheMilkCarton
07-28-2007, 03:51 PM
You still have to follow the template edits for the hacks. And if you want the avatar in the message list AND the search results you have to install that hack too.
Why don't you want to install the Avatar hack? It's a plugin that consists of ONE line and then adding the avatar code to the messagelistbit template.
If you want your search results to utilize the Avatar in PM List (https://vborg.vbsupport.ru/showthread.php?t=127414) & PM Preview (https://vborg.vbsupport.ru/showthread.php?t=132622) hacks
And note I said to "utilize"... Meaning that my plugin edit requires you already have the hacks installed. :)
Dannyloski
07-28-2007, 04:08 PM
I have the Hacks (User PM Search & PM Preview) installed, both of them and did all the Template Edits ...
I dont want to install the Avatar Hack, cause I just dont want it for my Forum ...
TheMilkCarton
07-28-2007, 04:12 PM
Do I have to have the Avatar in PM List (https://vborg.vbsupport.ru/showthread.php?t=127414) Hack installed? I dont want to add that Hack.
I dont want to install the Avatar Hack, cause I just dont want it for my Forum ...
Sorry, I thought you meant you wanted avatars for search results but not in the normal PM list.. and it confused me. I'm tired. :)
stwilson
07-28-2007, 04:24 PM
Is it just me or is the Read Me on this MOD all jumbled up?
Dannyloski
07-28-2007, 04:44 PM
TheMilkCarton, Oh I see why you got confused ... Its okay ...
Anyways, can you still help me to see why the Code is not working for me? I've done all the Template Edits per Hack and I added the code you said to add to the PM Search plugin, but the Search Results from the PM Search Hack still display like regular ones and not with the PM Preview option ...
TheMilkCarton
07-28-2007, 05:02 PM
I'm sorry.. I had other code elsewhere in the plugin. :o
if($vbulletin->options['pm_preview'] AND $vbulletin->userinfo['pmpreview'])
{
$prvmessage = htmlspecialchars_uni($pm['message']);
if($vbulletin->options['pm_preview_strip_quotes'])
{
$prvmessage = strip_quotes($prvmessage);
}
$prvmessage = strip_bbcode($prvmessage);
if(strlen($prvmessage) > $vbulletin->options['pm_preview'] AND $vbulletin->options['pm_preview'] != -1)
{
$prvmessage = fetch_trimmed_title($prvmessage, $vbulletin->options['pm_preview']);
}
$prvmessage = fetch_censored_text($prvmessage);
eval('$pmpreview = "' . fetch_template('pm_preview') . '";');
}
Copy that above the same location I said in my first post.
I updated my original post to prevent any further confusion.
I apologize.. I was in the middle of simplifying the code, as I don't want my users having the option to turn the preview on/off. So I had disabled all the PM Preview plugins but two (cache_templates and private_messagelist_messagebit) and was using different code. :)
Dannyloski
07-28-2007, 05:40 PM
Ahhh I see, thank you :) :up: Now it works with the new code ...
COBRAws
08-10-2007, 06:25 PM
Thaliada, yes, the first line of the php code plugin does indeed start with that code.
The other pm plugins i have installed are:
Calculate Percentage of PM Quota Used (https://vborg.vbsupport.ru/showthread.php?t=136533)
I don't think this will be useful, but i also had installed at one point Private Message Attachments v1.53 (https://vborg.vbsupport.ru/showthread.php?t=127113) but then i uninstalled it completely because it wasn't compatible. I tried uninstalling and re-installing PM search after this but i still get the same SQL error.
I also installed vbAnonymyzer (https://vborg.vbsupport.ru/showthread.php?t=131292), version 2.5, which basically works to change URL's, but i disabled this plugin and tried getting PM Search to work, and same prob again. I didn't update to vbanon 2.7 yet but i don't think that would fix the problem.
Any ideas what the conflict may be?
I have the same problem as you have, but non of the other installd hacks you say.
I'll wait until someone can fix this. Maybe its just an execution order to be edited in a plugin.
MrZeropage
08-12-2007, 08:56 PM
really good thing, but I think it should get an extra-page in the userCP and a new option "search PMs" in the leftside menu to make the inbox less confusing :)
Alfa1
08-13-2007, 10:06 AM
Is there a template modification system XML for this add on? This would reduce the install time to 30 seconds and prevent errors in the template modifications.
COBRAws
08-23-2007, 04:26 PM
Still no fixes? :(
formunda
08-25-2007, 03:12 PM
Thanks this is great :D
I skimmed through this and didn't find the answer to a question I have.
I have 3.6.8 and in the default VB board inbox PM's can be put into folders but you cannot do that with SENT PM's. Bit weird I know, have posted such over at Vb.
http://www.vbulletin.com/forum/showthread.php?t=239961
Does this hack allow me to set up folders or put PM's in a folder if they are SENT PM's?
Thanks
Carlos2
09-03-2007, 06:36 AM
Great product!!
Thaliada
09-03-2007, 09:48 AM
Still no fixes? :(
I'm sry, but i can't reproduce this bug on my board :/
htrshgytrs
09-05-2007, 12:28 AM
just brilliant, thanks alot!
Alfa1
09-05-2007, 12:30 PM
Works well. Thanks!
How about a function to find all PM's to and from a user, no matter in which folder the PM's reside? So you can find all conversations with someone.
BadgerDog
09-05-2007, 01:25 PM
Is it just me or is the Read Me on this MOD all jumbled up?
I have the same issue.... :confused:
Is there something in it that's important, or can one just import the XML file?
Regards,
Badger
Alfa1
09-05-2007, 07:16 PM
Open the file with wordpad and then you can read it well.
JadedSouls
09-19-2007, 11:08 PM
Love it! :)
gobears20
09-20-2007, 10:53 AM
Is there any way to limit this to certain user groups?
mmmender
09-26-2007, 06:20 AM
Installed and working on 3.6.5.
(I too had problems trying to view the README file, but it looks fine when opened with WordPad.)
pipin
09-30-2007, 09:00 AM
I'm sry, but i can't reproduce this bug on my board :/
got the same error with vB 3.6.8 as reported by others.
in addition it throws out this messages:
mysql_real_escape_string() [function.mysql-real-escape-string (http://test.planet3dnow.de/vbtest/function.mysql-real-escape-string)]: Access denied for user 'apache'@'localhost' (using password: NO) in /private.php(206) : eval()'d code (Zeile 316)
only pm related other hack: Super Private Message and no change, when i disable that one.
pipin
10-02-2007, 02:55 PM
the probems that some of you face can result from using mysqli instead of mysql.
thaki
10-03-2007, 03:13 AM
It's work but when I install it the error happen in main search for threads and post
Parse error: parse error, unexpected ',' in /home/abaunet/public_html/vb/search.php(1958) : eval()'d code on line 1
???
Silviu
10-12-2007, 08:23 AM
Installed the mod and love it, but some of our users recently started reporting that both Search functions are inoperable. If they try to use them, they get the following errors:
Search by Username:
Database error in vBulletin 3.6.8:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=4877
AND pm.folderid= AND fromuserid IN (618, 17103, 17921, 29550, 31022, 31200, 37237, 43083, 56188, 59939, 61094, 64280, 73683, 87463, 95220)
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND fromuserid IN (618, 17103, 17921, 29550, 31022, 31200, 37237, 43083, 56188, ' at line 7
Error Number : 1064
Date : Friday, October 12th 2007 @ 12:19:38 PM
Script : http://forum.computergames.ro/private.php?folderid=0
Referrer : http://forum.computergames.ro/private.php
IP Address : 193.111.120.28
Username : Bossman
Classname : vB_Database_MySQLi
Normal search:
Database error in vBulletin 3.6.8:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=4877
AND pm.folderid= AND MATCH(pmtext.title, pmtext.message) AGAINST ('+moderator' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND MATCH(pmtext.title, pmtext.message) AGAINST ('+moderator' IN BOOLEAN MODE)
' at line 7
Error Number : 1064
Date : Friday, October 12th 2007 @ 12:22:57 PM
Script : http://forum.computergames.ro/private.php?folderid=0
Referrer : http://forum.computergames.ro/private.php
IP Address : 193.111.120.28
Username : Bossman
Classname : vB_Database_MySQLi
Any ideas why this is happening?
From what I can tell, there seems to be a problem with the pm.folderid= bit in the query :eek:
Thaliada
10-12-2007, 10:43 AM
That is indeed the problem, actually if(!isset($_GET['folderid']) || trim($_GET['folderid']) == '') $_GET['folderid'] = 0; should take care of this problem, but as i see now, i forgott to change AND pm.folderid=" . mysql_real_escape_string($_GET['folderid']) . " "; it in the query later on...
Sry just change AND pm.folderid=" . mysql_real_escape_string($_GET['folderid']) . " "; with AND pm.folderid=" . mysql_real_escape_string($search_folderid) . " ";
That should fix this problem.
Silviu
10-12-2007, 01:20 PM
I assume these changes need to be done in the XML before importing it, right?
AWJunkies
10-13-2007, 02:39 AM
This should be in VB as default VERY GOOD MOD!
Illustrious
10-13-2007, 04:29 AM
This is a great mod. I wonder how much resources this uses on the server. Also, can you add usergroup permissions for this?
/me installs and nominates.
Silviu
10-14-2007, 07:45 AM
Sry just change AND pm.folderid=" . mysql_real_escape_string($_GET['folderid']) . " "; with AND pm.folderid=" . mysql_real_escape_string($search_folderid) . " ";
That should fix this problem.
Well, I applied this fix to the xml, re-imported it with Overwrite on, but the error still persists :(
trackpads
10-16-2007, 12:08 AM
Nice Hack!
I have one problem, I am using the show avatars in PM list mod and the search results breaks the rows as show in the screenie. Here is my pmbitlsit template. Any ideas?
Thanks!
-Jason
<tr>
<td class="alt1"><img src="$stylevar[imgdir_statusicon]/pm_$pm[statusicon].gif" alt="" border="0" /></td>
<td class="alt2"><img src="$vboptions[bburl]/image.php?u=$userid" width="50" height="50"></td>
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
<if condition="$pm['attach']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$pm[attach]">$vbphrase[x_attachments]</phrase>" /></if>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
</div>
<div class="smallfont">
<span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
</div>
</td>
<if condition="$show['pmcheckbox']"><td class="alt2" align="center" style="padding:0px"><input type="checkbox" name="pm[$pmid]" value="$groupid" /></td></if>
</tr>
Acedeal
10-20-2007, 10:11 PM
Get's an error what installed
Database error in vBulletin 3.6.7:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM vb3_pm AS pm
LEFT JOIN vb3_pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN vb3_icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=94
AND pm.folderid=0 AND MATCH(pmtext.title, pmtext.message) AGAINST ('+scuba' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : The used table type doesn't support FULLTEXT indexes
Error Number : 1214
Date : Saturday, October 20th 2007 @ 06:02:52 PM
Script : http://forum.xxxxx.com/private.php?folderid=0
Referrer : http://forum.xxxxx.com/private.php
IP Address : 68.xx.xx.xx
Username : nxx
Classname : vB_Database
the Sandman
10-24-2007, 10:32 PM
It took me a while, but I figured out how to get this to work with MySQLi. It will also still work with MySQL, so it probably should be substituted into the plug-in for all users.
Find:
AND pm.folderid=" . mysql_real_escape_string($_GET['folderid']) . " ";
or, if you've already made the change mentioned in Post #103:
AND pm.folderid=" . mysql_real_escape_string($search_folderid) . " ";
And replace it with:
AND pm.folderid=" . $db->escape_string($search_folderid) . " ";
COBRAws
10-30-2007, 03:22 PM
It took me a while, but I figured out how to get this to work with MySQLi. It will also still work with MySQL, so it probably should be substituted into the plug-in for all users.
Find:
AND pm.folderid=" . mysql_real_escape_string($_GET['folderid']) . " ";
or, if you've already made the change mentioned in Post #103:
AND pm.folderid=" . mysql_real_escape_string($search_folderid) . " ";
And replace it with:
AND pm.folderid=" . $db->escape_string($search_folderid) . " ";
Thanks! Now it works :)
Head Roller
10-31-2007, 03:04 AM
Fantastic mod. I cant tell you how many times i have actually gone to the database to run a query because i couldnt find a PM in my mailbox!!!
THANK YOU!
Thaliada
11-01-2007, 01:06 PM
Version 2.0 released. Rewrote some parts and added all(?) requested features.
Updating is recommended.
the Sandman
11-01-2007, 01:45 PM
Upgraded to 2.0 as instructed and the PM Search box shows up but searching yields no visible results. :confused:
Thaliada
11-01-2007, 02:02 PM
Hello the Sandman,
I registered at the admin zone forums. Could you please put me into a user group that is allowed to search their pms. Also the old search field is still in place. Have you completely removed the old version?
the Sandman
11-01-2007, 02:22 PM
Ahh - I forgot that the v1 template change had been done manually, and I removed it. :o
I also figured out why it wasn't working for me - it doesn't seem to obey the permissions of a user's additonal groups - only the primary group. Is this intended behavior? Or perhaps due to "Allow Users to have Member Groups" to 'No' in my primary usergroup?
Do you have a query to enable PM Search for all usergroups?
Thaliada
11-01-2007, 02:40 PM
Or perhaps due to "Allow Users to have Member Groups" to 'No' in my primary usergroup?
I guess thats the reason.
UPDATE usergroup SET pm_search = 1;
If you use table prefixes, add the prefix before "usergroup"
Acedeal
11-02-2007, 10:23 AM
Applied the update, and it still does not support mysql with full text searches enabled
Any ideas on how to get this to work with mysql and full text ??
MySQL Error : The used table type doesn't support FULLTEXT indexes
Database error in vBulletin :
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM vb3_pm AS pm
LEFT JOIN vb3_pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN vb3_icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=94
AND MATCH(pmtext.title, pmtext.message) AGAINST ('+Larry' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : The used table type doesn't support FULLTEXT indexes
Error Number : 1214
Date : Friday, November 2nd 2007 @ 06:13:13 AM
Script : http://forum.xxxx.com/private.php?pmsearch=1
Referrer : http://forum.xxxx.com/private.php?pmsearch=1
IP Address : 97.100.1.1
Username : ntbxxx
Classname : vB_Database
thanks!.. Looks like a great mod, just can not get it to work when forums uses fulltext instead of the default vb search.
Thaliada
11-02-2007, 11:51 AM
You have to use MyISAM as your MySQL storage engine. It's the only one that supports full text search.
Acedeal
11-02-2007, 12:49 PM
You have to use MyISAM as your MySQL storage engine. It's the only one that supports full text search.
Ahh, I changed the table storage type and it works great!! thanks!
Lea Verou
11-02-2007, 03:54 PM
Thanks, it seems to be working fine. :)
You forgot to cache the pmsearch template though.
Also, I've noticed that a user can not type anything and still search, without any error message! The search result would be...all his messages. There should be an error message instead of an actual search in that case I think.
Lea Verou
11-02-2007, 04:29 PM
Excuse my stupidity, but where does the template edit for the usercp navigation take place? I searched all the product plugins with no luck. :confused:
I want to remove that edit, as I don't want the pm search to be there.
Thaliada
11-02-2007, 04:38 PM
It's in the install code. The template is "User Control Panel Templates -> USERCP_SHELL". 6th category from the bottom.
Illustrious
11-02-2007, 11:12 PM
The new version is okay, but what if I preferred to have it above the PM list?
Lea Verou
11-03-2007, 12:19 AM
It's in the install code. The template is "User Control Panel Templates -> USERCP_SHELL". 6th category from the bottom.
That was so smart!
I had never seen or thought before of such a way for automatic template modifications!
Although it was annoying in my case, I can't but admire the technique. ;)
Thaliada
11-03-2007, 07:02 AM
The new version is okay, but what if I preferred to have it above the PM list?
Currently you have to use v1, sry. I'll put it on my todo list for the next update.
That was so smart!
I had never seen or thought before of such a way for automatic template modifications!
Although it was annoying in my case, I can't but admire the technique. ;)
Blush, thank you ;)
i finally got around to installing this on 3.6.4 and i dont get any errors but i dont see it on the control panel either. ive checked the templates and the code is in there where it should be, but nothing is displayed?! any suggestions?
sph33r
11-09-2007, 03:33 PM
I'm having a heck of a time figuring a css issue out.
This: $navclass[pm_newpm] doesn't match the rest of the PM box in my forum. I have tried to figure out how to change it but I'm not able to.
Can you assist? I need it to match uhm... $navclass[pm_search] I suppose.
A screen shot:
Thaliada
11-13-2007, 06:58 PM
@wtrk sry no idea
@sph33r
I don't have this problem on a fresh install. could you send me a link to your board pls, so i can have a look at it?
Makc666
11-14-2007, 02:38 PM
Thaliada, I think we have to ask for a $template_hook here: New Hook Location Requests (http://www.vbulletin.com/forum/showthread.php?t=142051) so the template changes can be made in more simple way.
BadgerDog
11-14-2007, 04:24 PM
i finally got around to installing this on 3.6.4 and i dont get any errors but i dont see it on the control panel either. ive checked the templates and the code is in there where it should be, but nothing is displayed?! any suggestions?
Me too... :down:
I just installed it clean with v3.6.7pl1 .... :up:
I checked USERCP_SHELL and the template change was there.... :up:
I see nothing called search under either the UserCP area or under Private Messages.... :confused:
Anyone have any idea what's wrong ...
Regards,
Badger
Edit: Note ... I am running Princeton's Enhanced UserCP mod
https://vborg.vbsupport.ru/showthread.php?t=136321
He uses his own GTPM_USERCP_SHELL, however I added the code to that template as well in the same location and it made no difference. Still doesn't appear.
Makc666
11-17-2007, 10:13 AM
Me too... :down:
I just installed it clean with v3.6.7pl1 .... :up:[/b]
Look at screenshot in the first post.
71794
It was done for you!!!
The Search moved to the left. To Private Menu colum.
There is a link "Search" below "Send New Message".
Look at screenshot in the first post.
71794
It was done for you!!!
The Search moved to the left. To Private Menu colum.
There is a link "Search" below "Send New Message".
when i click on 'search' from the menu nothing happens. i dont see that search box and ive tripple checked all the templates. im using the enhanced user cp mod if that makes any difference.
CLKeenan
11-25-2007, 11:33 PM
Its not displaying on my 3.6.8 patch 2 forum either. I double checked and the code was definitely in the USERCP_Shell template.
Any ideas? Could it be usergroup permissions messed up somewhere, even though I'm on the admin account?
tidefans
11-26-2007, 06:18 PM
Its not displaying on my 3.6.8 patch 2 forum either. I double checked and the code was definitely in the USERCP_Shell template.
Any ideas? Could it be usergroup permissions messed up somewhere, even though I'm on the admin account?
First, thanks for a great mod. My mods & admins love it! However, since updating to 3.6.8 PL2, it is not working.
It is appearing on my forum (3.6.8 PL2), however when i search, by looking at the status bar of the browser it appears that something is happening. However, nothing happens and the screen doesn't change.
It worked perfectly for me until I upgraded to 3.6.8 PL2.
SO, any thoughts on how to fix this are appreciated! My moderators & admins are screaming at me :)
Tikibird
11-26-2007, 06:21 PM
I have the same problem-running 3.6.8 PL2 and it isn't displaying the search functions in usercp.
clockwor305
11-28-2007, 08:38 PM
Also not displaying the search function in 3.6.8 PL2.
Coop1979
12-02-2007, 02:28 PM
Is there a way to limit the results to 50 per page like the normal PM listing? I'm trying to clean out 20,000+ PMs and the script keeps killing Firefox.
the Sandman
12-02-2007, 05:04 PM
I have Princeton's GTPrivate Messages Enhanced Listing (preview message) (https://vborg.vbsupport.ru/showthread.php?t=149710) mod installed. How can I get the preview to show up in the search result list of PM's?
tidefans
12-13-2007, 03:49 PM
Is there something we should change to get this to work with 3.6.8 PL2? OR is the author waiting for 3.7 to come out before updating?
thanks.
Makc666
12-14-2007, 08:45 AM
Is there something we should change to get this to work with 3.6.8 PL2? OR is the author waiting for 3.7 to come out before updating?
thanks.
I tested on two forums with none default styles and with 3.6.8 PL2.
All works ok.
There was no changes in PL2 that can affect this one plugin.
I advise you to reinstall this plugin over the current one installation.
Alfa1
12-14-2007, 07:28 PM
This does not work anymore for me either. (vb 3.6.8 pl2)
I have uninstalled and reinstalled it, but with no success.
LightScribe
12-15-2007, 12:58 AM
Really nice idea for a mod. Great work. Thanks *install*
Makc666
12-17-2007, 06:38 AM
This does not work anymore for me either. (vb 3.6.8 pl2)
I have uninstalled and reinstalled it, but with no success.
Try to revert and to edit the templates manually.
P.S. In your forum's profile 3.6.4 is set :rolleyes:
To all: Before saying it doesn't work, install VB's default style to you forum, revert the templates and test there.
Konstantinos
12-17-2007, 01:54 PM
This does not work anymore for me either. (vb 3.6.8 pl2)
I have uninstalled and reinstalled it, but with no success.
same here
David Bott
12-20-2007, 01:42 PM
Sorry, no love here either with vb 3.6.8 pl2 it just does not show up. I looked in the template and the code is their, but yet no show.
Sorry, but their does seem to be an issue with so many others also reporting the same thing.
David Bott
12-20-2007, 04:47 PM
Hi...
It does show and work using private.php?pmsearch=1. But it does not show up any other way that I can find. I do see the code in the template. I do see the "if" statement and all. It just does not show. I even tried removing the "if" statement just in case and it still did not show.
Very strange.
David Bott
12-20-2007, 05:02 PM
Wait, hold on. Sorry! I totally missed it was to show up in the menu and I am using a hack...
GTUserCP - Enhanced USERCP Interface + USERCP Menu
Which changes the menu structure. As such, it the search does not show up.
Sorry about that.
Konstantinos
12-22-2007, 12:45 PM
if u go to the usercp template delete the automatic template insertion of the mod and then copy paste the code from the readme.txt it shows. however i noticed that the search is not as effective as the 1st version. sometimes i enter strings that arent in any pm message and as results i get ALL the msgs i have in the inbox
alfaowner
12-22-2007, 08:36 PM
work on 3.6.4 except for the column issues, where would I edit this does anyone know? I cannot seem to find it as al it sugests in the template is $searchresults (See screen Dump)
Red Spider
12-23-2007, 12:23 AM
Nice, thanks
drgonzo120
12-23-2007, 12:47 PM
hi, i installed pm search2.0.zip (116.9 KB, 173 downloads)
on a 3.6.7 board it doesn't seem to work? why ? (the template updated correctly, i can 't seem to make it work?)
thanks
Acrobat
12-24-2007, 08:25 PM
I installed this on 3.6.8 and it does not work.
Anyone else have this problem?
alfaowner
01-02-2008, 09:13 PM
work on 3.6.4 except for the column issues, where would I edit this does anyone know? I cannot seem to find it as al it sugests in the template is $searchresults (See screen Dump)
Any ideas?
Dannyloski
01-10-2008, 03:45 PM
v1.0.2 was working for me in 3.6.8 PL2, then I decided to today to update to v2.0. It wasnt working at all, so I uninstalled and reinstalled v1.0.2 again to use that and now that one doesnt want to work :( ... I'm stuck without a PMs Search feature now, this sucks ...
alfaowner
01-10-2008, 08:54 PM
work on 3.6.4 except for the column issues, where would I edit this does anyone know? I cannot seem to find it as al it sugests in the template is $searchresults (See screen Dump)
The top post says its a supported hack but no one is helping, I appreciate its a free service but if it isnt supported perhaps we should'nt say it is?
Regards,
Ian
AWJunkies
01-11-2008, 04:35 AM
V1.0.2 works for 3.6.8 PL2
There are issues with V2.0 and GTM and CYB PM addons and edits.
Golzarion
01-11-2008, 10:10 AM
I installed this hack( Version: 2.00) for 3.7.0 and it works !
1. You should set the permission for all user groups.
2. To access the search you must go to user cp ! : http://yoursite.com/private.php?pmsearch=1
ePrOmD
01-27-2008, 02:26 AM
hi all
i have just install this hack (version 2) for 3.6.7, and it doesn´t work :S
i do exactly the guide, i install via Manage Products, make the template change manualy, and them check if i have permission for search inside PMs. (i am administrator, so it is by default), so everthing seams to be allright, but i still can´t see the search PM option in my CP :S
anybody can help me with this? tks for your time!
karabaja3
01-28-2008, 10:07 AM
hi all
i have just install this hack (version 2) for 3.6.7, and it doesn?t work :S
i do exactly the guide, i install via Manage Products, make the template change manualy, and them check if i have permission for search inside PMs. (i am administrator, so it is by default), so everthing seams to be allright, but i still can?t see the search PM option in my CP :S
anybody can help me with this? tks for your time!
same problem here
Makc666
02-01-2008, 05:29 PM
There is a small bug here...
You use code to insert in template "USERCP_SHELL"
<!-- PM Search -->
<if condition="$show['pm_search']">
<tr class="alt2">
<td class="$navclass[pm_search]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
</tr>
</if>
<!-- /PM Search -->
Then, if you go to to USERCP and look into HTML source code you will see that:
class="" is empry there.
<!-- PM Search -->
<tr class="alt2">
<td class="" nowrap="nowrap"><a class="smallfont" href="private.php?pmsearch=1">Поиск</a></td>
</tr>
<!-- /PM Search -->
Now I understand why you use <tr class="alt2">, but it not the right sollution here...
But <tr class="alt2"> and <td class="alt2"> are the different things!
The cell "Search" will look differently if you use some custom style.
The quickest way to fix this one is to replace the code with this one:
<!-- PM Search -->
<if condition="$show['pm_search']">
<tr>
<td <if condition="$navclass['pm_search']">class="$navclass[pm_search]"<else />class="alt2"</if> nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
</tr>
</if>
<!-- /PM Search -->
As you see I added a condition:
<if condition="$navclass['pm_search']">class="$navclass[pm_search]"<else />class="alt2"</if>
And we don't need any hooks to call here :)
TheInsaneManiac
02-04-2008, 03:00 AM
I installed this on 3.6.8 and it does not work. I checked the templates and it looks exactly like the text in the read me. It's just not working. *Unistalled
EvErDrEaMs
02-04-2008, 03:39 AM
thanks..
adnedarn
02-05-2008, 12:24 AM
I installed this and it didn't work. I modified the code as per recommended by Makc666 and it seems to be working now. although, the search doesn't show above the PM list. You have to click the "pm search" on the left and the search comes up on a new page.
Thanks!
Andrew
Edit: this is for the 2.0 version on 3.6.4
Boofo
02-05-2008, 01:32 AM
Where do you set the permissions? It is not showing up in 3.7.0 beta 4.
adnedarn
02-05-2008, 03:18 AM
Should be in Usergroup Manager in the admin panel. Select the usergroup, and it is right there near the top.
Boofo
02-05-2008, 03:32 AM
I didn't see it. Is this turned on by default because I never saw any link for it.
adnedarn
02-05-2008, 03:57 AM
for admin it is on by default. for other groups it is off... as I said in my first post, I had to do that edit recommended by the other coder in order to see the search stuff. Have you tried that?
Boofo
02-05-2008, 03:59 AM
I added that code and never saw a link anywhere.
adnedarn
02-05-2008, 04:22 AM
maybe not compatible with 3.7 then :shrug: I don't think there are any other of these mods either. :-\
Boofo
02-05-2008, 05:13 AM
Must not be as I get this error when I try to turn it on:
Database error in vBulletin 3.7.0 Beta 4:
Invalid SQL:
UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Moderators',
`description` = 'The core of our team!',
`usertitle` = 'Moderator',
`opentag` = '<span class=\"mod\">',
`closetag` = '</span>',
`passwordexpires` = '0',
`passwordhistory` = '0',
`pm_search` = '1',
`forumpermissions` = '3862783',
`genericpermissions` = '1609242315',
`attachlimit` = '0',
`pmquota` = '1000',
`pmpermissions` = '7',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '15',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '150',
`profilepicmaxheight` = '150',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '20000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '200',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '4',
`albumpermissions` = '127',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '31',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '255'
WHERE usergroupid=7;
MySQL Error : Unknown column 'pm_search' in 'field list'
Error Number : 1054
Date : Monday, February 4th 2008 @ 11:11:53 PM
Script : xxxxx//xxxxxxxxxxxxxxxxxxx/xxxxxx/xxxxxxxxxxxx/usergroup.php?do=update
Referrer : xxxxx//xxxxxxxxxxxxxxxxxxx/xxxxxx/xxxxxxxxxxxx/usergroup.php?do=edit&usergroupid=7
IP Address : xx.xxx.xx.xxx
Username : xxxxx
Classname : vb_database
MySQL Version : 5.0.19-standard
Conner85
02-05-2008, 07:25 AM
Didn't work..
Animparadise
02-05-2008, 09:20 PM
I added that code and never saw a link anywhere.
me 2, with vb 3.6.8
nothing show ,even i removed <if condition="$show['pm_search']"> from it to show to everyone:confused:
***Solved***
Spermy
02-15-2008, 05:19 PM
***Solved***
What did you do to solve this?
jambo_1969
02-16-2008, 11:11 AM
Uninstalled - no way of getting this to work on 3.6.8
mishb68
02-19-2008, 10:23 AM
I thought I was going to have to uninstall this because I couldn't make it work.
It does work though but I had to uninstall the "private message enhanced listing" first, then install this hack, then reinstall the first hack.
Also the search link in the User CP wasn't showing up at all until I clicked on "send new message" and it suddenly appeared?? Go figure.
Also, unless I'm blind, I couldn't find anywhere in the instructions that you have to go to the usergroup manager to select which usergroups can use this hack.
So it seems to be working fine now - no problems with mySQL errors.
Clicks installed.
This seems to have installed properly, however I do not see the pm search feature. Do I need to adjust some settings to get this to work?
Rideharder
03-02-2008, 03:07 AM
sweet thanks!
Rideharder
03-02-2008, 03:09 AM
This seems to have installed properly, however I do not see the pm search feature. Do I need to adjust some settings to get this to work?
dbtp look in your Control Panel ...
I have 3.6.8
My url www.speedaholic.net
Control Panel
Settings & Options
Edit Signature
Edit Email & Password
Edit Profile
Edit Options
Edit Avatar
Edit Profile Picture
Private Messages
Folders
Inbox
Sent Items
List Messages
Send New Message
Search
Track Messages
Edit Folders
Subscribed Threads
Folders
Subscriptions
List Subscriptions
Edit Folders
Moderation
Deleted Threads
Deleted Posts
Moderated Threads
Moderated Posts
Miscellaneous
Event Reminders
Buddy / Ignore Lists
Attachments
hmm.. I don't see that. I followed the instructions. I don't have any errors, but the search feature is not there.
I only download the 2.0 version and installed that. Would that make a difference? I don't see anything that would not allow it to work.
I also went to my USERCP_SHELL
and this code is there
<!-- PM Search -->
<if condition="$show['pm_search']">
<tr class="alt2">
<td class="$navclass[pm_search]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
</tr>
</if>
<!-- /PM Search -->
so I am not sure why this isn't working
I installed this hack( Version: 2.00) for 3.7.0 and it works !
1. You should set the permission for all user groups.
2. To access the search you must go to user cp ! : http://yoursite.com/private.php?pmsearch=1
Ah. This was the problem. thanks. It is working now.
MustangLisa
03-04-2008, 12:23 AM
OMG this is great! I am installing it now, and will be so helpful. Thanks!
Parker Clack
03-13-2008, 04:13 PM
I have to be a pain here but I am still using vB 3.5.4 and would love to use this hack. I got it install just fine by changing the query_read_slave to just query_read. The search works fine with searching for a username but when you search for words in a folder I get
Fatal error: Call to undefined function: split_string() in /usr/local/www/forums/private.php(194) : eval()'d code on line 182
I haven't been able to find a call to that function in this file or private.php.
Do you have an idea of what could be going on and how I could correct it?
Thanks,
Parker
Spermy
03-15-2008, 04:03 PM
Is anybody considering making this work for 3.7?
Parker Clack
03-18-2008, 10:07 AM
Nevermind. I figured it out.
Thanks for a great hack.
Darkwaltz4
03-22-2008, 11:32 PM
really great hack :) thanks!
FlyBoy73
03-23-2008, 03:42 PM
Excellent hack. Sure hope there will be a port for it to 3.7x
Dabbi
03-27-2008, 01:38 PM
It's not working for me. :( Maybe I'm missing something since I'm still pretty new at this.
I checked the USERCP_SHELL and every thing's there as it should be. I've gone into Usergroup "Admin" and it's showing there as "yes" but although I've refreshed it's still not showing up in my user cp like the screenshot provided shows.
I could really use this great mod and would appreciate any assistance. Thanks!
FWIW here's the screenshot of my Private Message area of my user cp:
77812
ETA.... NM... now it's showing up. (not sure why.. but it is.. probably an cookei thing?)
Mike-D
03-27-2008, 03:21 PM
Excellent hack. Sure hope there will be a port for it to 3.7xWhy? It works under all vB 3.7 Beta 1-6 and at least under the RC1 without any problems :)
Julrou
03-29-2008, 04:49 PM
Why? It works under all vB 3.7 Beta 1-6 and at least under the RC1 without any problems :)
Not for me. Same thing as here :
It's not working for me. :( Maybe I'm missing something since I'm still pretty new at this.
I checked the USERCP_SHELL and every thing's there as it should be. I've gone into Usergroup "Admin" and it's showing there as "yes" but although I've refreshed it's still not showing up in my user cp like the screenshot provided shows.
I could really use this great mod and would appreciate any assistance. Thanks!
FWIW here's the screenshot of my Private Message area of my user cp:
77812
ETA.... NM... now it's showing up. (not sure why.. but it is.. probably an cookei thing?)
Hope someone could do something to fixe it. ;)
Julrou
03-29-2008, 04:52 PM
Woooops... Sorry for that !
The hack does work on vb 3.7, but i need to go manually to the search page...
The template modification does no longer work...
Anyway, i'll add a link myself.
Thanks :up:
Mike-D
03-30-2008, 01:55 PM
but i need to go manually to the search page...
The template modification does no longer work...Correct! The whole Code itself is too complex so I have shortened and changed the Code at that time on several spots. Also 2 Plugins are really not needed :)
maestrodamuz
03-30-2008, 04:09 PM
Can we have this hack ported on vb 3.5?
Thank U:D
mrtylmzzz
04-09-2008, 06:36 PM
i install this hack, but i can searching only my pm, not their user's pm
3.6.8 PL 2
Makc666
04-18-2008, 11:45 AM
For version 3.6.9 pmsearch template update...
http://www.vbulletin.com/forum/project.php?issueid=22869
In template pmsearch, find:
padding: $stylevar[cellpadding]px 0 $stylevar[cellpadding]px $stylevar[cellpadding]px
replace with:
padding:$stylevar[cellpadding]px; padding-$stylevar[right]:0px
baymortgage99
04-20-2008, 05:53 AM
Searching thru PM is time consuming
This hack is awesome
Acrobat
04-20-2008, 06:46 PM
Would it be possible to be able to move PM's to a folder? If I searched for al PM's from a user I'd like to be able to move them to a folder.
rnixon
04-23-2008, 08:13 AM
Many thanks!
FishMRC
04-23-2008, 08:24 PM
OK I've just installed this mod/hack and can only search my PM's!
I've just had vBulletin update the forum software (to version 3.6.9) and wanted this to work before re-opening the forum.
Is there a quick fix/tweak for this?
Thanks
Fish
merlin_de
04-25-2008, 12:29 PM
Hi,
doesn?t work with 3.6.10 :eek:.
Dein Seitenaufruf konnte auf Grund eines fehlenden oder falschen Securitytokens nicht verarbeitet werden.
In english :
Your submission could not be processed because a security token was missing or mismatched.
Will there be an Update ?
Greets,Micha
dennisuello
04-28-2008, 02:39 PM
Hi,
doesn?t work with 3.6.10 :eek:.
Dein Seitenaufruf konnte auf Grund eines fehlenden oder falschen Securitytokens nicht verarbeitet werden.
In english :
Your submission could not be processed because a security token was missing or mismatched.
Will there be an Update ?
Greets,Micha
Same here.
Dabbi
04-28-2008, 02:48 PM
Thank you, I love this mod!
Hopefully it will be updated to 3.7 since I've found it wonderfully handy to have. :)
Dabbi
04-29-2008, 08:12 PM
Sorry for the totem post but when I came to check something I just noticed this: Developer Last Online: Nov 2007. That doesn't bode well for them updating or supporting it. :(
I don't suppose it part of 3.7 and I missed it? Perhaps if not vB will consider it for an upcoming release. It's really a very handy function.
Mark.B
04-29-2008, 08:20 PM
This is how I made 1.0.2 work in 3.7.0, I have no idea about 2.0.0 though.
In template pm_messagelist, find:
input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" />
Add below:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Then find:
<input type="text" class="bginput" name="searchuser" id="userfield_txt" size="35" value="$searchuser" style="width:250px" autocomplete="off" />
Add below:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Something similar should fix 2.0.0 also, but I haven't tried.
whitetigergrowl
05-01-2008, 02:10 AM
This is how I made 1.0.2 work in 3.7.0, I have no idea about 2.0.0 though.
In template pm_messagelist, find:
input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" />
Add below:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Then find:
<input type="text" class="bginput" name="searchuser" id="userfield_txt" size="35" value="$searchuser" style="width:250px" autocomplete="off" />
Add below:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Something similar should fix 2.0.0 also, but I haven't tried.
I cant find any of those lines of code in the final version. >_<
for 3.7, open the pmsearch template. search for
</form>
it's there twice.
directly before each one add
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
ShMilO
05-02-2008, 02:22 PM
the page's name is : PM Search
how can i change the name ?
Makc666
05-04-2008, 12:43 PM
for 3.7, open the pmsearch template. search for
</form>
it's there twice.
directly before each one add
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
The best way to fi this one is:
1. Open file product-pm_search.xml or template pmsearch
2. Look for line:
<form action="private.php?pmsearch=1" method="post">
3. After add:
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
4. Look for lines:
<form action="private.php?do=managepm&folderid=$folderid" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
5. After add:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
6. If you have edited the file product-pm_search.xml then upload the product.
Makc666
05-04-2008, 12:50 PM
the page's name is : PM Search
how can i change the name ?
1. Open file product-pm_search.xml
2. Look for lines:
// generate navbar
$navbits[''] = "PM Search";//$vbphrase['confirm_deletion'];
3. Replace with lines:
// generate navbar
$navbits[''] = $vbphrase['search'];//$vbphrase['confirm_deletion'];
4. Upload the product.
P.S. You can change $vbphrase['search']; to any you like but I recommend not to change it.
hmmm i followed your instructions for the 2.0 in vB 3.7, but i won't work. Could someone maybe attach a working product.xml?
Would appreciate it :)
Thanks in advance,
Vayu
Legende
05-08-2008, 07:44 AM
Same here, not working for me? Using 2.0 + vb3.7 also made manual template changes and when i try to access private.php?pmsearch=1 nothing happens?
edit: weird i tried to install it on my local computer with xampp and there it is working??
Animparadise
05-10-2008, 06:49 PM
hmmm i followed your instructions for the 2.0 in vB 3.7, but i won't work. Could someone maybe attach a working product.xml?
Would appreciate it :)
Thanks in advance,
Vayu
me 2
i try all things but no one solved this problem:erm:
peterle1
05-11-2008, 06:49 PM
for 3.7, open the pmsearch template. ...
For those of you wondering where that might be ... it's the part, you enter in the pm_messagelist template, as said in the install instructions of the mod.
Took me a few minutes to find it and I don't want to search again. :p
EDIT: This is for 1.02
markp_2000
05-27-2008, 03:03 AM
Using This is how I made 1.0.2 work in 3.7.0, I have no idea about 2.0.0 though.
In template pm_messagelist, find:
input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" />
Add below:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Then find:
<input type="text" class="bginput" name="searchuser" id="userfield_txt" size="35" value="$searchuser" style="width:250px" autocomplete="off" />
Add below:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Something similar should fix 2.0.0 also, but I haven't tried.
Here is the correct paste after code in the pm_messagelist. Remember this is the 1.0.2 version.
<!-- PM Search -->
<form action="private.php?folderid=$search_folderid" method="post">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('pmsearch')"><img id="collapseimg_pmsearch" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_pmsearch].gif" alt="" border="0" /></a>
$vbphrase[private_message_search]
</td>
</tr>
</thead>
<tbody id="collapseobj_pmsearch" style="$vbcollapse[collapseobj_pmsearch]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend>$vbphrase[search_by_key_word]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td colspan="2">
<div>$vbphrase[key_words]:</div>
<div><input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" /></div>
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
</td>
</tr>
<if condition="!$show['searchthread']">
<tr>
<td>
<select name="titleonly">
<option value="0" $titleonlyselected[0]>$vbphrase[search_entire_pms]</option>
<option value="1" $titleonlyselected[1]>$vbphrase[search_titles_only]</option>
</select><if condition="$show['nocache']"> <label for="cb_nocache"><input type="checkbox" name="nocache" value="1" id="cb_nocache" />$vbphrase[do_not_use_cached_results]</label></if>
</td>
</tr>
</if>
</table>
</fieldset>
</td>
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend>$vbphrase[search_by_user_name]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td colspan="2">
<div>$vbphrase[username]:</div>
<div id="userfield">
<input type="text" class="bginput" name="searchuser" id="userfield_txt" size="35" value="$searchuser" style="width:250px" autocomplete="off" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
</div>
<if condition="$show['searchthread']">
<div>
<label for="cb_exactname"><input type="checkbox" name="exactname" value="1" id="cb_exactname" $exactnamechecked[1] />$vbphrase[exact_name]</label>
</div>
</if>
<if condition="$show['popups']">
<div id="userfield_menu" class="vbmenu_popup" style="display:none"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('userfield', true);
snc = new vB_AJAX_NameSuggest('snc', 'userfield_txt', 'userfield');
//-->
</script>
</if>
</td>
</tr>
<if condition="!$show['searchthread']">
<tr>
<td>
<select name="toby">
<option value="0" $starteronlyselected[0]>$vbphrase[find_pms_by_user]</option>
<option value="1" $starteronlyselected[1]>$vbphrase[find_pms_to_user]</option>
</select>
</td>
<td><label for="cb_exactname"><input type="checkbox" name="exactname" value="1" id="cb_exactname" $exactnamechecked[1] />$vbphrase[exact_name]</label></td>
</tr>
</if>
</table>
</fieldset>
</td>
</tr>
</table>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="dosearch" value="$vbphrase[search_now]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</div>
</td>
</tr>
</tbody>
</table>
</form>
<if condition="$showsearch">
<br />
<form action="private.php?do=managepm&folderid=$folderid" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="managepm" />
<input type="hidden" name="folderid" value="$folderid" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="4" style="padding: $stylevar[cellpadding]px 0 $stylevar[cellpadding]px $stylevar[cellpadding]px">
<span class="smallfont" style="float:$stylevar[right]">
<label for="checkall_all">
$vbphrase[number_of_search_results]: <strong>$search_totalmessages</strong>
<if condition="$search_totalmessages > 0"><input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="js_check_all(this.form)" /></if>
</label>
</span>
$vbphrase[search_results_in_folder]<span class="normal">: $foldername</span>
</td>
</tr>
</thead>
<if condition="$search_totalmessages == 0">
<tbody>
<tr>
<td class="alt1">
$vbphrase[no_search_results]
</td>
</tr>
</tbody>
</if>
<if condition="$errors">
<tbody>
<tr>
<td class="alt1">
$displayCommon </td>
</tr>
</tbody>
</if>
<if condition="$search_totalmessages > 0">$searchresults
<tbody>
<tr>
<td class="tfoot" align="$stylevar[right]" colspan="4">
<div class="smallfont">
$vbphrase[selected_messages]:
<select name="dowhat">
<if condition="$show['movetofolder']"><option value="move">$vbphrase[move_to_folder]...</option></if>
<option value="delete">$vbphrase[delete]</option>
<option value="read">$vbphrase[mark_as_read]</option>
<option value="unread">$vbphrase[mark_as_unread]</option>
<option value="xml">$vbphrase[download_as_xml]</option>
<option value="csv">$vbphrase[download_as_csv]</option>
<option value="txt">$vbphrase[download_as_text]</option>
</select>
<input type="submit" class="button" value="$vbphrase[go]" />
</div>
</td>
</tr>
</tbody>
</if>
</table>
</form>
</if>
<br />
<!-- PM Search end -->
Mark
Dark_Sirius
05-27-2008, 06:33 PM
Will there be any updates for this for 3.7? This is an awesome mod!
logicuk
05-29-2008, 09:19 PM
yeah please someone update this sweet mod to vb 3.7 :)
afullcup
05-30-2008, 12:56 AM
Working fine for me in 3.7 - here's the XML I modified.
hope it helps someone...
note: I had the Icons for User CP installed and the Search button would not show up. As soon as I disabled that, this hack worked fine. :)
karnevil
06-07-2008, 09:06 PM
After installing this Mod https://vborg.vbsupport.ru/showthread.php?t=179113 (thank you https://vborg.vbsupport.ru/member.php?u=171640 nice Mod) I slightly adapted it to make the User PM Search Mod work by the following
Style Manager -> Edit Templates -> pm_messagelist
Find:
HTML Code:
<if condition="$show['pagenav']">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
</if>
Replace it with:
HTML Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td><a href="private.php?pmsearch=1"><img src="$stylevar[imgdir_button]/find.gif" alt="$vbphrase[send_new_message]" border="0" /></a></td>
<if condition="$pagenav">
<td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
Then save.
I must give the credit to Mazinger for this one as without their New PM Mod I wouldnt have had the idea.
Tested on our own forum www.legalbeagles.info, and with the original PM Hack already added.
logicuk
06-12-2008, 11:11 AM
This dont work on vB 3.7 beta 5 :(
and i tried the xml also thats in post: #219
MajidOnline
06-12-2008, 04:57 PM
Hi .. This mod is Eror in db .. !!
Database error in vBulletin 3.7.1:
Invalid SQL:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=1
AND MATCH(pmtext.title, pmtext.message) AGAINST ('+سلام' IN BOOLEAN MODE)
ORDER BY pmtext.dateline DESC;
MySQL Error : The used table type doesn't support FULLTEXT indexes
Error Number : 1214
Request Date : Thursday, June 12th 2008 @ 06:53:18 PM
Error Date : Thursday, June 12th 2008 @ 06:53:18 PM
Script : http://localhost/VB3.7/private.php?pmsearch=1
Referrer : http://localhost/VB3.7/private.php?pmsearch=1
IP Address : 127.0.0.1
Username : admin
Classname : vB_Database
MySQL Version : 5.0.45-community-nt
How do ?
DiSpy
06-15-2008, 01:34 PM
Working fine for me in 3.7 - here's the XML I modified.
hope it helps someone...
That worked for me until a new version is released... THANK YOU! :)
Boofo
06-15-2008, 02:08 PM
Working fine for me in 3.7 - here's the XML I modified.
hope it helps someone...
note: I had the Icons for User CP installed and the Search button would not show up. As soon as I disabled that, this hack worked fine. :)
Not working on 3.7.1.
Sadie Frost
06-15-2008, 06:05 PM
I tried moving the link elsewhere but when I try to do a search it tells me the security token isn't valid...
logicuk
06-18-2008, 05:52 AM
hope someone can fix this for 3.7 i have over 3000pm's and a search feature would be nice
Dean C
06-19-2008, 03:20 PM
I didn't have time to figure out why the permissions weren't showing up in the ACP for 3.7 but anyone trying to get it working on 3.7 just open up the private_start hook location and add this after the first if statement:
$show['pm_search'] = 1;
$permissions['pm_search'] = 1;
That'll make it so all your usergroups can search their PMs. Quick fix for now... You'll need to add the usercp link to www.sitename.com/forums/private.php?pmsearch=1 still in USERCP_shell as per the instructions in the original file.
Hope this helps someone.
symptome
06-25-2008, 07:42 AM
I don't see the possibility to set $pmsearch in 3.6.8.
can you help?
Thanks a lot!
Marcel
EarnDollars
07-08-2008, 02:19 PM
Ok, I just installed for my Forum with 3.7.0 following the modifiction suggested by makc666 in post #210
Looks work fine for me.
But just checked with my Mods / Members and there has no "search link" in there private.php page. I can not find the link in ACP to edit authorazations for usergroups.. Can anyone tell me how to allow all members search PM?
Thanks !
EarnDollars
07-14-2008, 06:53 AM
Sorry bump
Could any one tell me how to enable the Search Function for other members? Currently only Forum Admin can use it
Mike-D
07-14-2008, 10:33 AM
But just checked with my Mods / Members and there has no "search link" in there private.php page. I can not find the link in ACP to edit authorazations for usergroups.. Can anyone tell me how to allow all members search PM?Well, I guess you have Enabled the permissions for the other Usergroups. Did you? The other problem in that hack is, that Users have to click on a Link inside of the Private Messages group of the UserCP. Such like "Inbox, Send Items or Track Messages". After you can see the Link "Search Messages". But this kind of coding is in my opinion not the best way and it's no problem to change it so that the Link always appear - providing that Users have the permission to see that ;)
On A Side Note: The Hack itself has a lot of power, but the Code needs to be rewritten on several spots. Several Plugins and lots of Codes are really not necessary which overload the Memory. Also the Usergroup Permissions should be rewritten, because those things belongs to Bitfield Permissions. But it's just my opinion of course :)
Jah-Hools
07-14-2008, 09:23 PM
This sounds great..
I will subscribe in case there are more tweaks for 3.7 made for it..
ThE LeAdEr
07-23-2008, 05:11 PM
In 3.7, for LINK to Search in UserCP:
Search in USERCP_SHELL:
<if condition="$show['pmtracklink']">
Above add:
<!-- PM Search -->
<if condition="$show['pm_search']">
<tr class="alt2">
<td class="$navclass[pm_search]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
</tr>
</if>
<!-- /PM Search -->
If installed hack Icons for UserCP Navigation 1.2 (https://vborg.vbsupport.ru/showthread.php?t=170558), the change must do USERCP_SHELL_ICONS_PNG instead USERCP_SHELL
Sorry, no english (google translate)
Dabbi
07-31-2008, 08:57 AM
For 3.7 to work I followed the instructions given by Makc666 in post #210 (https://vborg.vbsupport.ru/showpost.php?p=1508058&postcount=210) and made sure the code in the DL'd 2.0 folder was in the template where it belonged.
It seems to work fine on my board for both admin and regular members. Just click on the "Search" link under Private Messages in the sidebar while in UserCP or Private Message area.
It really would be great if this were updated to 3.7 for ease of use. When working correctly it's a very useful mod, one which I would love to see as part of the vBulletin default. :cool:
Coleccromos
08-05-2008, 06:06 PM
In 3.7, for LINK to Search in UserCP:
Search in USERCP_SHELL:
<if condition="$show['pmtracklink']">Above add:
<!-- PM Search -->
<if condition="$show['pm_search']">
<tr class="alt2">
<td class="$navclass[pm_search]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]pmsearch=1">$vbphrase[search]</a></td>
</tr>
</if>
<!-- /PM Search -->If installed hack Icons for UserCP Navigation 1.2 (https://vborg.vbsupport.ru/showthread.php?t=170558), the change must do USERCP_SHELL_ICONS_PNG instead USERCP_SHELL
Sorry, no english (google translate)
For 3.7 to work I followed the instructions given by Makc666 in post #210 (https://vborg.vbsupport.ru/showpost.php?p=1508058&postcount=210) and made sure the code in the DL'd 2.0 folder was in the template where it belonged.
It seems to work fine on my board for both admin and regular members. Just click on the "Search" link under Private Messages in the sidebar while in UserCP or Private Message area.
It really would be great if this were updated to 3.7 for ease of use. When working correctly it's a very useful mod, one which I would love to see as part of the vBulletin default. :cool:
I just make the changes and the leader of The Post 210 and I am not showing the form of private even giving permits in user groups and I also see it being administrator
Your submission could not be processed because a security token was missing.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
What's wrong?
Thank you
gator777
08-08-2008, 09:02 PM
Working fine for me in 3.7 - here's the XML I modified.
hope it helps someone...
note: I had the Icons for User CP installed and the Search button would not show up. As soon as I disabled that, this hack worked fine. :)
Thank you sir ...that worked well. :D
Jah-Hools
08-08-2008, 09:32 PM
As an admin this is great for keeping tabs on all the nutjobs & trouble makers I have to deal with, if one causes trouble - I can now look back over many years to see if its a repeat pattern, review past warnings I have issued and get a better overview..
It will have other more friendly uses I am sure but .. you get the idea..
I was searching for this - glad I found it!
AzzidReign
08-09-2008, 03:53 PM
^ That's what proper use of the infractions system and usernotes is for...
Jah-Hools
08-09-2008, 09:31 PM
But does the infraction system and user notes help keep track of all PM communications?
(if so I didn't know that and can someone explain how I can use them for that please?)
A lot of troublemakers write epic PMs and their mania can be hard to follow, so when they start up again it will be useful to have record of all their (and my) past communications.. I havent got time to cut and paste PM's into notes...
Thanks
Coleccromos
08-11-2008, 07:12 PM
Can not make any progress with the changes that I find in this thread. I get this error
Your submission could not be processed because a security token was missing.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
By not knowing English is very difficult for my work with this add-ons
Someone can post any amendments in order to make this work in the browser version 3.7
Thank you
Mike-D
08-12-2008, 07:24 AM
Can not make any progress with the changes that I find in this thread. I get this error
Your submission could not be processed because a security token was missing.You should read Post #210 (https://vborg.vbsupport.ru/showpost.php?p=1508058&postcount=210)!!! All infos you need are over there :)
Quarterbore
08-27-2008, 05:39 PM
I tried to read all the posts but I just installed 2.0 and I am curious what I would need to do to get the search box to show above the new PMs when a user just opens their PM Box?
I like how the search results open in a new window, my users will just have a tough time finding the search :erm:
I thought that the search was in a box above the PM box in the last version but I can't verify now.
OK, I figured it out, it was easy really...
Open Template: pm_messagelist
Find:
<if condition="$show['messagelist']">
ABOVE ADD:
<!-- PM Search START-->
<if condition="$show['pm_search']">
<script type="text/javascript">
<!--
function check_all_group(checkobj, value)
{
formobj = checkobj.form;
for (var i = 0; i < formobj.elements.length; i++)
{
elm = formobj.elements[i];
if (elm.type == "checkbox" && elm.value == value)
{
elm.checked = checkobj.checked;
}
}
}
//-->
</script>
<form action="private.php?pmsearch=1" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('pmsearch')"><img id="collapseimg_pmsearch" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_pmsearch].gif" alt="" border="0" /></a>
$vbphrase[private_message_search]
</td>
</tr>
</thead>
<tbody id="collapseobj_pmsearch" style="$vbcollapse[collapseobj_pmsearch]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend>$vbphrase[search_by_key_word]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td colspan="2">
<div>$vbphrase[key_words]:</div>
<div><input type="text" class="bginput" name="pmquery" size="35" value="$pmquery" style="width:250px" /></div>
</td>
</tr>
<tr>
<td>
<select name="titleonly">
<option value="0" $titleonlyselected[0]>$vbphrase[search_entire_pms]</option>
<option value="1" $titleonlyselected[1]>$vbphrase[search_titles_only]</option>
</select>
</td>
</tr>
<tr>
<td>
<select name="folders">
<option value="-2" $folders[all]>$vbphrase[pmsearch_all_folders]</option>
<option value="0" $folders[in]>$vbphrase[pmsearch_incoming]</option>
<option value="-1" $folders[sent]>$vbphrase[pmsearch_outgoing]</option>
$pmfolders
</select>
</td>
</tr>
</table>
</fieldset>
</td>
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend>$vbphrase[search_by_user_name]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
<div>$vbphrase[username]:</div>
<div id="userfield">
<input type="text" class="bginput" name="searchuser" id="userfield_txt" size="35" value="$searchuser" style="width:250px" autocomplete="off" />
</div>
<if condition="$show['popups']">
<div id="userfield_menu" class="vbmenu_popup" style="display:none"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('userfield', true);
snc = new vB_AJAX_NameSuggest('snc', 'userfield_txt', 'userfield');
//-->
</script>
</if>
</td>
</tr>
<tr>
<td>
<select name="toby">
<option value="0" $tobyuser[0]>$vbphrase[find_pms_by_user]</option>
<option value="1" $tobyuser[1]>$vbphrase[find_pms_to_user]</option>
<option value="2" $tobyuser[2]>$vbphrase[pmsearch_toby_user]</option>
</select>
</td>
</tr>
<tr><td><label for="cb_exactname"><input type="checkbox" name="exactname" value="1" id="cb_exactname" $exactnamechecked[1] />$vbphrase[exact_name]</label></td></tr>
</table>
</fieldset>
</td>
</tr>
</table>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="dosearch" value="$vbphrase[search_now]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</div>
</td>
</tr>
</tbody>
</table>
</form>
<br />
</if>
<!-- PM Search end -->
Dabbi
08-31-2008, 05:01 PM
Thank you so much, Quarterbore! Your addition works perfectly and makes a really good mod a great one. :cool:
testebr
09-09-2008, 12:11 AM
The template of this addon is not cached, to fix it add a new plugin under product PM Search and hook cache_templates with follow content:
$globaltemplates[] = 'pmsearch';
You can confirm this problem if you activate the debug.
cya
PGAmerica
09-28-2008, 08:21 PM
Working fine for me in 3.7 - here's the XML I modified.Thank you. this works (if I disable the User CP icons mod.
I had the Icons for User CP installed and the Search button would not show up. As soon as I disabled that, this hack worked fine. :)Does anybody know how to get these two mods working together?
Darmak
10-11-2008, 08:00 AM
Thank you. this works (if I disable the User CP icons mod.
Does anybody know how to get these two mods working together?
Try with this post (https://vborg.vbsupport.ru/showpost.php?p=1582413&postcount=233)
Quarterbore
11-03-2008, 06:35 PM
There is at least one (perhaps 2) security token errors in the product file.
In Template: pmsearch
FIND:
<form action="private.php?pmsearch=1" method="post">
AFTER ADD:
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Next (in same template) find:
<form action="private.php?do=managepm&folderid=$folderid" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
AFTER ADD:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Then it works in 3.7.x ;)
FlyBoy73
01-06-2009, 01:26 AM
Is anyone planning to port this to work without mods to 3.7.4?
Makc666
02-12-2009, 03:37 PM
Is anyone planning to port this to work without mods to 3.7.4?
It works with 3.7.4 and even with 3.8.1
imported_silkroad
02-23-2009, 03:25 PM
Does this mod permit us to set which usergroups can use this feature (permissions)?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.