Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,426 through 26,450 (of 32,570 total)
  • Author
    Search Results
  • #69642

    In reply to: bbPress Facebook page

    I think you summed it up awesomely. I know that I’ve only recently discovered bbPress, and that right now my contributions are minimal and certainly don’t justify the attitude that came out of my fingers. I do sincerely apologize for venting my frustrations, but Chris is totally right as far as login and theme integration go.

    I graduated to WordPress from phpBB and the CHBB categories hierarchy spin-off of phpBB2.x. What I love about WP, I hate about phpBB, and what I love about phpBB, I hate about WordPress. What the phpBB team always did well, was catalog and document their code and coding guidelines, almost always and from the start. Even though different authors wrote different pages, the code always looked the same and worked the same, but WP and BBP aren’t like that. Finding and repairing WP/BBP issues is becoming increasingly difficult as there are functions hidden within functions that add one extra capability just to echo other functions.

    If I could have a dream job right now, it would be to get paid to be the code janitor to the automatic teams code for the wp3.0 and bbpress 2.0 milestones. To refresh the codebase for the major revisions. Also coming from phpBB, I’m surprised to see WP uses so many echo statements all over the place. I feel the template engine that the phpBB Categories Hierarchy uses was just so amazing and worked so well that moving to WordPress felt like a step sidways.

    Anyhow, I’ve taken this topic way off topic, and I don’t mean to vent my ill feelings in what should be a celebration topic. If you mods want to clean this up or split this apart I would totally understand.

    Cheers!

    #69510
    chaslie
    Member

    Just had another idea !!!!! Would this scenerio work?

    Using 0.9.0.2

    In the KAKUMEI theme, can this line (Line 43): <?php if ( bb_forums() ) : ?>

    be replaced to to just call up on the front page only the forums that have a certain ID?

    Something like: <?php if ( bb_forums(ID=1,2,3,4,5) ) : ?>

    I don’t know PHP that well to be able to guess the actual code required. What do you think?

    Have tried what zappoman suggested here (https://bbpress.org/forums/topic/hide-subforums-on-main-page#post-21413) but cannot get it to work.

    #69640

    In reply to: bbPress Facebook page

    _ck_
    Participant

    I just disagree with promoting a product before it’s even usable.

    bbPress is very usable, just not finished. But it’s certainly *not* being promoted. All we have is this support forum. If it was being promoted, it would be listed on WordPress.org/WordPress.com and there would be hundreds of thousands of users. bbPress currently has less than 10,000 active installs. That should change by this time next year.

    bbPress was originally written by Matt to simply give a support forum for WordPress (WordPress.org). Everything from there was just Matt releasing the source. There never was a general plan after that until Matt started talking about TalkPress which is still very far away by my best guess.

    bbPress’s greatest strength is it can be integrated in many websites easily and made to look like them easily. But it’s still a growing child and very young. If you are looking for a polished product, you need something with over half a decade of development like phpBB, vBulletin or SMF. The downside to them is they are very rigid and hard to develop for. bbPress is incredibly easy to develop for, I only learned PHP a few years ago and look what I’ve managed to do. Just imagine what a person who knew what they were doing could do ;-)

    #69212
    _ck_
    Participant

    If you have your own server make sure you setup your mysql cache properly and even more importantly make sure you install some kind of PHP opcode cache (eaccelerator, xcache or APC). Even the fastest server will greatly benefit from an opcode cache.

    #4395
    wmnasef
    Member

    hi !

    am working on moving my site from phpbb3 to bbpress, of course there is no converters out there for that purpose, so i decided to write my own.

    am still testing it and trying to improve the code a little bit. right now it can convert the following :

    1- forums

    2- topics, completely with topic types and status.. announcements and glopal announcements are stickied to front page.

    3- posts, all bbcode is converted into html, smiles are changed into img tags, so you might want to install allow images plugin.

    4- users, including permissions .. notice that bbpress doesn’t support per forum permissions as phpbb3, so it only convert users as following :

    founder -> key master

    inactive -> inactive

    banned -> blocked

    moderators and admins are converted into normal users, so you have to assign them again

    because phpbb3 doesn’t use md5 hashing anymore, the script copies passwords as it is. to solve that problem i modified the md5 insecurity for bbpress plugin to first check the passwords the phpbb3 way, if it matches, it will rehash it using bbpress functions.

    the script converts all the table rows at once, so it’s very heavy and consumes too much cpu depending on your forum size, i strongly suggest that you do the conversion on your own machine, not on a shared hosting account. you might also want to increase the php max execution time on your machine before starting the script cause it takes lots of time converting posts.

    here is the steps for converting your phpbb3 board :

    1- make a backup from your database and files.

    2- install bbpress anywhere, just use the same database of phpbb3. this is important cause the script assumes that all tables are in the same database.

    3- download the script from here. extract it, and you’ll get 2 files.

    4- copy the file phpbb3tobbpress.php to phpbb3 directory.

    5- copy the file _phpbb3_pass.php to bb-plugins directory.

    6- go to http://path-to-phpbb3/phpbb3tobbpress.php and start converting your board.

    7- voila .. all your data is converted to bbpress tables, go to your bbpress installation and login. don’t forget to visit admin->manage->recount to make sure your converted board is updated.

    i can’t stress enough on how consuming is the process of converting posts, my board has 25,000 posts, and it takes nearly 15 minutes to convert them on my local machine, so again : i don’t recommend using this converter on shared hosting.

    ciao !

    #69211
    techypenguin
    Member

    hi u all. sorry for the late reply. i’ve got it sorted. it’s because of my server cache level is not enough for handling newer version of server software. I recently bought a hp proliant server and all the issues been sorted. thanks for the reply. i’m thinking to develop a plugin for bbpress now since i’m happy with my server.. ;)

    #4392

    I’m trying to improve on some breadcrumb code in the Edit Post section, and need to retrieve the forum ID from the post ID. Is this possible?

    #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();

Viewing 25 results - 26,426 through 26,450 (of 32,570 total)
Skip to toolbar