Ignore:
Timestamp:
Apr 1, 2011, 10:54:39 PM (14 years ago)
Author:
mistic100
Message:

[extentions] BBCode Bar

  • uses markItUp!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/bbcode_bar/main.inc.php

    r9765 r9965  
    1212define('BBcode_DIR' , basename(dirname(__FILE__)));
    1313define('BBcode_PATH' , PHPWG_PLUGINS_PATH . BBcode_DIR . '/');
     14define('BBcode_codes', serialize(array('b','i','u','s','p','center','right','quote','ul','ol','img','url','email','size','color')));
    1415
    1516include_once(BBcode_PATH.'bbcode_bar.inc.php');
     
    2526function add_bbcode_bar() {
    2627        global $page;
    27         if ($page['body_id'] == 'theCommentsPage' OR $page['body_id'] == 'thePicturePage') {
     28       
     29        if (isset($page['body_id']) AND $page['body_id'] == 'thePicturePage') {
    2830                set_bbcode_bar();
    2931        }
     
    4345}
    4446
     47
    4548?>
Note: See TracChangeset for help on using the changeset viewer.