How do I Increase the Preview Lines in Search Results?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • David Copeland
    Senior Member
    • May 2000
    • 1354
    • 4.2.5

    How do I Increase the Preview Lines in Search Results?

    When we use the Advanced Search for:
    1. Type in User Name
    2. Change options to SHOW BY POSTS
    3. Choose SEARCH NOW

    Question: On the Search Results Page, we only see three lines of text from each post. Precisely how can I change that to increase the preview to 5-6 lines of text?

    Thanks,

    David

    DAVID COPELAND
    Licensed VB Holder Since 2000
    Celebrating 22 Years with VB
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    It appears this is hard coded into the search.php file:

    Code:
    			// get first 200 chars of page text
    			$post['pagetext'] = htmlspecialchars_uni(fetch_censored_text(trim(fetch_trimmed_title(strip_bbcode($post['pagetext'], 1), 200))));

    Comment

    • David Copeland
      Senior Member
      • May 2000
      • 1354
      • 4.2.5

      #3
      Originally posted by Jake Bunce
      It appears this is hard coded into the search.php file:

      Code:
      			// get first 200 chars of page text
      			$post['pagetext'] = htmlspecialchars_uni(fetch_censored_text(trim(fetch_trimmed_title(strip_bbcode($post['pagetext'], 1), 200))));
      Please tell me how I can find that file and if I can edit it to increase it to 400 chars.

      Thank you very much,

      Daviid

      DAVID COPELAND
      Licensed VB Holder Since 2000
      Celebrating 22 Years with VB

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        That file is in your main forum directory. Perhaps changing the '200' to '400' will help.

        Since this involves modifying the code, if you need further help please ask over at vbulletin.org.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...