Ignore:
Timestamp:
Feb 17, 2013, 12:52:57 PM (12 years ago)
Author:
mistic100
Message:

add bbcode bar on contactform

File:
1 edited

Legend:

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

    r20209 r20796  
    2121  remove_event_handler('render_comment_content', 'render_comment_content');
    2222  add_event_handler('render_comment_content', 'BBCodeParse');
     23  add_event_handler('render_contact_content', 'BBCodeParse');
    2324  add_event_handler('loc_after_page_header', 'add_bbcode_bar');
    2425}
     
    3132  {
    3233    $prefilter = 'picture';
     34    $textarea_id = 'contentid';
    3335  }
    3436  else if (
     
    3840  {
    3941    $prefilter = 'comments_on_albums';
     42    $textarea_id = 'contentid';
    4043  }
    4144  else if (isset($page['section']) and $page['section'] == 'guestbook')
    4245  {
    4346    $prefilter = 'index';
     47    $textarea_id = 'contentid';
     48  }
     49  else if (isset($page['section']) and $page['section'] == 'contact')
     50  {
     51    $prefilter = 'index';
     52    $textarea_id = 'cf_content';
    4453  }
    4554 
    4655  if (isset($prefilter))
    4756  {
    48     set_bbcode_bar($prefilter);
     57    set_bbcode_bar($prefilter, $textarea_id);
    4958  }
    5059}
Note: See TracChangeset for help on using the changeset viewer.