View Full Version : Search Results.
November 10th, 2012, 04:12 PM
Not sure if this has been asked before but its been asked if I can extend the title in the search results, EG when you click "last day" and the search results are listed the title is cut off "Empty pin shell for a ... "
I'd like to make it so the full title shows.
November 10th, 2012, 04:42 PM
Not without altering the code maybe remove this line in search.php
$getproduct[title] = ( strlen($getproduct[title]) > 22 ? substr($getproduct[title],0,22)."..." : $getproduct[title] );
November 11th, 2012, 02:35 PM
If you remove the line then the full title shows. If you want to show more of the title but maybe not the whole thing you can change the 22 on the line above to say 40 or 50
November 11th, 2012, 03:16 PM
Thanks Chuck, that did the trick.
November 11th, 2012, 03:28 PM
yep we limit the title for display purposes some people use really long titles and break displays.
November 12th, 2012, 12:51 AM
Yeah I just changed it to 60.
While I have this open is there an option to disable the redirect message when searching?
November 12th, 2012, 08:27 AM
If you are referring the option to skip redirect pages no there is no option for that. I know vb has that option in there software. Good idea for a future inclusion though.
What your talking about is like a 2 minute modification. In the forward function of pp-inc.php an if else clause over some future setting that does the forward function if you want redirect messages and if not then all that needs to be ran is a simple php header statement.
header('some url here');
November 14th, 2012, 09:25 AM
Maybe quick and dirty hack would be to make the forward function in pp-inc.php this
function forward( $redirect, $msg = "" )
global $Globals, $pp_phrase, $Style, $User, $ppopen, $ppclose, $vbnoheader, $vboptions;
global $contentmeta, $doctype;
$success = header ('Location: $redirect' );
December 10th, 2012, 08:45 AM
The search titles being clickable has been included in 5.23
December 20th, 2012, 02:13 PM
I will add the ability to bypass the forward screens in the next release.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.