Ignore:
Timestamp:
05/15/08 15:10:13 (4 years ago)
Author:
hverton
Message:

fixed typo in the color BBcode parser
fixed failure in parsing URL BBcode when it had a WikiLink match in the URL
fixed bug in groupaccess() causing a query failure for webmasters
fixed not setting the last login date when confirming a registration (which auto logs in the user)
added a "View Posts" button to the forum index and the thread index pages, which gives you a flat list (newest first) with a search option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forum_functions_include.php

    r1305 r1401  
    383383    if (strlen($rawmsg)) $message .= $rawmsg; 
    384384 
    385     // find remaining URL's in the text, and convert them to a href as well 
    386     $pattern = '#(^|[^\"=]{1})(https?://|ftp://|mailto:|news:)([^(,\s<>\[\]\)]+)([,\s\n<>\)]|$)#sme'; 
    387     $message = preg_replace($pattern,"'$1<a href=\'$2$3\' target=\'_blank\'>'.shortenlink('$2$3',83).'</a>$4'",$message); 
    388     // re-insert the saved url blocks 
    389     foreach($urlblocks as $urlblock) { 
    390         // find the first placeholder 
    391         $i = strpos($message, "{@@**@@}"); 
    392         $message = substr($message, 0, $i).$urlblock.substr($message, $i+8); 
    393     } 
    394  
    395385    // detect and convert wikitags to wiki bbcodes if needed 
    396386    if (isset($settings['wiki_forum_links'])  && $settings['wiki_forum_links']) { 
     
    405395        $message = preg_replace($search, $replace, $message); 
    406396    } 
     397 
     398    // find remaining URL's in the text, and convert them to a href as well 
     399    $pattern = '#(^|[^\"=]{1})(https?://|ftp://|mailto:|news:)([^(,\s<>\[\]\)]+)([,\s\n<>\)]|$)#sme'; 
     400    $message = preg_replace($pattern,"'$1<a href=\'$2$3\' target=\'_blank\'>'.shortenlink('$2$3',83).'</a>$4'",$message); 
     401    // re-insert the saved url blocks 
     402    foreach($urlblocks as $urlblock) { 
     403        // find the first placeholder 
     404        $i = strpos($message, "{@@**@@}"); 
     405        $message = substr($message, 0, $i).$urlblock.substr($message, $i+8); 
     406    } 
     407 
    407408    // parse the smileys in the message 
    408409    if ($smileys) $message = parsesmileys($message); 
Note: See TracChangeset for help on using the changeset viewer.