Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add "Post Excerpt" to search results Details »
Add "Post Excerpt" to search results
Mod Version: 1.00, by RustedBucket (Member) RustedBucket is offline
Developer Last Online: Sep 2013 I like it Show Printable Version Email this Page

vB Version: 4.0.0 Rating: (2 votes - 5.00 average) Installs: 13
Released: 08 Jan 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code Translations  

This mod is will add a post excerpt to the search results when searching for posts (like it was in VB 3.x).

What do I need to do?
There are two parts to this mod.
  • First step adds the post excerpt to the search_results_postbit template. This will make the excerpt display if you're using the Find All Threads by "User" In User Profile.
    Requires 1 template edit.
  • Second step modifies the Advanced Search to add a check box to select whether or not to show the excerpt when using global search.
    Requires 2 template edits

Installation

PART 1
AdminCP -> Styles & Templates -> Style Manager -> *YOUR STYLE* - I used the Default Style -> Search Templates -> SEARCH _RESULTS_POSTBIT

FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ADD BELOW:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

SAVE

* Yes I hardcoded the styling, the assumption being this will get added back to the core.
** If you don't care about having the excerpt show when using the global advanced search you can stop here. Otherwise continue..

PART 2
AdminCP -> Styles & Templates -> Style Manager -> *YOUR STYLE* - I used the Default Style -> Search Templates -> SEARCH_COMMON

FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ADD ABOVE

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

SAVE

AdminCP -> Styles & Templates -> Style Manager -> *YOUR STYLE* - I used the Default Style -> Search Templates -> SEARCH_INPUT_POST

FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ADD ABOVE


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

SAVE

And that is it - Job Done !

Please click "Installed" and rate this Thread.

Thank You.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	post-excerpt1.jpg
Views:	612
Size:	159.7 KB
ID:	109474   Click image for larger version

Name:	post-excerpt2.jpg
Views:	555
Size:	80.4 KB
ID:	109475   Click image for larger version

Name:	post-excerpt3.jpg
Views:	439
Size:	78.7 KB
ID:	109476  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 08 Jan 2010, 16:07
RustedBucket RustedBucket is offline
 
Join Date: Nov 2004
Real name: James
Reserved
Reply With Quote
  #3  
Old 26 Feb 2010, 14:04
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
thank you verymuch
Reply With Quote
  #4  
Old 27 Feb 2010, 12:31
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
it is working with 4.0.2 pl1

http://www.baghdad4ever.net/dros/vbulletin4/search6.JPG
Reply With Quote
  #5  
Old 29 Mar 2010, 12:00
Addams Addams is offline
 
Join Date: Jul 2009
Aw, thanks! This is really useful ^^

How can I made it checked by default? Thanks!

Sorry for my english.
Reply With Quote
  #6  
Old 31 Mar 2010, 20:45
sKippah sKippah is offline
 
Join Date: Oct 2008
Absolutly nice. Tagged

Is there a way to get this also for 2 languages? I am running a german/english board, and it would be nice if the sentence "Show post excerpt" changes, when someone is changing the board language. Thanks a lot
Reply With Quote
  #7  
Old 11 May 2010, 12:33
Muniesa Muniesa is offline
 
Join Date: Apr 2010
Thanks for the mod. Not as streamline as in vb3, but for a user mod it's great work!

For those interested in making the search tick the box by default, just insert


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

anywhere in the input type tag in steps 2 & 3.

E.g. I wrote had it as:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #8  
Old 11 Jun 2010, 13:51
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Installed and working well on vB4.0.3 PL1 - Thank You.
Reply With Quote
  #9  
Old 17 Aug 2010, 14:09
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Is this confirmed as woring on vB4.0.5 and 4.0.6, Please?
Reply With Quote
  #10  
Old 24 Sep 2010, 09:44
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Didn't work on my 4.0.6.

By The way, in vB4.0.6 the following codes are replaced with the code shown underneath...


OP's original code in: (SEARCH _RESULTS_POSTBIT)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In 4.0.6 it's replaced with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

OP's Original code in: (SEARCH_COMMON)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In 4.0.6 it's replaced with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


OP's original code in: (SEARCH_INPUT_POST)



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In 4.0.6 it's replaced with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #11  
Old 24 Jan 2011, 02:37
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Not working on 4.0.7

Please update.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:08.

Layout Options | Width: Wide Color: