Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,376 through 28,400 (of 32,481 total)
  • Author
    Search Results
  • #62467

    In reply to: Redirecting Error

    Olaf Lederer
    Participant

    you have three slashes:

    http:///mobile…

    :-)

    #62452
    chrishajer
    Participant

    Not sure why, but you’re missing all the topic poster name stuff:

    topic_poster
    topic_poster_name
    topic_last_poster
    topic_last_poster_name

     

    Maybe there was an error with the name you selected when you setup the forum? Maybe it didn’t like a special character or something?

    It’s not a problem with the database but a problem with the data that’s being sent to create that first topic. I suspect there is a problem with the name that was entered. Do you know what that was?

    #62392
    starnet
    Member

    Beau,

    Which files should you put this code on? I am also installing bbPress on a MU WordPress. I get the same error. I thought maybe it’s because of WP/MU not compatible with bbPress. I have the same install directories (WP/MU on root and bbPress on /forums/). And I am getting the same 404 error on user profile and post.

    Thanks in advance

    #62304
    Olaf Lederer
    Participant

    just checked his response headers:

    Connection: close
    Date: Wed, 16 Jan 2008 12:47:21 GMT
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET, PHP/5.0.4
    Content-Type: text/html

    200 OK

    it’s a IIS webserver :D

    #54303
    krackenn
    Member

    Esta es mi pequeña aportación a la comunidad. El bbPress traducido completamente al español internacional para la version 0.8.3 y 0.8.3.1 este es el vinculo del post y descarga

    http://www.krackenn.es/index.php/bbpress_ultima_version_0.8.3._x_completamente_traducido_al_espanol.html

    otra cosa en el mio si figura tonto por bozo xD, leyendo estas sugerencias quizás lo cambie a ver si existe otra palabra para usar en lugar de ellas =)

    saludos.

    #62332

    So it’s likely that my database was latin1 all along, when created in admin, since I haven’t touched it and the only thing that could have is bbPress’ install or upgrade script? I don’t understand why I didn’t get the problems after install then, since UTF8 was specified in config.php, while getting the problem after the upgrade forced me to change it to latin1 in config.php. Have I stumbled onto a bug, or is it something else?

    Edit: I’m no database ninja, so sorry if I’m not getting things. :)

    Beau Lebens
    Participant

    Background: Installed WPMU (at “/”) and bbPress (at “/forums/”), followed integration instructions (and tweaked to get it all working). I used my WP theme header.php and footer.php as the basis for a bbPress theme, and loaded the full WP engine into bbPress by putting this code in my config.php

    // Load WordPress so we can use the same templates.
    define('WP_BB', 'true');
    require_once dirname(dirname(__FILE__)) . '/wp-blog-header.php';

    Symptoms: Pages load just fine, and all appears successful, but, upon further inspection, all bbPress pages actually return a 404 error in the HTML headers (you can see this using FireBug, or using a HEAD command to the page). NOTE: This will also happen if you create custom pages (not WP “Pages”) that load the WordPress engine – they load fine, but actually throw a 404).

    Explanation: What appears to be happening here, is that the page loads fine, because it is a real page. Internally however, WP doesn’t know about this page (because it’s a bbPress, or custom page), and so it assumes it’s a request for a permalink that it can’t resolve. Thus it throws a 404.

    The internal rewrite system in WP allows you to add new rewrite rules, but appears to only like dealing with “internal” or WP-specific rules. If you add in what it refers to as “non_wp_rules”, then it doesn’t actually apply them (so it still throws a 404).

    The FIX! on the code that I’m running, I have put the following WordPress plugin in place to add rules appropriate for my bbPress installation:

    function mbob_flush_rewrites() {
    global $wp_rewrite;
    $wp_rewrite->flush_rules();
    }
    add_action('init', 'mbob_flush_rewrites');

    function mbob_add_rewrites($wp_rewrite) {
    add_rewrite_rule('forums/topic', 'forums/topic.php');
    add_rewrite_rule('forums/forum', 'forums/forum.php');
    add_rewrite_rule('forums', 'forums/index.php');
    $wp_rewrite->rules = array_merge($wp_rewrite->non_wp_rules, $wp_rewrite->rules);
    }
    add_action('generate_rewrite_rules', 'mbob_add_rewrites');

    NOTE: I have removed a lot of my bbPress installation as part of my integration, so I didn’t require any other rules to handle things like profile pages or tags – you probably will need to add them if you use those features.

    Hopefully this will help someone else and prevent you from beating your head against a wall like I almost did :)

    Thanks to sambauers for helping me out with this in #bbpress as well.

    Beau

    #62349

    In reply to: bbPress versus PunBB

    kernow
    Member

    bbPress looks great on a mobile phone. Well it does on my Nokia N95 8gb anyway :) Downloads quick too. The future is mobile!

    #2787

    Topic: New Green theme/forum!

    in forum Themes
    newyearwill
    Member

    I’d like to start off by saying what a fantastic piece of software bbpress is – I love the similarities with WordPress: clean HTML & CSS code. In my opinion it’s like a breath of fresh air compared to other forum software because you can easily customise it to fit your site. I just hope the clever designers and developers continue their excellent work with future releases.

    …anyway enough of my rambling, here is my forum (still needs a few finishing touches):

    http://forum.reclaimyourskin.co.uk

    #62368
    Olaf Lederer
    Participant

    Hi,

    do you checked the setting in the config.php file?

    it must be something like:

    // The full URL of your bbPress install
    $bb->uri = 'http://www.domain.com/forums/';

    maybe you can post some URL?

    #62357

    In reply to: PHP Error Messages

    Sam Bauers
    Participant

    Change line 168 of bb-settings.php to

    if ( function_exists( 'glob' ) && is_callable( 'glob' ) )

    .

    Also, change line 6 of bb-admin/plugins.php to (note curly brace at the end)

    if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {

    .

    I suspect the version of PHP where the problem is occurring is less than 4.3.0

    Either that or the “glob” function is disabled by the system administrator.

    #62250
    fel64
    Member

    You need to include bbPress. To do this, make sure that your bbPress supports being integrated thoroughly with WordPress (not just users, also functions), then open your wordpress config file and at the bottom put require_once('path/to/bb-load.php'); That’ll let you use the bb functions too.

    #62356

    In reply to: PHP Error Messages

    chrishajer
    Participant

    My server does not allow these overrides in the .htaccess to turn off error reporting. Maybe someone else’s server will?

    # suppress php errors
    php_flag display_startup_errors off
    php_flag display_errors off
    php_flag html_errors off

     

    Not sure if that suppresses all errors, or just errors and not warnings, or what. Didn’t work on my server :)

    I got that information here:

    http://perishablepress.com/press/2007/12/17/how-to-enable-php-error-logging-via-htaccess/

    tommy2toes
    Member

    I had some luck using wordpress Theme Functions.

    For example my BBPress pulls the top header image, navigation and footer from wordpress. It does not pull between the <head> </head> tags. But this allows me to control the nav and header in one place as well as footer, so that everything gets updated.

    If you have your bbpress install setup to use wordpress functions it’s pretty easy to do.

    As for CSS, I hate the way other people code css so I always end up ripping it all out and starting from scratch.

    Check out this page:

    https://codex.wordpress.org/Theme_Development

    #62377

    In reply to: How do I post sticky?

    chrishajer
    Participant

    I think you can only make a thread sticky. At the bottom of the thread, when you are logged in, you will see this link:

    [Stick topic (to front)]

    Click either “Stick topic” or “to front” and the thread will be sticky. If you’re not admin (keymaster) I don’t think you see that.

    I don’t think the links are visible while creating a new post or thread. So make your post, then view it and look at the bottom of the page; you’ll see the links you need.

    #62346

    In reply to: bbPress versus PunBB

    Bob Jones
    Member

    I had used punBB for a while and really liked it – except for the really long amount of time that it takes to update the software. They’ve been working on v1.3 for years now. That’s the version I’ve been waiting for.

    punBB seems to be more robust, but the code is a little more sketchy. bbPress is more simplistic but the plugin system makes a pretty good addition. Another thing about punBB that bothered me is that topics aren’t marked as read when you read them – your cookie has to expire before a topic is marked. They have an addon for that, but all the addons rely on editing a lot of files and also is very heavy on the database.

    For right now, I’m sticking with bbPress and seeing how everything will end up.

    #60154
    ruilouis
    Member

    I’d crave for it too ;)

    #62232
    projectego
    Member

    Thanks for the tip on updating bbPress themes, sambauers. I’ll check out the link now. I’m still new to bbPress skinning but hopefully it’ll be pretty straight forward. :)

    Steve

    #55827

    In reply to: Permalinks

    itissue
    Member

    I’m using the private messaging plugin but now I have to add code to my .htaccess page. I’m stumped as to what to write because I don’t understand .htaccess. Could anyone translate this for me?

    http://tapestry.suefeng.com/message?id=1

    http://tapestry.suefeng.com/pm.php?new=1

    The first link’s number changes for different messages. For example, the first message will have /message?id=1 and the second one will have /message?id=2.

    The second link actually works fine…i guess it doesn’t need to be fixed but it’d be great if it could look differently.

    Thanks for your time,

    Sue

    #56981

    Vili. I have Dan’s avatar thing working on my wordpress blog, and I have installed bbpress and have been having the hardest time getting the integration to work. I am not very familiar with php, so if you could tell me what I am doing wrong, I would be grateful.

    I have bbpress installed in a subfolder one level up from my wordpress install in a folder called ‘forums’. I read all the comments here, and have looked at the Function integration part of the “Integration with WordPress” post per your suggestion. I added the code:

    require_once(‘path/to/wp-blog-header.php’);

    to the bbpress config.php file, and it throws an error when I load bbpress. I have tried using ‘wp-blog-header.php’ and ‘/wp-blog-header.php’ and ‘/’ and even ‘ ‘ as the path to the file, and nothing works, it throws an error every time. I even tried a backslash! lol

    #60150
    citizenkeith
    Participant

    “I ported GamerZ’s useronline plugin for wordpress to bbpress awhile back. Been meaning to clean it up and release it one day.”

    Any news on this one? :-)

    #62317
    cart3r
    Member

    Thanks! 1st and 3rd things are resolved.

    I’ve been trying hundreds of different things/syntaxes to get the second item to work, but to no avail yet. I’m sure it must be the way I’m trying to code it (Full disclosure: I’m still trying to learn PHP).

    What I’m going for is as follows:

    Run the foreach, and then using array_shift(), grab the first item in the array, and then display just the post_text() that is contained within that array (assuming this is an array within an array)

    This what my code (stripped down) looks like:

    INITIAL POST:

    <? php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <?

    php array_shift();

    echo post_text();

    ?>

    <?php endforeach; ?>

    =====================================

    and then later on, when the responses are displayed:

    <? php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <?php echo post_text(); ?>

    <?php endforeach; ?>

    I was hoping the first initial post wouldn’t be displayed since array_shift() would have taken it out?

    Any help would be greatly appreciated…

    #62316
    fel64
    Member

    – You’d want to use forum_name( $topic->forum_id ).

    – I think so. If you look at the code you’ll see an array of posts, and by using array_shift() you can detach the first one and have some special template code just for that. Be sure to check it’s the first post of the topic, though, not just the first post of the page. Maybe a better thing to do would be to add a class to each post giving it a topic-specific number, so you can style topic-post-1 or whatever individually.

    – Where in your template I assume it says topic_posts(), replace that with echo( get_topic_posts() - 1 );

    #50392
    fooddude
    Member

    RCanine – that code works perfectly! Fixed the problem in titles and posts. Thanks!

    #2766
    cart3r
    Member

    Hello all,

    I recently dove into the exciting world of BBPress, and in the midst of working out a custom theme (tweaking structure as well), I was wondering if the following things were even possible to do, or are they more suited to be plugin requests?

    – attach forum name to latest topics of main page. ie I want to have a topic display like this:

    “Plugins | Lorem ipsum dolor sit amet”

    (where “Plugins” is the forum name and “Lorem ipsum dolor sit amet” is the topic, obviously.

    – Within each topic, separate the original post from the comments. I guess this is similar to how a blog entry is; with the entry featured at the top, and the comments displayed below and less prominently. It seems like the way BBPress is coded they can only be stacked on top of each other and have a similar design treatment?

    – Tweak post count so that if no has yet replied to a post it is “0” instead of “1”

    Hopefully these are just things that are right under my nose that I haven’t been able to figure out, but let’s see…

    Thanks!

Viewing 25 results - 28,376 through 28,400 (of 32,481 total)
Skip to toolbar