Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Actron

Frage zu Update

Recommended Posts

Hast Du nur an der angegebenen Stelle gesucht oder im gesamten Dokument? Die zu ändernden Stellen sind nicht bei jedem in der selben Zeile.

Edited by Tankred

Share this post


Link to post

Nur die Stelle is ähnlich dem unten:

 	 if ($ibforums->input['hl'])

 	 {

    $keywords = str_replace( "+", " ", $ibforums->input['hl'] );

    

    if ( preg_match("/,(and|or),/i", $keywords) )

    {

   	 while ( preg_match("/,(and|or),/i", $keywords, $match) )

   	 {

      $word_array = explode( ",".$match[1].",", $keywords );

      

      if (is_array($word_array))

      {

     	 foreach ($word_array as $keywords)

     	 {

        $row['post'] = preg_replace( "/(^|\s)(".preg_quote($keywords, '/').")(\s|,|\.|!|<br|$)/is", "\\1<span class='searchlite'>\\2</span>\\3", $row['post'] );

     	 }

      }

   	 }

    }

So is der Fix:

//-----------------------------------------

// Highlight...

//-----------------------------------------

if ($ibforums->input['hl'])

{

$ibforums->input['hl'] = $std->clean_value(urldecode($ibforums->input['hl']));

$loosematch = strstr( $ibforums->input['hl'], '*' ) ? 1 : 0;

$keywords = str_replace( '*', '', str_replace( "+", " ", str_replace( '-', '', trim($ibforums->input['hl']) ) ) );

$word_array = array();

$endmatch1 = "";

$endmatch2 = "(.)";

Das andere finde ich auch nicht nzr ähnlich. Wohl doch 1.3...

cu

Bernd

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×