Changeset 2195
- Timestamp:
- 12/17/2009 01:09:18 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
-
bp-forums.php (modified) (2 diffs)
-
bp-loader.php (modified) (1 diff)
-
bp-themes/bp-default/_inc/css/default.css (modified) (3 diffs)
-
bp-themes/bp-default/_inc/images/closed.png (added)
-
bp-themes/bp-default/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2194 r2195 309 309 do_action( 'bbpress_init' ); 310 310 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; 313 316 } 314 317 … … 321 324 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id; 322 325 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; 325 331 } 326 332 -
trunk/bp-loader.php
r2168 r2195 48 48 include( BP_PLUGIN_DIR . '/bp-xprofile.php' ); 49 49 50 /* Deactivation Function */ 51 function 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 } 63 register_deactivation_hook( __FILE__, 'bp_loader_deactivate' ); 64 50 65 ?> -
trunk/bp-themes/bp-default/_inc/css/default.css
r2194 r2195 515 515 margin: 0 -15px 9px -15px; 516 516 border-bottom: 1px solid #eaeaea; 517 padding: 015px 10px 15px;517 padding: 10px 15px 10px 15px; 518 518 color: #888; 519 519 font-size: 11px; … … 804 804 } 805 805 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 806 819 table.forum td p.topic-text { 807 820 color: #888; … … 851 864 padding-bottom: 20px; 852 865 } 866 #item-body form#whats-new-form { 867 margin-top: 20px; 868 } 869 853 870 .home-page form#whats-new-form { 854 871 border-bottom: none; -
trunk/bp-themes/bp-default/functions.php
r2170 r2195 1 1 <?php 2 3 /* Stop the theme from killing WordPress if BuddyPress is not enabled. */ 4 if ( !class_exists( 'BP_Core_User' ) ) 5 return false; 2 6 3 7 /* Register the widget columns */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)