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)

Makc666 05-04-2008 12:50 PM

Quote:

Originally Posted by ShMilO (Post 1505782)
the page's name is : PM Search

how can i change the name ?

1. Open file product-pm_search.xml

2. Look for lines:
Code:

  // generate navbar
  $navbits[''] = "PM Search";//$vbphrase['confirm_deletion'];

3. Replace with lines:
Code:

  // 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.

Vayu 05-07-2008 07:22 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

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

Quote:

Originally Posted by Vayu (Post 1511951)
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

Quote:

Originally Posted by Mutt (Post 1504098)
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
Quote:

Originally Posted by Mark.B (Post 1502678)
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:
Code:

input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" />
Add below:
Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Then find:
Code:

<input type="text" class="bginput" name="searchuser" id="userfield_txt" size="35"  value="$searchuser" style="width:250px" autocomplete="off" />
Add below:
Code:

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

Code:

<!-- 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&amp;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:

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:

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.


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

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.01498 seconds
  • Memory Usage 1,821KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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