Ignore:
Timestamp:
Jun 24, 2012, 3:10:25 PM (12 years ago)
Author:
mistic100
Message:

-move some code from Comments on Albums
-compatible with GuestBook
-fix TextColor menu
-clean index.php

File:
1 edited

Legend:

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

    r11377 r15998  
    2626function add_bbcode_bar()
    2727{
    28   global $page;
     28  global $page, $pwg_loaded_plugins;
    2929 
    3030  if (isset($page['body_id']) AND $page['body_id'] == 'thePicturePage')
    3131  {
    32     set_bbcode_bar();
     32    $prefilter = 'picture';
     33  }
     34  else if (
     35    script_basename() == 'index' and isset($pwg_loaded_plugins['Comments_on_Albums'])
     36    and isset($page['section']) and $page['section'] == 'categories' and isset($page['category'])
     37    )
     38  {
     39    $prefilter = 'comments_on_albums';
     40  }
     41  else if (isset($_GET['/guestbook']))
     42  {
     43    $prefilter = 'index';
     44  }
     45 
     46  if (isset($prefilter))
     47  {
     48    set_bbcode_bar($prefilter);
    3349  }
    3450}
Note: See TracChangeset for help on using the changeset viewer.