vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - User PM Search (https://vborg.vbsupport.ru/showthread.php?t=149609)

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?

Quote:

Originally Posted by Makc666 (Post 1268271)
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:
Attachment 65638
Attachment 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:
Code:

$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:
Code:

$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

Quote:

Originally Posted by Thaliada (Post 1274488)
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:
Code:

<phpcode><![CDATA[if(!isset($_GET['folderid'])) $_GET['folderid'] = 0;
In 1.0.1 you changed it to:
Code:

<phpcode><![CDATA[if(!isset($_GET['folderid']) || trim($_GET['folderid']) == '') $_GET['folderid'] = 0;
In 1.0.2 you changed it back to:
Code:

<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:

Quote:

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 may work, but i still get an error. The code below didn't fix the problem for me.

Code:

change <div><input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" />
to
Code:

<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/pr...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
Code:

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

I don't think this will be useful, but i also had installed at one point Private Message Attachments v1.53 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, 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
Code:

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

Quote:

Originally Posted by seesawgame (Post 1294665)
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

Quote:

Originally Posted by Makc666 (Post 1294755)
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 & PM Preview hacks:

In the PM Search plugin,

FIND:
Code:

eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";');
ADD ABOVE:
Code:

$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 --> Attachment 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) instead of the other one you posted?

TheMilkCarton 07-28-2007 12:57 PM

Quote:

Originally Posted by Dannyloski (Post 1303595)
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) 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, 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 Hack installed? I dont want to add that Hack.

What I did was locate the below in PM Search Plugin:
Code:

eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";');
And above I added:
Code:

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.
Quote:

Originally Posted by TheMilkCarton (Post 1303441)
If you want your search results to utilize the Avatar in PM List & PM Preview 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

Quote:

Originally Posted by Dannyloski (Post 1303962)
Do I have to have the Avatar in PM List Hack installed? I dont want to add that Hack.

Quote:

Originally Posted by Dannyloski (Post 1303988)
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 ...


All times are GMT. The time now is 11:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01656 seconds
  • Memory Usage 1,842KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (13)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete