Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,376 through 28,400 (of 32,492 total)
  • Author
    Search Results
  • #62560
    Olaf Lederer
    Participant

    ???

    my .htaccess has only this single row:

    Options +MultiViews

    #62556
    Olaf Lederer
    Participant

    yeah the profile belongs to the left like in other forums (it’s not MS office 2007) ;)

    #62478
    fel64
    Member

    A nonce is used to ensure that you’re coming from the right place and you weren’t tricked into submitting the data (basically to give continuity between starting and finishing an action). If the value is not given or wrong I’d expect bbPress not to post at all. You might be able to look through the code and see where it creates the nonce, then replicate that yourself.

    #62300
    shaythong
    Member

    In bbPress version 0.8.3.1 open file: bb-admin/plugins.php and find:

    if ( is_callable( 'glob' ) ) {
    foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin ) {
    $_data = bb_get_plugin_data( $_plugin );
    $_plugins[$_plugin] = $_data ? $_data : true;
    }
    }

    Replace with:

    if ( is_callable( 'glob' ) ) {
    $pluginarray = glob(BBPLUGINDIR . '_*.php');
    if ($pluginarray)
    foreach ( $pluginarray as $_plugin )
    require($_plugin);
    }

    I’m not sure if this will work.

    #62522
    chrishajer
    Participant

    Well, AFAIK, bbPress only allows three values for permalinks: true, false and slugs. In config.php, there is a line (around line 27 in the current 0.8.3.1 release I think) that starts $bb->mod_rewrite =. I think it works like this. Of course, you can try modifying your config.php and see for yourself as well.

    $bb->mod_rewrite = true;

    /bbpress/topic.php?id=526&page#post-6043

    $bb->mod_rewrite = false;

    /bbpress/topic/526

    $bb->mod_rewrite = 'slugs';

    /bbpress/topic/the-title-of-the-topic

    #62471
    flschen
    Member

    Even if I think that this is not intended to be so, it is more a feature than a bug.

    If you use your email address as username every spambot can read it out. Therefore it’s just careless. I advise you not to use your email address as username. ;-)

    #62386
    Olaf Lederer
    Participant

    the last needs some more code during the registration process…

    I think this feature is needed to makes this plugin complete :D

    #62308
    Sam Bauers
    Participant

    Put this in a plugin file and activate it. It’s a drop-in replacement for bb_mail() from the current trunk

    <?php
    /*
    Plugin Name: Fix bb_mail function
    Plugin URI:
    Description: Temporary replacement for bb_mail() function
    Author: Sam Bauers
    Author URI:
    Version: 0.0.1
    */

    if ( !function_exists( 'bb_mail' ) ) :
    function bb_mail( $to, $subject, $message, $headers = '' ) {
    if (!is_array($headers)) {
    $headers = trim($headers);
    $headers = preg_split('@r(?:n{0,1})|n@', $headers);
    }

    if (!count($headers) || !count(preg_grep('/^from:s/im', $headers))) {
    $from = parse_url(bb_get_option('uri'));
    if ($from && $from['host']) {
    $from = trim(preg_replace('/^www./i', '', $from['host']));
    $headers[] = 'From: "' . bb_get_option('name') . '" <bbpress@' . $from . '>';
    }
    }
    $headers = trim(join("rn", $headers));

    return @mail($to, $subject, $message, $headers);
    }
    endif;
    ?>

    #62307
    edwinfoo
    Member

    I have no backslashes (“”) at all in my pluggable.php file :-(

    However, while I have the same problem of NO OUTBOUND EMAIL when I tested, it must work sometimes because I got some new members yesterday that are posting. But I’ve got a bunch of others whose last log on was “NEVER”….hmmmm

    Something is definitely wrong

    #62384
    Olaf Lederer
    Participant

    Hi I changed this function:

    function auto_add_favorit_profile() {
    global $user_id;

    if (bb_is_user_logged_in()) {
    $checked = "";
    $user = bb_get_user($user_id);
    if (!empty($user->auto_add_favorit)) {
    $checked = ' checked="checked"';
    }
    echo '
    <fieldset>
    <legend>Add my threads automatically to my favorites</legend>
    <p>Check this option to add all your threads or threads where you have posted something to your favorite list.</p>
    <table width="100%">
    <tr>
    <th width="21%" scope="row">Activate:</th>
    <td width="79%">
    <input name="edit_auto_add_favorit" id="edit_auto_add_favorit" type="checkbox" value="1"'.$checked.' />
    </td>
    </tr>
    </table>
    </fieldset>';
    }
    }

    please replace this function or download the updated version via the link above and tell me if it works (it works for me)

    #62306
    Olaf Lederer
    Participant

    I think that some mail headers are misformed, check the pluggable.php file in the include directory and replace the n with rn (not sure if this will help

    #62467

    In reply to: Redirecting Error

    Olaf Lederer
    Participant

    you have three slashes:

    http:///mobile&#8230;

    :-)

    #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

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