Skip to:
Content

BuddyPress.org

Changeset 903


Ignore:
Timestamp:
01/22/2009 08:10:11 PM (16 years ago)
Author:
apeatling
Message:

Fixed internal forum caching
Fixed forum posting buttons.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-bbpress-live.php

    r827 r903  
    592592    function get_topic_details( $topic )
    593593    {
     594        $key = md5( 'topic_' . $topic );
     595       
     596        if ( $topic = $this->cache_get( $key ) ) {
     597            return $topic;
     598        }
     599               
    594600        if ( !$topic = $this->fetch->query( 'bb.getTopic', array( $topic ) ) ) {
    595601            return false;
    596602        }
    597603       
     604        $this->cache_update( $key, $topic );
     605       
    598606        return $topic;
    599607    }
    600608
    601609    function new_forum( $name = '', $desc = '', $parent = 0, $order = 0, $is_category = false )
    602     {
     610    {               
    603611        if ( !$forum = $this->fetch->query( 'bb.newForum', array( array( 'name' => $name, 'description' => $desc, 'parent' => $parent, 'order' => $order, 'is_category' => $is_category ) ) ) ) {
    604612            return false;
     
    626634   
    627635    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       
    629643        if ( !$post = $this->fetch->query( 'bb.getPost', array( $post ) ) ) {
    630644            return false;
    631645        }
    632646
     647        $this->cache_update( $key, $post );
     648       
    633649        return $post;       
    634650    }
     
    642658        }
    643659       
     660        $key = md5( 'post_' . $post->post_id );
     661        $this->cache_update( $key, $post );
     662       
    644663        return $post;
    645664    }
     
    653672        }
    654673       
     674        $key = md5( 'topic_' . $topic->topic_id );
     675        $this->cache_update( $key, $post );
     676       
    655677        return $topic;
    656678    }
  • trunk/buddypress-theme/member-themes/buddypress-member/css/base.css

    r888 r903  
    5454input, select, textarea { width: 100%; }
    5555
    56 input#submit {
     56input#submit, p.submit input {
    5757    width: auto;
    5858}
     59    p.submit { margin-top: 1em; font-size: 1.4em; }
    5960
    6061.inner-tube {
  • trunk/buddypress-theme/member-themes/buddypress-member/css/wire.css

    r566 r903  
    1313    font: normal 1em "Lucida Grande", "Lucida Sans Unicode", Arial, Tahoma, sans-serif;
    1414}
    15 
    16 #wire-post-submit {
    17     font-size: 1.4em;
    18 }
  • trunk/buddypress-theme/member-themes/buddypress-member/groups/forum/index.php

    r686 r903  
    9191                            <input type="text" name="topic_tags" id="topic_tags" value="" />
    9292                   
    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>
    9494                        </div>
    9595                   
  • trunk/buddypress-theme/member-themes/buddypress-member/groups/forum/topic.php

    r686 r903  
    7474                        <p><?php _e( 'Add a reply:', 'buddypress' ) ?></p>
    7575                        <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>
    7777                    </div>
    7878                   
Note: See TracChangeset for help on using the changeset viewer.