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
  #212  
Old 05-04-2008, 12:50 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 ShMilO View Post
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.
Reply With Quote
  #213  
Old 05-07-2008, 07:22 PM
Vayu Vayu is offline
 
Join Date: Nov 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #214  
Old 05-08-2008, 07:44 AM
Legende Legende is offline
 
Join Date: Jan 2006
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #215  
Old 05-10-2008, 06:49 PM
Animparadise's Avatar
Animparadise Animparadise is offline
 
Join Date: Sep 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vayu View Post
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:
Reply With Quote
  #216  
Old 05-11-2008, 06:49 PM
peterle1 peterle1 is offline
 
Join Date: Nov 2004
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

EDIT: This is for 1.02
Reply With Quote
  #217  
Old 05-27-2008, 03:03 AM
markp_2000 markp_2000 is offline
 
Join Date: Jul 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using
Quote:
Originally Posted by Mark.B View Post
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
Reply With Quote
  #218  
Old 05-27-2008, 06:33 PM
Dark_Sirius Dark_Sirius is offline
 
Join Date: Aug 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will there be any updates for this for 3.7? This is an awesome mod!
Reply With Quote
  #219  
Old 05-29-2008, 09:19 PM
logicuk logicuk is offline
 
Join Date: Jan 2008
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah please someone update this sweet mod to vb 3.7
Reply With Quote
  #220  
Old 05-30-2008, 12:56 AM
afullcup afullcup is offline
 
Join Date: Jul 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #221  
Old 06-07-2008, 09:06 PM
karnevil karnevil is offline
 
Join Date: Feb 2007
Location: Derbyshire
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 09:24 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.22332 seconds
  • Memory Usage 2,341KB
  • 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
  • (9)bbcode_code
  • (2)bbcode_html
  • (4)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