Changeset 1264 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
02/12/08 00:07:56 (4 years ago)
Author:
hverton
Message:

added new [wiki] bbcode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1240 r1264  
    536536    $text = preg_replace('#\[center\](.*?)\[/center\]#si', '<center>\1</center>', $text); 
    537537 
     538    // new youtube bbcode 
    538539    $text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/\1"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="wmode" value="transparent"></param></object>', $text); 
     540 
     541    // new wiki bbcode 
     542    $text = preg_replace('#\[wiki\](.*?)\[/wiki\]#si', '<a href="'.BASEDIR.'modules/wiki/index.php?wakka=\1" class="wiki_link" alt="">\1</a>', $text); 
    539543 
    540544    // correct illegal [url=] BBcode 
Note: See TracChangeset for help on using the changeset viewer.