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
  #242  
Old 08-12-2008, 07:24 AM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coleccromos View Post
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!!! All infos you need are over there
Reply With Quote
  #243  
Old 08-27-2008, 05:39 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
<if condition="$show['messagelist']"
ABOVE ADD:

PHP Code:
<!-- PM Search START-->
<if 
condition="$show['pm_search']">
            
            <
script type="text/javascript">
              <!--
                  function 
check_all_group(checkobjvalue)
                  {
                  
formobj checkobj.form;
                  for (var 
0formobj.elements.lengthi++)
                                      {
                                      
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="$pmquerystyle="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="$searchuserstyle="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 --> 
Reply With Quote
  #244  
Old 08-31-2008, 05:01 PM
Dabbi's Avatar
Dabbi Dabbi is offline
 
Join Date: Sep 2007
Location: Seaway Valley NY
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much, Quarterbore! Your addition works perfectly and makes a really good mod a great one.
Reply With Quote
  #245  
Old 09-09-2008, 12:11 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #246  
Old 09-28-2008, 08:21 PM
PGAmerica PGAmerica is offline
 
Join Date: Mar 2008
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by afullcup View Post
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?
Reply With Quote
  #247  
Old 10-11-2008, 08:00 AM
Darmak Darmak is offline
 
Join Date: Jun 2004
Location: M?xico
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PGAmerica View Post
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
Reply With Quote
  #248  
Old 11-03-2008, 06:35 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is at least one (perhaps 2) security token errors in the product file.

In Template: pmsearch

FIND:

PHP Code:
<form action="private.php?pmsearch=1" method="post"
AFTER ADD:

PHP Code:
<input type="hidden" name="s" value="$session[sessionhash]/>
<
input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/> 
Next (in same template) find:

PHP Code:
<form action="private.php?do=managepm&amp;folderid=$folderidmethod="post">
<
input type="hidden" name="s" value="$session[sessionhash]/> 
AFTER ADD:

PHP Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]/> 
Then it works in 3.7.x
Reply With Quote
  #249  
Old 01-06-2009, 01:26 AM
FlyBoy73 FlyBoy73 is offline
 
Join Date: Jan 2002
Location: Texas, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anyone planning to port this to work without mods to 3.7.4?
Reply With Quote
  #250  
Old 02-12-2009, 03:37 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FlyBoy73 View Post
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
Reply With Quote
  #251  
Old 02-23-2009, 03:25 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this mod permit us to set which usergroups can use this feature (permissions)?
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 07:32 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.05505 seconds
  • Memory Usage 2,437KB
  • 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
  • (2)bbcode_code
  • (6)bbcode_php
  • (5)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