Changeset 1030

Show
Ignore:
Timestamp:
05/01/08 04:07:55 (7 months ago)
Author:
_ck_
Message:

0.0.9 no longer necessary to modify edit-post.php in 0.9.0.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-attachments/trunk/bb-attachments.php

    r1021 r1030  
    66Author: _ck_ 
    77Author URI: http://bbShowcase.org 
    8 Version: 0.0.8 
     8Version: 0.0.9 
    99 
    1010License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     
    8686        if ($bb_attachments['title']) {add_filter('topic_title', 'bb_attachments_title',200);} 
    8787} 
     88add_action('post_edit_form','bb_attachments');  // auto-insert on post edit form 
    8889 
    8990} 
    9091 
    9192function bb_attachments($post_id=0) { 
     93global $bb_attachments_on_page; 
     94if (isset($bb_attachments_on_page)) {return;} else {$bb_attachments_on_page=true;}      // only insert once per page -> pre 0.9.0.2 
     95 
    9296if ($post_id==0) {if (isset($_GET['bb_attachments'])) {$post_id=intval($_GET['bb_attachments']);} else {global $bb_post; $post_id=$bb_post->post_id;}} 
    9397if ($post_id) { 
  • bb-attachments/trunk/readme.txt

    r1014 r1030  
    2020* make a directory `/bb-attachments/`  ABOVE your webroot ie.`/home/username/bb-attachments/`  
    2121* `chmod 777` the above `/bb-attachments/` directory 
    22 * edit `edit-post.php` and below `<?php edit_form(); ?>` put `<?php if (function_exists('bb_attachments')) {bb_attachments();} ?>` 
     22* (skip this step if your bbPress is 0.9.0.2 or newer) edit `edit-post.php` and below `<?php edit_form(); ?>` put `<?php if (function_exists('bb_attachments')) {bb_attachments();} ?>` 
    2323* install plugin in it's own bb-attachments directory in `my-plugins` then activate plugin  
    2424* there are some optional settings you can adjust in `bb-attachments.php` 
     
    4949* 0.0.6 advanced restrictions by file type & user role, upload form displays allowed file types 
    5050* 0.0.7 one more mime option for windows/no-shell-access users 
     51* 0.0.9 no longer necessary to edit `edit-post.php` template if using 0.9.0.2 or newer 
    5152         
    5253== To Do ==