Changeset 903
- Timestamp:
- 01/22/2009 08:10:11 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-bbpress-live.php
r827 r903 592 592 function get_topic_details( $topic ) 593 593 { 594 $key = md5( 'topic_' . $topic ); 595 596 if ( $topic = $this->cache_get( $key ) ) { 597 return $topic; 598 } 599 594 600 if ( !$topic = $this->fetch->query( 'bb.getTopic', array( $topic ) ) ) { 595 601 return false; 596 602 } 597 603 604 $this->cache_update( $key, $topic ); 605 598 606 return $topic; 599 607 } 600 608 601 609 function new_forum( $name = '', $desc = '', $parent = 0, $order = 0, $is_category = false ) 602 { 610 { 603 611 if ( !$forum = $this->fetch->query( 'bb.newForum', array( array( 'name' => $name, 'description' => $desc, 'parent' => $parent, 'order' => $order, 'is_category' => $is_category ) ) ) ) { 604 612 return false; … … 626 634 627 635 function get_post( $post = 0 ) 628 { 636 { 637 $key = md5( 'post_' . $post ); 638 639 if ( $post = $this->cache_get( $key ) ) { 640 return $post; 641 } 642 629 643 if ( !$post = $this->fetch->query( 'bb.getPost', array( $post ) ) ) { 630 644 return false; 631 645 } 632 646 647 $this->cache_update( $key, $post ); 648 633 649 return $post; 634 650 } … … 642 658 } 643 659 660 $key = md5( 'post_' . $post->post_id ); 661 $this->cache_update( $key, $post ); 662 644 663 return $post; 645 664 } … … 653 672 } 654 673 674 $key = md5( 'topic_' . $topic->topic_id ); 675 $this->cache_update( $key, $post ); 676 655 677 return $topic; 656 678 } -
trunk/buddypress-theme/member-themes/buddypress-member/css/base.css
r888 r903 54 54 input, select, textarea { width: 100%; } 55 55 56 input#submit {56 input#submit, p.submit input { 57 57 width: auto; 58 58 } 59 p.submit { margin-top: 1em; font-size: 1.4em; } 59 60 60 61 .inner-tube { -
trunk/buddypress-theme/member-themes/buddypress-member/css/wire.css
r566 r903 13 13 font: normal 1em "Lucida Grande", "Lucida Sans Unicode", Arial, Tahoma, sans-serif; 14 14 } 15 16 #wire-post-submit {17 font-size: 1.4em;18 } -
trunk/buddypress-theme/member-themes/buddypress-member/groups/forum/index.php
r686 r903 91 91 <input type="text" name="topic_tags" id="topic_tags" value="" /> 92 92 93 < input type="submit" name="submit_topic" id="submit_topic" value="Post Topic"/>93 <p class="submit"><input type="submit" name="submit_topic" id="submit" value="Post Topic"/></p> 94 94 </div> 95 95 -
trunk/buddypress-theme/member-themes/buddypress-member/groups/forum/topic.php
r686 r903 74 74 <p><?php _e( 'Add a reply:', 'buddypress' ) ?></p> 75 75 <textarea name="reply_text" id="reply_text"></textarea> 76 < input type="submit" name="submit_reply" id="submit_reply" value="Post Reply"/>76 <p class="submit"><input type="submit" name="submit_reply" id="submit" value="Post Reply"/></p> 77 77 </div> 78 78
Note: See TracChangeset
for help on using the changeset viewer.