Skip to:
Content

BuddyPress.org

Changeset 526


Ignore:
Timestamp:
11/10/2008 10:31:41 AM (18 years ago)
Author:
apeatling
Message:

Added site admin option to allow non-friend profile wire posts.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-admin.php

    r516 r526  
    2727                                        <td>
    2828                                                <input type="radio" name="bp-admin[show-loggedout-adminbar]"<?php if ( (int)get_site_option( 'show-loggedout-adminbar' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-show-loggedout-adminbar-yes" value="1" /> Yes &nbsp;
    29                                                 <input type="radio" name="bp-admin[show-loggedout-adminbar]"<?php if ( !(int)get_site_option( 'show-loggedout-adminbar' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-show-loggedout-adminbar-yes" value="0" /> No
     29                                                <input type="radio" name="bp-admin[show-loggedout-adminbar]"<?php if ( !(int)get_site_option( 'show-loggedout-adminbar' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-show-loggedout-adminbar-no" value="0" /> No
    3030                                        </td>                   
    3131                                </tr>
     32                                <?php if ( function_exists('bp_wire_install') ) { ?>
     33                                <tr>
     34                                        <th scope="row"><?php _e('Allow non-friends to post on profile wires', 'buddypress') ?>:</th>
     35                                        <td>
     36                                                <input type="radio" name="bp-admin[non-friend-wire-posting]"<?php if ( (int)get_site_option( 'non-friend-wire-posting' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-non-friend-wire-post" value="1" /> Yes &nbsp;
     37                                                <input type="radio" name="bp-admin[non-friend-wire-posting]"<?php if ( !(int)get_site_option( 'non-friend-wire-posting' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-non-friend-wire-post" value="0" /> No
     38                                        </td>                   
     39                                </tr>
     40                                <?php } ?>
    3241                        </tbody>
    3342                        </table>
  • trunk/bp-wire/bp-wire-templatetags.php

    r487 r526  
    4242                $this->wire_post_count = count($this->wire_posts);
    4343               
    44                 $this->can_post = $can_post;
     44                if ( (int)get_site_option('non-friend-wire-posting') && ( $bp['current_component'] == $bp['profile']['slug'] || $bp['current_component'] == $bp['wire']['slug'] ) )
     45                        $this->can_post = 1;
     46                else
     47                        $this->can_post = $can_post;
    4548               
    4649                $this->pag_links = paginate_links( array(
Note: See TracChangeset for help on using the changeset viewer.