Michael Adams (mdawaffe) (@mdawaffe)

Forum Replies Created

Viewing 25 replies - 251 through 275 (of 335 total)
  • In reply to: No style sheet

    @mdawaffe

    Member

    Try removing the .htaccess file in your bb-templates directory.

    @mdawaffe

    Member

    Ah!

    My sincere apologies. I’ve sent you on a wild goose chase. That plugin will only work with the upcoming next release of bbPress.

    Don’t dispair, though. That new release is coming soon.

    Sorry!

    @mdawaffe

    Member

    Then you’re in luck!

    Login to your bbPress site

    go to the admin panels by clicking the “Admin” link next to the “logout” link

    Click on the “Content” tab

    Click on the “Forums” subtab

    Then add whatever forums you like

    @mdawaffe

    Member

    If bb_ really is your bbPress table prefix, and that is what is entered int the integration plugin page, users registering through bbPress should be given WordPress’ default role upon logging into WP for the first time.

    So I’m not sure what’s wrong exactly, but it may be caused by the stuff you’re doing manually (as you expect).

    In reply to: Template (login.php)

    @mdawaffe

    Member

    This will be fixed in the next release. Thanks!

    @mdawaffe

    Member

    Go to the Users tab of your WordPress Admin panels.

    Under what role are these troublesome accounts listed?

    @mdawaffe

    Member

    It sounds like you want four forums (like this site has “Installation”, “Troubleshooting”, “Templates”, “Plugins” and so forth).

    Users would then create new topics in these four forums.

    Am I mistaken?

    @mdawaffe

    Member

    zapata, this plugin.

    <?php

    /*

    Plugin Name: Force Login

    Description: No one can see your forums unless they are logged in.

    Plugin URI: https://bbpress.org/forums/topic/117

    Author: Michael D Adams

    Author URI: http://blogwaffe.com/

    Version: 0.7

    */

    function force_login_init() {

    if ( !bb_is_user_logged_in() && false === strpos($_SERVER, ‘bb-login.php’) ) {

    if ( file_exists( BBPATH . ‘my-templates/login.php’ ) ) {

    require( BBPATH . ‘my-templates/front-page.php’ );

    } else {

    require( BBPATH . ‘bb-templates/front-page.php’ );

    }

    exit;

    }

    }

    add_action( ‘init’, ‘force_login_init’ );

    ?>

    @mdawaffe

    Member

    Can you paste the entire contents of that file http://pastebin.com/ and then post the link here?

    @mdawaffe

    Member

    You should probably have the www. pages redirect to the other pages.

    Failing that, you can follow the advice I gave here: https://bbpress.org/forums/topic/113?replies=3

    You’ll need to change the cookie information for both WP and bb.

    @mdawaffe

    Member

    Strange – it worked for me.

    Make sure that userspace.php has no whitespace before the <?php or after the ?>

    @mdawaffe

    Member

    require_once(‘/home/dental/public_html/wp-blog-header.php’);

    define(‘WP_BB’, true);

    Where are you putting that? It should be the very first thing in bbPress config.php

    @mdawaffe

    Member

    I went to the URL you posted, and there was nothing there.

    @mdawaffe

    Member

    Try

    $bb->wp_home = 'http://passionforcinema.com';

    $bb->wp_siteurl = 'http://passionforcinema.com';

    @mdawaffe

    Member

    did you define WP_BB in bbPress’ config.php file?

    If so, you must also

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

    In reply to: Cannot select DB.

    @mdawaffe

    Member

    abc112345,

    That’s a great tip, thanks! And I’m glad you got it working.

    @mdawaffe

    Member

    No easily.

    Try:

    <a href="<?php user_profile_link( $topic->topic_last_poster ); ?>" title="User Profile"><?php topic_last_poster(); ?></a>

    @mdawaffe

    Member

    This can also be caused by defining WP_BB to true without manually loading WordPress as well.

    In reply to: Cookies

    @mdawaffe

    Member

    In addition to editing bbPress’ cookie information, you will have to edit WordPress’:

    for both bbPress and WordPress

    the domain should be .salatti.net (note the first .)

    the path should be /

    So in bbPress’ config.php:

    $bb->cookiedomain = ‘.salatti.net’;

    $bb->cookiepath = ‘/’;

    in WordPress’ wp-config.php:

    define(‘COOKIE_DOMAIN’, ‘.salatti.net’);

    define(‘COOKIEPATH’, ‘/’);

    define(‘SITECOOKIEPATH’, ‘/’);

    Let us know how it works.

    @mdawaffe

    Member

    That snhould be all you need to do (it shouldn’t matter who’s what). But I haven’t actually tested it.

    Please let me know how it goes.

    In reply to: Cannot select DB.

    @mdawaffe

    Member

    The domain should be http://localhost and the path should be /~myusername/bbpress/ but that shouldn’t stop the database connection.

    Do you know if you have PHP’s mysqli extension loaded (as opposed to the normal mysql)? If you do, try copying bb-includes/db.php to bb-includes/db-mysqli.php to overwrite that later file (it seems to be out of date).

    Please let me knw if that helps or not.

    @mdawaffe

    Member

    It’s the space.

    Try this plugin:

    <?php

    /*

    Plugin Name: Allow spaces in user names

    Plugin URI: https://bbpress.org/forums/topic/99

    */

    function wpbb_user_sanitize( $text, $raw, $strict ) {

    $username = strip_tags($raw);

    // Kill octets

    $username = preg_replace(‘|%([a-fA-F0-9][a-fA-F0-9])|’, ”, $username);

    $username = preg_replace(‘/&.+?;/’, ”, $username); // Kill entities

    // If strict, reduce to ASCII for max portability.

    if ( $strict )

    $username = preg_replace(‘|[^a-z0-9 _.-@]|i’, ”, $username);

    return $username;

    }

    add_filter( ‘user_sanitize’, ‘wpbb_user_sanitize’, -1, 3);

    ?>

    In reply to: Permalinks?

    @mdawaffe

    Member

    Jaxia, bbPress cannot use forum and topic names in its urls currently.

    This will likely be a feature in future versions.

    @mdawaffe

    Member

    What do you mean “but it failed”?

    In reply to: Using RSS Feeds

    @mdawaffe

    Member

    I believe there are several plugins for WordPress (and even a sidebar widget) that pull content from RSS feeds.

    I’d use the widget since I don’t know the names of the plugins off the top of my head. I’m sure Google does, though :)

Viewing 25 replies - 251 through 275 (of 335 total)