Changeset 1274 in ExiteCMS


Ignore:
Timestamp:
02/12/08 14:46:25 (4 years ago)
Author:
hverton
Message:

Make sure only complete words are checked against the wiki tag list
Corrected the wikilink CSS tag

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forum_functions_include.php

    r1273 r1274  
    400400        $result = dbquery("SELECT DISTINCT tag FROM ".$db_prefix."wiki_pages"); 
    401401        while ($data = dbarray($result)) { 
    402             $search[] = "/(\b".$data['tag']."\b)/is"; 
    403             $replace[] = " [wiki]\\1[/wiki] "; 
     402            $search[] = "/(\s)(".$data['tag'].")(\s)/is"; 
     403            $replace[] = "\\1[wiki]\\2[/wiki]\\3"; 
    404404        } 
    405405        $message = preg_replace($search, $replace, $message); 
  • trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl

    r1273 r1274  
    3535 
    3636                        /* wiki links */ 
    37 a:link.wiki_link        { text-decoration:none; border-width:0px 0px 1px 0px; border-style:dotted; border-color:#9c0204; } 
     37a.wiki_link:link, a.wiki_link:visited 
     38                        { text-decoration:none; border-width:0px 0px 2px 0px; border-style:dotted; border-color:#9c0204; } 
    3839 
    3940                        /* horizontal lines */ 
Note: See TracChangeset for help on using the changeset viewer.