Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 57,326 through 57,350 (of 64,396 total)
  • Author
    Search Results
  • #64664
    Sam Bauers
    Participant

    @ mykes

    What version of WordPressMU?

    I’m not sure that the latest version is compatible with bbPress yet. The recent Release Candiadte is though.

    #64861
    mrhoratio
    Member

    It looks like the culprit is the wp_redirect function() which includes the header() function. This function appears in several bbPress files. I’m not exactly sure what the intent of them are.

    In the functions.php file, I commented out lines 2061 and 2062 in the bbPress functions.php file:

    if ( $check != $uri && $check != str_replace(urlencode($_original_id), $_original_id, $uri) ) {
    //wp_redirect( $permalink );
    //exit;
    }

    This seems to be helping with the problem. Not sure if it’s going to break something else though.

    #64860
    mrhoratio
    Member

    I did some digging, and although I have not found a solution. I believe the conflict with mod_rewrite and bbPress is that bbPress is using the header() function to send raw HTTP headers to the client. I notice that two files contain header() functions that send a “Location:” header to the browser:

    • bb-load.php

    • pluggable.php

    These seem to be forcing bbPress to redirect the URLs, even after a mod_rewrite rule executes.

    I’m a total php novice, so I’m not really sure how to fix this.

    #3346
    mrhoratio
    Member

    I have bbPress installed in a directory called “forums” on my web server. I have Pretty Permalinks enabled and working. To view the profile of a member, I can go to this URL:

    http://www.example.com/forums/profile/membername

    However, I would like the url to be:

    http://www.example.com/profile/membername

    I’ve tried writing a mod_rewrite rule which rewrites the latter to the former. However, instead of rewriting it, it redirect and exposes the URL. For example. Typing this into the browser:

    http://www.example.com/profile/membername

    Redirects to this, instead of rewriting it:

    http://www.example.com/forums/profile/membername

    Here is the mod_rewrite I am using:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/profile/membername [L]
    </IfModule>

    If I change the rule to rewrite the URL to a simple text file, it rewrites properly and masks the URL. For example, this works:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/textfile.txt[L]
    </IfModule>

    Another example, I wrote this rule, as a test, to rewrite a URL to the rewrite-rules.php file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/bb-admin/rewrite-rules.php [L]
    </IfModule>

    I type in this url into my browser:

    http://www.example.com/profile/membername

    And it redirects to ths instead:

    http://test.doublebad.com/forums/

    If I replace all the text in the rewrite-rules.php file with “test text”, then the URL rewrites properly.

    So it seems that when you are rewriting and URL to a bbPress php file, it will always redirect instead of rewriting, which is quite annoying. I’m trying to trace in the bbPress functions and settings where this is occuring. But I’m having no luck.

    Any suggestions?

    #60386
    mrhoratio
    Member

    I just found a blog post about this, where the author has made the code into a plugin. It’s available for download here:

    How to remove forum and topic keyword from bbpress url

    The author lists two minor issues here, which hopefully someone here can suggest a fix for:

    • The Link to BBpress admin board link does not work from main site. It redirects to home page. You will need to manually type the link to go inside.

    • In case you type something which does not exists as http://sitename.com/<bbpress-directory>/sdaksda it returns http://sitename.com/<bbpress-directory&gt:// . An extra slash.

    #56471
    mrhoratio
    Member

    Chris, you have a point. However the URL structure of forums and topics always begin with “forum” or “topic”. As in:

    http://www.example.com/bbpress/forum/pets-discussions/

    http://www.example.com/bbpress/topic/my-sweet-dog

    So it would seem that it should be possible to remove the “bbpress” from the URL without interfering with a WordPress installation.

    Having said that, I think the solution proposed in the thread I referred to in my last post (https://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done) is a much more elegant solution for shortening the bbPress URLs.

    #56470
    chrishajer
    Participant

    It could work like that I think if there were no website (like WordPress) in the www root. Otherwise, how does the server know it’s a bbPress page vs. a WordPress page?

    If you are running a forum only on a domain, then it would be silly to have it in any sort of directory at all. Otherwise, if you have a website in the root, you have to put bbPress into some sort of directory to prevent confusion.

    #56469
    mrhoratio
    Member

    Just found an earlier thread which hits on a similar problem with shortening the bbPress URL:

    nicer slug url rewrite plugin (done!)

    In the thread’s example. In shows you how to shorten a url like:

    http://www.example.com/bbpress/forum/pets-discussions/topic/my-sweet-dog

    to:

    http://www.example.com/bbpress/pets-discussions/my-sweet-dog

    Now, if it could also be shortened to:

    http://www.example.com/pets-discussions/my-sweet-dog

    That would be even better.

    #64586
    Shagalaga
    Member

    Any theme changes to do?

    #64585
    javalizard
    Member

    wp_validate_auth_cookie has an error. When hashing for the key

    $key = wp_hash($username . $expiration);

    WordPress and BBPress do it differently thus nullifying the ability to integrate the cookies of the two.

    The problem is that this in bbpress pluggable.php:

    $key = wp_hash($username .’|’. $expiration);

    should be this:

    $key = wp_hash($username . $expiration);

    There are a few other places where this needs to be fixed too

    #64785
    _ck_
    Participant

    I am getting better at routines to find non-english bbPress sites and have now added a few hundred more sites!

    (bbPress is being used in at least two dozen countries!)

    #56464
    mrhoratio
    Member

    Hi bobby, I tried out your hack in bbPress 0.9, and it doesn’t seem to work. Here’s what I did:

    I have my bbPress directory installed in a directory called “forums” in the root web directory. So the URL to access the forums’ home page is:

    http://www.example.com/forums

    and accessing a forum titled “test forum” is at this URL:

    http://www.example.com/forums/forum/test-forum

    a topic titled “test topic” is at this URL:

    http://www.example.com/forums/topic/test-forum

    I implemented your hack, and changed “forum” to “board” in the template-functions.php. I copied the rewrite rules from rewrite-rules.php and placed them into .htaccess file in the root web directory. I also added the two lines of code you suggested in that file:

    RewriteRule ^board/(.+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^board/(.+)/?$ /forum.php?id=$1 [L,QSA]

    I also tried adding this to the rewrite-rules.php:

    RewriteRule ^board/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^board/([^/]+)/?$ <?php bb_option( 'path' ); ?>topic.php?id=$1 [L,QSA]

    When I go to this URL:

    http://www.example.com/board/test-forum

    I get a 404 error.

    However, when I go to this url:

    http://www.example.com/forums/forum/test-forum/

    It redirects and changes the URL in the address bar in the browser window changes:

    http://www.example.com/forums/board/test-forum/

    That also brings up a 404 page.

    Also, when I go this URL:

    http://www.example.com/topic/test-topic

    The URL works, but it redirects and changes the URL in the address bar in the browser window changes to:

    http://www.example.com/forums/topic/test-forum

    I am a little perplexed as to what is going on.

    #64840
    bobbyh
    Member

    Thanks Chris! All my PHP scripts were OK (no syntax errors), but eliminating one more possible cause is always helpful. :-)

    It turns out that this Email Notifications plugin (https://bbpress.org/forums/topic/plugin-post-notification?replies=44) was causing the problem. After disabling that plugin, there are no “delays in posting” and there is never a 500 error. There must be a scaling problem with the plugin that started after the tables hit a certain size…

    Thanks again for your help, Chris! :-)

    #56460
    mrhoratio
    Member

    Hey, I’m trying to figure this out also. Anyone figured out a way to remove the first “forum” in http://www.example.com/forum/forum/forum-name. So that the URL is shorter? I tried doing it with mod_rewrite, but having some issues with bbPress automatically redirecting.

    #3343
    gerikg
    Member

    On WordPress, the plugin area it will show:

    There is a new version of “PLUGIN” available. Download version X.X here or upgrade automatically.

    when there is an upgrade.

    Can someone make that for BBPress?

    #62933
    citizenkeith
    Participant

    I’m getting mySQL errors… see here for more info:

    https://bbpress.org/plugins/topic/live-comment-preview/#post-813

    clementine
    Member

    Hello everybody,

    I need two different forums, in two different domains, they are hosted at the same server and they are sharing the database also.

    If I make two different instalations using two table prefix (like bb1_ and bb2_) do you know if it’s possible to share the users between the two forums? I don’t want to merge the topics, or the forums, just the users table…

    Thanks a lot.

    #64796
    chrishajer
    Participant

    I can help if you contact me off list. Find contact details on the site linked to my profile.

    #64795
    antoniop
    Member

    I already tried that. Baffled…

    #64032

    This code works fantastic! Thanks

    #64794
    chrishajer
    Participant

    Sounds like something is wrong with the database tables. It’s trying to reuse tables that are there but there is some sort of problem. Can you drop those tables (if there is no content there) and then start the installation again?

    #63759

    In reply to: Content censor

    citizenkeith
    Participant

    This is being covered here:

    https://bbpress.org/plugins/topic/censor/

    #58252

    In reply to: bbSync

    Fawked
    Member

    By the way this only happens to comment of posts that were sync’ed with bbPress. Comments that were not sync’ed (older posts) are working as normal.

    #58251

    In reply to: bbSync

    Fawked
    Member

    Now I have a new problem. When I make a comment on a post in WordPress it will change all my other previous comments to the same user and comment as demonstrated here:

    http://www.fawked.net/2007/12/29/wannabe-rappers/

    Everything in bbpress is working fine for now, it shows the correct comments.

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