Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,351 through 26,375 (of 32,481 total)
  • Author
    Search Results
  • #69634

    Perfect!

    …in theme/topics.php…

    <?php If (ceil($topic->topic_posts/bb_get_option('page_topics'))>1) { ?>
    <div class="topic-page">
    <?php topic_pages();?>
    </div>
    <?php } ?>

    #69638

    In reply to: bbPress Facebook page

    Well, I’m not missing the point of final products, but WordPress is at version 2.7 and isn’t quite a final product either. The result of the community driven open source product is that pre 1.0 alpha/beta software isn’t really any more or less stable than the next “stable” version, because even if development stops for a moment to celebrate the next milestone, there is still more to do.

    I also get how bbPress was introduced and how the developers have chosen to support it. I just disagree with promoting a product before it’s even usable. I guess I take more pride in my product than that. I run the trunk version of both WP and BBP on a relatively small website. I update them nightly. It’s really the best way for me to stay involved and report back problems. I just feel this integration issue is way more important than the attention it gets. It just seems to me like it’s never really worked right ever. :/

    And I also choose personally to not believe that just because a product is graciously delivered to someone for free, that there aren’t certain expectations placed on the quality of that product. I could give someone a cookie, but if it’s stale or poisoned doesn’t really make me a good friend.

    Also, the last thing I want to do is bite the hand that feeds me. I really love bbPress and WordPress, promise. I just find the development cycle frustrating some days.

    (Off topic: We’ve called animal control, the police, and the condo association. The police say they can’t give her a ticket if she isn’t home, and when she’s home the dog doesn’t bark so they can’t ticket her then either. They’re useless. Animal control told me that if I do not have proof of cruelty in terms of the dog not having adequate food and water, they will not pursue the owner. The condo association is writing her their third letter asking her to correct the issue. Writing a letter is less effective than posting on a forum. ;) )

    #69670
    _ck_
    Participant

    The full template can be confusing to non-coders.

    This concept has been covered several times around here, it’s quite simple.

    Just replace

    <?php topic_last_poster(); ?>

    with

    <a href="<?php topic_last_post_link(); ?>"><?php topic_last_poster(); ?></a>

    in the front-page.php, forum.php, view.php and tag.php templates

    #69633
    _ck_
    Participant

    To figure out pages is easy.

    You lookup how many posts are in the topic and then you divide by the page_topics setting which also happens to be the posts per page setting.

    something like:

    $pages=ceil($topic->topic_posts/bb_get_option('page_topics'));

    #4389

    Topic: bbPress Romania

    in forum Showcase
    silvers
    Member

    Hello people and hello to all the people in Romania that are using bbPress.

    I made a support forum for bbPress in romanian language .

    Forum address : http://bbPress.webshow.ro

    I have also made a installation tutorial with pictures : http://bbpress.webshow.ro/topic/instalare-bbpress

    Hope you like it and you will join the romanian forum also :)

    #69619

    In reply to: New forum layout

    Hold down shift and refresh. WHAM it’s wide screen (I thought I was loosing my mind yesterday).

    I like it :)

    #4388
    Bharat Karavadra
    Participant

    Sometimes forum topics are so interesting that they get many replies and bbPress v0.9.0.2 does not have any links to the latest reply when you go to a topic.

    So I created one as you will see when you go to any of the topics in the Set Forever forum.

    Here’s a link to the code update to the Kakumei theme for the topic.php file:

    http://www.setforever.org/blog/2008/bbpress-v0902-how-to-add-a-link-to-the-latest-posted-reply-message-in-a-topic/

    #69618

    In reply to: New forum layout

    Olaf Lederer
    Participant

    Ok I see the avatars but else it looks the same to me :)

    maybe I should visit this forum more often …

    #69613

    In reply to: New forum layout

    If a guy wanted to try and go for the gold and make the new official bbPress.org theme, who would he talk to about such things? :)

    #69612

    In reply to: New forum layout

    chrishajer
    Participant

    Much better :-)

    #69611

    In reply to: New forum layout

    chrishajer
    Participant

    How about the spacing after a code block?

    10 PRINT "HELLO WORLD"

    20 GOTO 10

    How much space is there above this line, after the code block?`

    #69610

    In reply to: New forum layout

    chrishajer
    Participant

    Nope :(

    #69608

    In reply to: New forum layout

    Much better so far! The width was a major issue and it’s good to see gravatars again! :)

    #63015
    chaslie
    Member

    Guys – all your ‘pastebin’ code has disappeared from that site. Eight months has elapsed since the post before this one. Any chance it can be added back again please? Or is there documentation somewhere else. Thanks for the trouble.

    #69589

    Oh, so true! So true! That’s what she keeps me around for ;) nice new Gravatar, BTW.

    #69588
    _ck_
    Participant

    I’m afraid I do qualify for too many of the “Granny” points – large fonts, too many cats, health problems, etc. LOL!

    But I bet your granny can’t write PHP or javascript so that makes me feel better somehow… ;-)

    #69585

    I don’t see any ads (and I block them too).

    Immelody, I would suggest making the border around the login info boxes (for name and password) darker. I almost missed where they were and wondered how people logged in :)

    #69505

    In reply to: counting forums

    _ck_
    Participant

    Okay if you want something simple you can make this into a mini-plugin:

    (call it forum-totals.php)

    <?php
    /*
    Plugin Name: Forum Totals
    */

    function forum_totals() {
    global $forum_id;
    $forum = get_forum( $forum_id ); $topics=$forum->topics; $posts=$forum->posts;
    $forums=get_forums(array('child_of' => $forum_id)); $count=0;
    if ($forums) {foreach ($forums as $forum) {$count++; $topics+=$forum->topics; $posts+=$forum->posts;}}
    echo "<tr style='background:#ccc;'><td align='right'>$count total forums:</td><td class='num'>$topics</td><td class='num'>$posts</td></tr>";
    }

    function forum_topics_including_subforums( $forum_id = 0 ) {
    echo apply_filters( 'forum_topics', get_forum_topics_including_subforums( $forum_id ), $forum_id );
    }

    function forum_posts_including_subforums( $forum_id = 0 ) {
    echo apply_filters( 'forum_posts', get_forum_posts_including_subforums( $forum_id ), $forum_id );
    }

    function get_forum_topics_including_subforums( $forum_id = 0 ) {
    $forum_id=get_forum_id( $forum_id );
    $forum = get_forum( $forum_id ); $topics=$forum->topics;
    $forums=get_forums(array('child_of' => $forum_id));
    if ($forums) {foreach ($forums as $forum) {$topics+=$forum->topics;}}
    return apply_filters( 'get_forum_topics', $topics, $forum_id );
    }

    function get_forum_posts_including_subforums( $forum_id = 0 ) {
    $forum_id=get_forum_id( $forum_id );
    $forum = get_forum( $forum_id ); $posts=$forum->posts;
    $forums=get_forums(array('child_of' => $forum_id));
    if ($forums) {foreach ($forums as $forum) {$posts+=$forum->posts;}}
    return apply_filters( 'get_forum_posts', $posts, $forum_id );
    }
    ?>

    Install and activate it and then you need to put

    <?php forum_totals(); ?>

    anywhere you want to see it, on front-page.php or forum.php templates.

    It should go between the endwhile and the </table>

    Like this:

    <?php  endwhile; ?>
    <?php forum_totals(); ?>
    </table>

    To use the replacement functions for forum_topics() and forum_posts() which include the totals for a forum including it’s subforums, simply replace them in your templates with forum_topics_including_subforums(); and forum_posts_including_subforums();

    #4377
    #69573
    _ck_
    Participant

    The state the trunk is in right now needs a great deal more bug reports – I find at least one new problem every time I try it because they keep changing chunks of code that are critical with backwards compatibility.

    You don’t want to unleash it as a regular release in that state, even as an alpha, because despite my constant warnings and explanations, people use the alpha on live, active sites, usually because they absolutely have to use the very newest WordPress despite it’s bloat and bugs.

    I’m fairly certain there will be another alpha release before the end of the year though.

    If you know how to use SVN then you can help contribute with quality bug reports on TRAC.

    #65027

    In reply to: Profile not updating.

    It’s maaaagic… :)

    #69054
    Nipon
    Member

    I did as johnjamesj said (except that i left “secure auth” cookie salt as blank because I don’t see it anywhere) I am on wp 2.7rc1 and bb1.0a2. After installing, BB integrated and extracted the wp admin id to assign it the keymaster role. But I could not login in the newly created forum. On the WP side, I was stripped of my admin status and told that I don’t have the permissions.. bla bla. After initial panic, I edited wp_capabilities (under wp_usermeta). It was changed by BB to

    a:1:{s:9:"keymaster";b:1;}

    I changed it to

    a:1:{s:13:"administrator";b:1;}

    and got back admin powers in wp much to my relief.

    But the problem remains, I can’t login to BB. Something is seriously wrong.

    #4380
    Immelody
    Member

    I tweaked two similiar themes to create one that looks nearly identical. I wanted to post them here. If anyone would like me to zip the themes up, I would be willing to.

    I do want to give credit to the person who created the themes in the first place. I’m not great with coming up with raw code so really all the credit is theirs.

    bbPress original theme – http://bbshowcase.org/forums/?bbtheme=MistyMorning-bbpress

    WordPress original theme – http://themeterminal.com/demo/index.php?wptheme=Ad+Clerum

    My merged theme – http://www.asparenting.com

    #69561
    wiseacre
    Member

    I mark it as resolved :)

    > Rev. 1828 seems working …

    > Our support guys say it’s depends of files permissions – they must be not more 755.

    After

    chmod -R 755 bbpress

    it’s working too …

    And I don’t use dreamhost :))

    Thanks all :)

    #69571
    wiseacre
    Member

    I know what is SVN, man :) And use it every day, for bbpress tests too. But alphas are good for bug reports, help others and wordpress integration testing. We sould discuss one named pie of code. I love digits (rev numbers are digits too), it’s my job, but the people is normal guys collection.

Viewing 25 results - 26,351 through 26,375 (of 32,481 total)
Skip to toolbar