Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 57,401 through 57,425 (of 64,468 total)
  • Author
    Search Results
  • #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.

    #3339
    bobbyh
    Member

    A few days ago, out of the blue, users of my bbpress forum reported that submitting a new topic/post resulted in an error. Previously, my bbpress forum was working perfectly. However, over the last few days, I have verified that if you submit a new post or leave a comment, the browser takes you to bb-post.php, where the page hangs. You can verify this on my forum using user “testuser” and password “test123”.

    There are a few weird things about this:

    • I hadn’t touched the server for some time prior to this sudden problem, so it’s weird that the problem started, since I hadn’t changed anything
    • I’ve been running two bbpress forums authenticated against the same WP user table. The problem is only with the first bbpress installation, while the second bbpress installation continues to work with no problems.
    • When you post, the browser returns a 500 internal server error, and doesn’t display a “die” message, e.g. “You need to actually submit some content!”
    • Although the browser returns a 500 internal server error, the posted content does go through.

    I’ve hand-inspected http://boards.weddingbee.com/bb-post.php, and it has exactly the same PHP code as http://classifieds.weddingbee.com/bb-post.php. I’ve tried everything I can think of… I disabled plugins and Akismet, and the problem didn’t go away. (I’ve turned them back on.)

    I’m using bbPress 0.83, with bb_db_version 788. I haven’t upgraded to bbPress 0.9.0.2 yet because I’ve integrated my WordPress 2.33 install with two bbPress installs and a Mediawiki install, and it will be a ton of work to reintegrate. However, that is the next step…

    Does anybody have any ideas? :-)

    #64793
    antoniop
    Member

    “Step 3 – Site settings

    « completed

    Installation failed!

    ! The database failed to install. You may need to replace bbPress with a fresh copy and start again. “

    Heres what I got from them.

    “Please ask the creator of this script for further assistance as Doteasy does not provide web design or development services.

    Here is the site error log for today.

    [Mon May 05 08:19:23 2008] [error] [client 65.61.193.36] php-script: line 4: 22269 Segmentation fault /usr/bin/php-cgi, referer: http://www.atriskstoriesofhope.com/bbpress/bb-admin/install.php?step=3

    [Mon May 05 08:19:23 2008] [error] [client 65.61.193.36] Premature end of script headers: php-script, referer: http://www.atriskstoriesofhope.com/bbpress/bb-admin/install.php?step=3&#8243;

    #3337

    Topic: Insurgency.cz forum

    in forum Showcase
    ajvngou_
    Member

    I just use another theme and moddified, couse my code skills are not good. I moddified www theme too and i triyed create 1 nice theme for site and forum. I hope its ok now. I must change few things at code (size, avatars etc) but i hope its nice. its CZECH lang btw…

    http://www.insurgency.cz/bbpress

Viewing 25 results - 57,401 through 57,425 (of 64,468 total)
Skip to toolbar