Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 58,326 through 58,350 (of 64,487 total)
  • Author
    Search Results
  • #59100
    horrorshow
    Member

    Hi,

    I am trying to integrate bbpress(0.8.3.1) with wordpress mu (1.3.3), and I am having some issues with cookies for login/logout.

    I’ve tried setting this: (“MD5hash” replaced with my MD5)

    $bb->usercookie = 'wordpressuser_MD5hash';
    $bb->passcookie = 'wordpresspass_MD5hash';

    However, that didn’t seem to synchronize login(meaning, if I am log into wp, go to bbpress and find myself already logged and vice versa)

    Watching the cookies during the login/out process on WP MU, I found that the cookie names that WP MU uses are: “wordpresspass” and “wordpressuser”

    So in config.php for bbpress, I used:

    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';

    This works somewhat, let me explain:

    This scenario works:

    Log into WPMU, refresh bbpress page, I find myself already logged into bbpress.

    Log out of WPMU, refresh bbpress page, I find myself logged out of bbpress.

    Log into BBpress, refresh WPMU, I find myself logged into WPMU

    This doesn’t work:

    Log into BBpress, refresh WPMU (I find myself logged into WPMU) AND THEN when I try to log out from WPMU, I can’t log out.

    I refresh BBpress page, and I am not logged out either.

    If I log out from BBpress at this point, then I am logged out of WPMU as well.

    I have a feeling it might be something with WPMU, but I thought I’d post here first since this is where I found all the information about the integration. Thanks for your help. I am appending my config.php relevant to the integration part.

    $bb->wp_table_prefix = 'wp_';
    $bb->wp_home = 'http://achillesblog.com';
    $bb->wp_siteurl = 'http://achillesblog.com';
    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';
    $bb->cookiepath = '/';

    thanks for your help.

    #63278
    chrishajer
    Participant

    That type of pagination happens here and in a default installation within a topic, but not between topics. Are you looking for what exists here or for pagination for the older topics?

    How about something like this?

    https://bbpress.org/forums/topic/previousnext-thread-navigation#post-10592

    You can also search the forums here for pagination and find more interesting things.

    #63336
    helpy
    Participant

    Thank you all for your work!

    I just started with bbpress in one project … and I use some plugins for WordPress … so I have to wait some time, before I can update WP to version 2.5

    cu, guido

    #63327

    In reply to: Fatal Error?

    chrishajer
    Participant

    You have the wrong URI in your config.php. You have this (I think):

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

    and it should be

    $bb->uri = 'http://ironboundforum.com/';

    bbPress doesn’t care if it’s in a folder or not, just like it doesn’t know that it’s in your webroot of /kunden/homepages/46/d93680635/htdocs/ironbound/, so that ‘forums’ portion does not need to be in the config.php for your URI.

    See this after I applied the proper stylesheet:

    http://www.chrishajer.com/bbpress/Ironbound.png

    #62060
    harryworld
    Member

    I am currently using the version of 0.8.3.1, the version is still not solved by the above method. Any idea?

    ixray2, what version of bbpress are you using?

    #63335
    Sam Bauers
    Participant

    Also, the cookies have changed structure.

    I’ll have to re-check the password hashing plugin too.

    We’ll do our best to make sure it is simple enough to integrate with older WordPress installs too.

    #63334
    Trent Adams
    Member

    I am not sure _ck_ but Sambauers wrote the plugin to take the password hash back to the old method. I am testing it with 2.3.3 and WPMU tomorrow and will let you know if it works or not :)

    Trent

    #63325

    In reply to: Fatal Error?

    chrishajer
    Participant

    You can make that change in your 1&1 control panel. Administration > Domains > click the domain name, click the Destination [Edit] button, then select the /forums/ directory from the “Existing directory” select box. That directs all traffic destined for mysite.com to whatever website you have installed in the forums directory (which is bbPress in this case.)

    That works fine if you want your bbPress installation to be the whole website mysite.com and everything is in the ‘forums’ directory. It’s the most direct way to do it, since you have the option to do it this way. It basically hides the fact that things are in a ‘forums’ directory, just like all the rest of the web server path is hidden. My full path is something like /kunden/homepages/46/d93680635/htdocs, and then each website has a subfolder there.

    /kunden/homepages/46/d93680635/htdocs/chrishajer/

    /kunden/homepages/46/d93680635/htdocs/forums/

    /kunden/homepages/46/d93680635/htdocs/somesite/forums/

    Your subfolder will be called “forums”, but people visiting your site will never know.

    Coffee – black :)

    #63324

    In reply to: Fatal Error?

    ironbound
    Member

    Chris: Although my forum is working right now. It is not doing what I want it to do. Let me explain what I want to accomplish and then my current setup. I have 1&1 shared hosting.

    I would like mysite.com to be directly forwarded to the forum. Meaning if I type mysite.com it goes to the forum’s main page.

    Right now (the only way I made everything work) mysite.com is just at the root folder and displays nothing (the 403 error because there is now index in the main root directory). The forum is at /forums and works. But i have to type mysite.com/forums.

    The config file was setup for http://mysite.com/forums/

    inside /forums/ you find the bb-admin and folders etc. Basicly I renamed bbpress as forums and installed it from there.

    The problem is that is I forward the mysite.com domain to either the /forums/ directory or do an HTTP forward. It does not work. It messes everything up. I am clearly doing something wrong. I can’t understand shared hosting. ahhhhhhhhh. Please help me. Buy you a latte.

    #63315

    In reply to: Themes in FireFox

    Hi, chrishajer.

    This is what I see in Firefox: http://thelifelesstraveled.com/forumInFirefox.jpg

    However, if I view the forums in Safari, it looks great (just like the default theme should look and how it looks in your screenshot http://www.chrishajer.com/bbpress/tlltf.png).

    #63253
    _ck_
    Participant

    I think you want bb_get_option()

    ie. bb_get_option(‘name’)

    etc.

    #63314

    In reply to: Themes in FireFox

    chrishajer
    Participant

    The forum has style, it has the default kakumei theme applied. Here’s what I see with Firefox 2.0.0.12 on Windows XP.

    http://www.chrishajer.com/bbpress/tlltf.png

    If you are expecting it to look like something else, maybe you need to select it in your admin panel. But there is a theme applied, the default one. That’s different than saying it has “no style”. It has the default style, not a broken path to your stylesheet or theme.

    #63333
    _ck_
    Participant

    The password method change will require WP 2.5 for integration.

    (Unless someone makes a plugin)

    #63332
    helpy
    Participant

    Will 0.8.4 still work with WordPress 2.3.3 ???

    #63303
    techhost
    Member

    Wait, what’s this:

    Warning: version_compare() has been disabled for security reasons in d:hostingarock1rockline_forumbbpressbb-includesdb-base.php on line 479

    Cannot select DB.

    I don’t know what this is either .. .. I got this the first time i tried the install.php . .. .. .. Then I fixed the (uri)line, because I had forgotten the ‘.com’ in the address

    $bb->uri = ‘http://www.rocklineproduction.com/rockline_forum/bbpress/’;

    then first part of the error went away and all I had was the ‘Connot selectDB’ .. . .and now

    the first part is back again .. … …

    #63298
    chrishajer
    Participant

    Wait, what’s this:

    Warning: version_compare() has been disabled for security reasons in d:hostingarock1rockline_forumbbpressbb-includesdb-base.php on line 479
    Cannot select DB.

    You didn’t post the first part of that message which I received when trying to access your forum.

    Do you know what version MySQL is installed? You could probably work around that. The fact that you still have a “Cannot select DB” error after the warning means there is probably still a problem with your four connection details.

    #63296
    techhost
    Member

    here are my settings for the config.php Sorry for not posting it at first.

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘sameasUSER’);

    define(‘BBDB_USER’, ‘sameasDB’);

    define(‘BBDB_PASSWORD’, ‘xxxxxxxxx’);

    define(‘BBDB_HOST’, ‘localhost’);

    define(‘BBDB_CHARSET’, ‘utf8’);

    define(‘BBDB_COLLATE’, ”);

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install

    $bb->uri = ‘http://www.rocklineproduction.com/rockline_forum/bbpress/’;

    // What are you going to call me?

    $bb->name = ‘Rockline Production Forum’;

    // This must be set before you run the install script.

    $bb->admin_email = ‘myemail@hosttechs.net’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = true;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 8;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ”; // Example: ‘0123456789ab’

    // I didn’t change anything below that which is above .. . .. .

    #63258
    _ck_
    Participant

    Wow I can’t believe bbPress doesn’t do that.

    I’ve whipped up a function to do it, should be in the plugin browser soon or try this:

    <?php
    /*
    Plugin Name: New User Notification Email
    */
    add_action('bb_new_user', 'new_user_notification');

    function new_user_notification($user_id=0) {
    if (!$user_id) {$user_id=bb_get_current_user_info( 'id' );}
    $user=bb_get_user($user_id);

    $message = sprintf(__('New user registration on %s:'), bb_get_option('name')) . "rnrn";
    $message .= sprintf(__('Username: %s'), stripslashes($user->user_login)) . "rnrn";
    $message .= sprintf(__('E-mail: %s'), stripslashes($user->user_email)) . "rnrn";

    $message .= sprintf(__('Agent: %s'), substr(stripslashes($_SERVER["HTTP_USER_AGENT"]),0,80)) . "rnrn";
    $message .= sprintf(__('IP: %s'), $_SERVER['REMOTE_ADDR']) . "rnrn";

    $message .= sprintf(__('Profile: %s'), get_user_profile_link($user_id)) . "rnrn";

    @bb_mail(bb_get_option('admin_email') , sprintf(__('[%s] New User Registration'), bb_get_option('name')), $message, '' );
    }
    ?>

    #63323

    In reply to: Fatal Error?

    chrishajer
    Participant

    I use 1&1 without any trouble with many bbPress and WordPress installations. If you need help, just post. Every host is a little bit different, but I have 3+ years of experience with 1&1 on all types of servers.

    Cheers.

    #63270
    Sam Bauers
    Participant

    That plugin is old and won’t work with 0.8.4 (and maybe not with 0.8.3.1)

    Once 0.8.4 is released this should work as a plugin for both WordPress and bbPress:

    <?php
    /*
    Plugin Name: Lax user names
    Plugin URI:
    Description: Makes all user name sanitisation non-strict
    Author: Sam Bauers
    Version: 0.0.1
    Author URI: http://unlettered.org/
    */

    function i18n_sanitize_user($username, $raw_username = false, $strict = false) {
    if ($strict) {
    return sanitize_user($raw_username);
    } else {
    return $username;
    }
    }

    add_filter('sanitize_user', 'i18n_sanitize_user');
    ?>

    #53367
    _ck_
    Participant

    It unzips for me, what utility are you using?

    web.archive tends to add stray characters to the header or afterwards and that may be confusing your program. I use WinRar.

    I might make a local archive on my site for abandoned themes.

    #63269
    _ck_
    Participant

    This should fix it: https://bbpress.org/plugins/topic/usernames-i18n-fix/

    I need to find out if this is fixed by default in 0.8.4

    #53201
    _ck_
    Participant

    This would be a good beginning project for a first bbPress plugin, I’d encourage you and just ask for help if you need it.

    Basically you’d want to store within and display within the topic meta adding the user id number to a list so people can’t thank twice – or so you can list the names of those that thanked. Use “implode” and “explode” to make the list and count the names.

    As a shortcut you could store the actual username and output the raw string with the commas to show all the names that thanked. Then by counting the commas (+1), or exploding into an array and counting the array, you’d get the number of people that thanked. You could give admin the option to show the list of names that thanked or just the count (or both).

    The trickiest part is you have to give a button to thank with, which gives you either a form or an href. Then you have to look for the get/post data and process it. I recommend using a href via a GET instead of POST so bbPress doesn’t have to redirect to clear the post data (it’s nasty to reload twice).

    I just realized you mentioned “posts” vs “topic” and the problem with that is that bbPress doesn’t have a per-post metadata table. This would make it a bit more complicated as you’d have to track which post number within a topic was thanked and store it in the topic’s meta anyway. But if somehow a post is moved to another topic, this becomes a problem as the meta would not move with it (rare but could happen with plugins like move-it).

    #53366
    ironbound
    Member

    except it doesn’t unzip

    #53365
    ironbound
    Member

    _ck_ = the best!

Viewing 25 results - 58,326 through 58,350 (of 64,487 total)
Skip to toolbar