Skip to:
Content

BuddyPress.org

Changeset 2195


Ignore:
Timestamp:
12/17/2009 01:09:18 PM (17 years ago)
Author:
apeatling
Message:

Added styles for sticky and closed forum topics.

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2194 r2195  
    309309        do_action( 'bbpress_init' );
    310310
    311         $query = new BB_Query( 'topic', array( 'page' => 1, 'per_page' => false, 'count' => true ) );
    312         return $query->count;
     311        $query = new BB_Query( 'topic', array( 'page' => 1, 'per_page' => -1, 'count' => true ) );
     312        $count = $query->count;
     313        $query = null;
     314
     315        return $count;
    313316}
    314317
     
    321324                $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id;
    322325
    323         $query = new BB_Query( 'topic', array( 'topic_author_id' => $user_id, 'page' => 1, 'per_page' => false, 'count' => true ) );
    324         return $query->count;
     326        $query = new BB_Query( 'topic', array( 'topic_author_id' => $user_id, 'page' => 1, 'per_page' => -1, 'count' => true ) );
     327        $count = $query->count;
     328        $query = null;
     329
     330        return $count;
    325331}
    326332
  • trunk/bp-loader.php

    r2168 r2195  
    4848        include( BP_PLUGIN_DIR . '/bp-xprofile.php' );
    4949
     50/* Deactivation Function */
     51function bp_loader_deactivate() {
     52        if ( !function_exists( 'delete_site_option') )
     53                return false;
     54
     55        delete_site_option( 'bp-core-db-version' );
     56        delete_site_option( 'bp-activity-db-version' );
     57        delete_site_option( 'bp-blogs-db-version' );
     58        delete_site_option( 'bp-friends-db-version' );
     59        delete_site_option( 'bp-groups-db-version' );
     60        delete_site_option( 'bp-messages-db-version' );
     61        delete_site_option( 'bp-xprofile-db-version' );
     62}
     63register_deactivation_hook( __FILE__, 'bp_loader_deactivate' );
     64
    5065?>
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r2194 r2195  
    515515        margin: 0 -15px 9px -15px;
    516516        border-bottom: 1px solid #eaeaea;
    517         padding: 0 15px 10px 15px;
     517        padding: 10px 15px 10px 15px;
    518518        color: #888;
    519519        font-size: 11px;
     
    804804        }
    805805
     806        table.forum tr.sticky td {
     807                background: #FFF9DB;
     808                border-top: 1px solid #FFE8C4;
     809                border-bottom: 1px solid #FFE8C4;
     810        }
     811
     812        table.forum tr.closed td.td-title {
     813                padding-left: 35px;
     814                background-image: url( ../images/closed.png );
     815                background-position: 15px 50%;
     816                background-repeat: no-repeat;
     817        }
     818
    806819        table.forum td p.topic-text {
    807820                color: #888;
     
    851864        padding-bottom: 20px;
    852865}
     866        #item-body form#whats-new-form {
     867                margin-top: 20px;
     868        }
     869
    853870        .home-page form#whats-new-form {
    854871                border-bottom: none;
  • trunk/bp-themes/bp-default/functions.php

    r2170 r2195  
    11<?php
     2
     3/* Stop the theme from killing WordPress if BuddyPress is not enabled. */
     4if ( !class_exists( 'BP_Core_User' ) )
     5        return false;
    26
    37/* Register the widget columns */
Note: See TracChangeset for help on using the changeset viewer.