Changeset 1036
- Timestamp:
- 05/01/08 12:22:51 (7 months ago)
- Files:
-
- bb-attachments/trunk/bb-attachments.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-attachments/trunk/bb-attachments.php
r1034 r1036 39 39 $bb_attachments['max']['filename']['default']=40; // maximum length of filename before auto-trim 40 40 $bb_attachments['max']['filename']['administrate']=80; // override 41 42 $bb_attachments['style']="#thread .post li {clear:none;}"; 41 43 42 44 // stop editing here (advanced user settings below) … … 90 92 add_action('post_form','bb_attachments_upload_form'); // auto-insert on new post form 91 93 add_action('pre_post_form','bb_attachments_enctype'); // multipart workaround on new post form 94 if ($bb_attachments['style']) {add_action('bb_head', 'bb_attachments_add_css');} // add css if present (including Kakumei 0.9.0.2 LI fix!) 92 95 } 93 96 … … 96 99 function bb_attachments_uri($uri) {remove_filter( 'bb_get_option_uri','bb_attachments_uri',999); 97 100 return $uri. 'bb-post.php" enctype="multipart/form-data" hack="';} 101 102 function bb_attachments_add_css() { global $bb_attachments; echo '<style type="text/css">'.$bb_attachments['style'].'</style>';} // inject css 98 103 99 104 function bb_attachments($post_id=0) {
