Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User PM Search Details »»
User PM Search
Version: 2.00, by Thaliada Thaliada is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.6.8 Rating:
Released: 06-12-2007 Last Update: 10-31-2007 Installs: 293
DB Changes Uses Plugins Auto-Templates
 
No support by the author.

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
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
Code:
$vbphrase[search_results_in_folder]<span class="normal">: $foldername</span>
1.0.1
Fixed some minor problems

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-14-2007, 05:39 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 06-14-2007, 05:53 AM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got an error in 3.6.4 so guess i need to upgradet to 3.6.7 to ue it

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=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
Reply With Quote
  #24  
Old 06-14-2007, 06:19 AM
Thaliada Thaliada is offline
 
Join Date: Dec 2005
Location: Cologne
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4x4 Mecca View Post
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.

Quote:
Originally Posted by sross View Post
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.
Reply With Quote
  #25  
Old 06-14-2007, 08:02 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good modification!
But here are some notes and bug.

1. After you made a search a bug appears.
There are two down arrows appeare after phrase:
Search Results In Folder: Inbox

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>

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!
Reply With Quote
  #26  
Old 06-14-2007, 08:18 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. Should become a default for one of the future vb versions
Reply With Quote
  #27  
Old 06-14-2007, 01:44 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still curious why it ignores the word "wonder."
Reply With Quote
  #28  
Old 06-14-2007, 02:17 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool Thanks
Reply With Quote
  #29  
Old 06-14-2007, 02:21 PM
Thaliada Thaliada is offline
 
Join Date: Dec 2005
Location: Cologne
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Makc666 View Post
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.

Quote:
Originally Posted by jderouen View Post
Still curious why it ignores the word "wonder."
Dunno, maybe it's in your ignore list for the standard search?
Reply With Quote
  #30  
Old 06-14-2007, 02:25 PM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sross
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
I have the same error on 3.6.7 pl1.

PS this mod is designed to implement template changes easily ^^ should make it easier to learn how to use this function this way :P
Reply With Quote
  #31  
Old 06-14-2007, 02:36 PM
Thaliada Thaliada is offline
 
Join Date: Dec 2005
Location: Cologne
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09579 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete