Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improved "Find" button
Author Message
x-Treme
MyBB Freak!



Posts: 358
Joined: Sep 2008
Reputation: 6
Post: #1
Improved "Find" button
You know how when you click the edit button in the postbit, it gives you the option of performing quick edit or full edit?
This will allow the "Find" button to work the same way. By default, clicking the Find button searches for the user's posts. Now when clicking the "Find" button, you will have two options...Find all threads of the poster, or find all posts of the poster.

Open postbit -> postbit_find template
Find:
Code:
<a href="search.php?action=finduser&amp;uid={$post['uid']}"><img src="{$theme['imglangdir']}/postbit_find.gif" alt="{$lang->postbit_find}" title="{$lang->postbit_find}" /></a>

Replace with:
Code:
<a href="search.php?action=finduser&amp;uid={$post['uid']}" id="find" style="text-decoration:none;"><img src="{$theme['imglangdir']}/postbit_find.gif" alt="{$lang->postbit_find}" title="{$lang->postbit_find}" /></a>
<div id="find_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="search.php?action=finduserthreads&amp;uid={$post['uid']}" class="popup_item">Find All Threads</a></div><div class="popup_item_container"><a href="search.php?action=finduser&amp;uid={$post['uid']}" class="popup_item">Find All Posts</a></div></div>
<script type="text/javascript">
// <!--
    if(use_xmlhttprequest == "1")
    {
        new PopupMenu("find");
    }
// -->
</script>

Preview:

  find.png (Size: 13.61 KB / Downloads: 48)
02-08-2011, 06:26 AM
Mr-Trainor
Senior Member



Posts: 384
Joined: Mar 2010
Reputation: 6
Post: #2
RE: Improved "Find" button
This is quite a good idea, thanks for the tutorial . I may soon be implementing this .
02-10-2011, 08:32 PM
Zukdeen
Junior Member


Posts: 21
Joined: Oct 2010
Reputation: 0
Post: #3
RE: Improved "Find" button
Thanks for this tutorial! I'm implementing it
02-11-2011, 10:13 AM
FBI
Premium User


Posts: 11
Joined: Feb 2009
Reputation: 0
Post: #4
RE: Improved "Find" button
ah nice tuts
02-16-2011, 03:44 AM
Mets081234
Junior Member


Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #5
RE: Improved "Find" button
nice tutorial thanks!
02-16-2011, 10:46 AM
members
Junior Member


Posts: 42
Joined: Jan 2011
Reputation: 0
Post: #6
RE: Improved "Find" button
Very nice tut, I'm definitely going to use this.
02-16-2011, 05:28 PM
Mazi1577
Junior Member


Posts: 33
Joined: Jun 2010
Reputation: 0
Post: #7
RE: Improved "Find" button
Thanks man! ^,^
02-19-2011, 06:46 AM
Rtk
Junior Member


Posts: 7
Joined: Feb 2011
Reputation: 0
Post: #8
RE: Improved "Find" button
Terrific, will implement this.
02-19-2011, 11:59 AM
LeeFish
SimFish


Posts: 76
Joined: Nov 2009
Reputation: 1
Post: #9
RE: Improved "Find" button
Thats very neat - and congrats to XTreme on the promotion
02-22-2011, 05:42 PM
fma965
Member


Posts: 78
Joined: Jul 2011
Reputation: 0
Post: #10
RE: Improved "Find" button
thanks
08-01-2011, 06:07 AM
 




User(s) browsing this thread: 2 Guest(s)