Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,176 through 10,200 (of 11,571 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.

    #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?

    #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.

    #64842
    bobbyh
    Member

    Chris, I did disable plugins, but I hadn’t wrapped the Email Notifications plugin function call with a function_exists wrapper, so my active theme stopped working when I did so. I then oh-so-intelligently reasoned that this plugin couldn’t be the cause of the problem, so I moved on…

    I couldn’t just disable all plugins and test with a default theme because of the existence of private forums. Finally, I moved the database to a private test server (and used a HOST file) and went through all the plugins carefully one-by-one until the problem was fixed.

    Let my idiocy be a lesson for others: wrap your plugin function calls with function_exists wrapper! :-)

    #64829
    bobbyh
    Member

    Lookfab, here’s a slight tweak to the default kakumei topic.php theme file that should do what you want:

    <ol id="thread" start="<?php echo $list_start; ?>">

    <?php $i = 0; ?>

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <li id="post-<?php post_id(); ?>"<?php if ($i == 0) { echo 'class="firstpost"'; } elseif !($i % 2) { echo ('class="alt"'); }?>>

    <?php bb_post_template(); ?>

    </li>

    <?php $i++; ?>

    <?php endforeach; ?>

    </ol>

    You can then style the class “firstpost” using CSS to make it stand out however you want…

    I didn’t test this, but I think it should work either by itself or with a tweak or two.

    #64847

    In reply to: Page Bug

    citizenkeith
    Participant

    It’s not going to tell you much because it’s a private forum. However, if you’d like to have a test login, send me an email at kamera [at] gmail [dot] com.

    #64837
    chrishajer
    Participant

    I made two test posts. The both resulted in 500 errors, but they also both appeared to go through. They also took a really really long time, like something is going on in the back end. Are you sure the PHP errors are being logged? A 500 error should go *somewhere*.

    #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? :-)

    #3336
    Bloggsbe
    Member

    Hi!

    I made a small plugin that lets users show of their latest Tweet on their profile page. The user turns the option on or off as they please.

    It’s nothing fancy, but it works.

    You can download it here

    It has been tested with bbPress 0.9.0.2 and 1.0-dev, but should work on earlier versions.

    Regards,

    Rune

    #64770
    _ck_
    Participant

    I put a ticket into trac about this a few months ago.

    https://trac.bbpress.org/ticket/779

    Changing the way it functions is not too difficult but it does have to be done via the core so unfortunately I can’t address it via a plugin. At least I dont think I can, not easily.

    Oh and forget a captcha ever being built into bbPress/WordPress. It will have to be done via plugin with a hook. Because the moment thousands of people have the same standardized captcha, that’s the moment it will be analysed to be broken by bots. As a plugin the method can be changed on a whim and vary from site to site easily. Besides, I’d rather have people do simple math than an awkward captcha.

    #64784
    _ck_
    Participant

    Add some numbers? Oh you mean to show position #

    Well the problem is I tinker with it from time to time.

    If I find a new site that’s not in the top 100 I’ll usually just queue it until next time but if it’s a biggie I will rebuild the list right away.

    Plus the number of posts is subjective and no indication of quality. I don’t really want to make that part a contest or people will start faking results and I’ll have to delete their listing entirely.

    Fawked
    Member

    I installed the latest bbPress. Everything went well. Then I decided to be an idiot and changed the bbPress url in the options page to my main site because when I clicked on my site name I wanted it to redirect back to my main site (the site name beside the bbPress logo).

    I tried to re-install bbPress but it wont go past after installing bb-config.php

    My main site is : http://www.fawked.net

    My forum is : http://www.fawked.net/forum

    Please tell me what file (or perhaps what line in my database)? to edit. I need to change my bbPress url back to http://www.fawked.net/forum

    Thanks in advance

    #64663
    mykes
    Member

    This stuff is frustrating as all hell. It seems so simple until it doesn’t work out of the box and you spend hours trying to figure it out. Fix these kinds of problems and you’re golden!

    Anyhow, just downloaded and installed the latest wordpress mu and bbpress today.

    wordpress in DocumentRoot, and bbpress in DocumentRoot/forums/

    Both in mysql 5.x database named wordpress.

    When installing bbpress, I did not enable wordpress integration.

    I followed this checklist:

    1. You are running latest versions of WordPress (2.5.1) and bbPress (0.9.0.2)

    2. You have matched SECRET_KEY in wp-config.php with BB_SECRET_KEY in bb-config.php

    3. You have matched WordPress “secret” database option with bbPress “secret” database setting

    4. You have setup compatible cookie domains and paths in config files (see instructions in bbPress admin)

    5. You are successfully sharing user tables from WordPress with bbPress

    Everything seems to be right.

    BIG FIRST PROBLEM is I setup the roles on the wordpress integration page so “admin” is “key master.” As soon as I turn on integration, my old key master is gone and admin can login but is NOT key master. Google is my friend, most of the time, and I found a query to do by hand to fix it. This should be automatic in the install process of bbpress or turn on of integration, no?

    So I’m able to login to wordpress. I login to bbpress. My user’s password is wiped out in wordpress. I can do lost password thingy in wordpress and restore the password. When I navigate to /forums/ and login as my user, the password in wordpress is wiped out again. Oddly, I can login as my user at bbpress over and over again, no problem.

    notes:

    1) my user is a user I created on wordpress, and he has admin privs and thus key master privs in bbpress. I see the admin link in bbpress when I login. But when I do login, wordpress won’t accept this user’s password anymore. I either have to keep loging into wordpress as admin and resetting the user’s password or go through the forgot password by email process. Changing the user’s password in bbpress has no effect on wordpress.

    2) The integration forum in admin is confusing as all hell. Or maybe the installation process is not well documented. Maybe a page on your site about how to install the two together and get the integration working would be good. For example, should bbpress and wordpress share the same database? Not clear. The integration page asks for both a site url and a blog url, what’s the difference?

    3) Did anyone try doing a fresh install of both as part of your Q/A before releasing a latest version of bbpress?

    4) If I can’t get the password problem resolved, bbpress is the one to go, not wordpress.

    5) I probably should post some of this in multiple threads, but I doubt there’s any notification feature that would e-mail me if/should anyone reply to my posts :)

    6) I want to give bbpress every opportunity to replace my existing 20K+ member / 1.6M post message board site.

    #64429

    In reply to: Categories in 0.901?

    mrhoratio
    Member

    Hey bobby, thanks! I didn’t notice the “Stick topic (to front)” link before.

    However, there is a bug. If you click the “to front” link, the topic appears as a Sticky on the Latest Discussions list, but it disappears from the forum it was originally assigned. Seems like it should show up in both places. I did a test where I made a forum with one post in it. I made it Sticky on the front page. On the front page of bbPress, it shows the number of topics as “1” in that forum. However when you forum title, it doesn’t display any topic. Instead it takes you to a New Topic form.

    #64772
    bobbyh
    Member

    I reproduced this error with FF, so it must just be my server. I’ll try upgrading to the latest version of bbpress and see if this fixes the problem…

    #64758

    In reply to: GMT Offset

    scooter7978
    Member

    bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)

    The SQL I used was just an interval clause…i.e. if I was going to import my current forums I would use something like:

    SELECT ID, Body, DateCreated – interval ‘9 30’ hour_minute FROM current_forum_whatever

    This takes the date field and drops 9.5 hours off, coincidentally, my time zone.

    You could probably adapt this to an ‘update’ statement to change what’s already in your database, eg:

    UPDATE bb_topics SET DateCreated=(SELECT DateCreated – interval ‘9 30’ hour_minute);

    I haven’t tested it but it probably wouldn’t be too far wrong.

    #64295
    berfarah
    Member

    Anyone? Anyone at all?

    #50417

    In reply to: Importing from vanilla

    scooter7978
    Member

    I’m using Vanilla on my forums and since I like to change things every now and then, I’m going to move to BBPress in the near future. Since I’m testing at the moment, I thought I’d hand over the SQL statements for grabbing the categories, topics and posts and formatting them as best as possible for bbpress.

    SQL to get the categories:

    SELECT CategoryID, Name, REPLACE( LCASE( Name ) , ‘ ‘, ‘-‘ ) AS Slug, Description, Priority

    FROM LUM_Category

    SQL to get the topics:

    SELECT DiscussionID, Name, REPLACE( Name, ‘ ‘, ‘-‘ ) AS Slug, AuthUserID,

    (SELECT LUM_User.Name FROM LUM_User WHERE UserID = AuthUserID) AS PosterName,

    LastUserID, (SELECT LUM_User.Name FROM LUM_User WHERE UserID = LastUserID) AS LastPosterName,

    DateCreated, DateLastActive, CategoryID, Closed, Active, (SELECT 0) AS LastPostID, Sticky, CountComments, (SELECT 0) AS TagCount

    FROM LUM_Discussion

    SQL to get the discussions:

    SELECT CommentID, LUM_Discussion.CategoryID AS ForumID, LUM_Comment.DiscussionID, LUM_Comment.AuthUserID, Body, LUM_Comment.DateCreated, RemoteIp

    FROM LUM_Comment

    JOIN LUM_Category ON LUM_Discussion.CategoryID = LUM_Category.CategoryID

    JOIN LUM_Discussion ON LUM_Discussion.DiscussionID = LUM_Comment.DiscussionID

    ORDER BY CommentID, ForumID

    SQL to get the tags:

    SELECT TagID, REPLACE( Tag, ‘ ‘, ‘-‘ ) , Tag, (SELECT 0) FROM LUM_DiscussionTags

    From there you will need to fix up the slugs in the bb_topics table and in the bb_forums so that the web browser doesn’t have a conniption when it tries to load a forum thread but you can do that with a series of select(replace) queries like this:

    update bb_topics set topic_slug = replace(topic_slug,’?’,”);

    update bb_topics set topic_slug = replace(topic_slug,’.’,”);

    update bb_topics set topic_slug = replace(topic_slug,’/’,”);

    update bb_topics set topic_slug = replace(topic_slug,’&’,’and’);

    update bb_topics set topic_slug = replace(topic_slug,’"’,”);

    update bb_topics set topic_slug = replace(topic_slug,’\’,”);

    update bb_topics set topic_slug = replace(topic_slug,'”‘,”);

    update bb_topics set topic_slug = replace(topic_slug,’!’,”);

    update bb_topics set topic_slug = replace(topic_slug,’,’,”);

    update bb_topics set topic_slug = replace(topic_slug,”’,”);

    update bb_topics set topic_slug = replace(topic_slug,’#’,”);

    There might be a better or quicker way of doing the last bit but since it works fine on mine I am not too concerned.

    I had to kludge some results in the queries like; SELECT 0 or SELECT 1 to get the answers I wanted or to pad out the columns to fit properly into the bbpress SQL layout. In most cases its just count fields or an active or open flag which is nearly always 1 or 0 anyway.

    Generally this is all you need to get started, from there you can just export this table data to a CSV or something and then import it into the requisite bbpress table. If you go into the admin interface of bbpress and get the system to recount everything it should be ok from there. I only recommend doing this if you’re familiar with the inner workings of MySQL, otherwise you could bollocks things up and then noone wins.

    Please remember too that this is the basics, if you’ve integrated with wordpress you’ve still got some work ahead of you to coordinate your wordpress ID’s with your forum ones. It can be done as I managed to do it, it’s just painful.

    Cheers,

    Scott

    #3310
    Bloggsbe
    Member

    I’ve made a plugin that lets you set your own default gravatar.

    You can also choose to use Identicons, Wavatar or monsterID as the default gravatar.

    You set the size and the rating you want.

    This plugin overrides the built in Gravatar function, but you still have to choose to show the avatars in the standard options page, but all other gravatar options from that page is ignored.

    I’ve tested it on bbPress 0.9.0.2 and 1.0-dev (from trunk), but it should work on all 0.9.x versions.

    You can download the plugin from here.

    I’ve also submitted it to the plugins list here on bbpress.org, and will (hopefully) show up there to :-)

    RG

    #64658
    Sam Bauers
    Participant

    Here’s a checklist:

    1. You are running latest versions of WordPress (2.5.1) and bbPress (0.9.0.2)
    2. You have matched SECRET_KEY in wp-config.php with BB_SECRET_KEY in bb-config.php
    3. You have matched WordPress “secret” database option with bbPress “secret” database setting
    4. You have setup compatible cookie domains and paths in config files (see instructions in bbPress admin)
    5. You are successfully sharing user tables from WordPress with bbPress

    #64582
    ashishmohta
    Member

    kernow: Its better we did. As BBpress and WordPress both have ability to auto generate config file we get the benefit of getting the latest modifications.

    #55031
    so1o
    Participant

    i have created the plugin.. people willing to test the plugin out for me please mail me.. aditya at adityanaik point com.

    oh by the way if any one wants to pay me.. by all means :)

    cheers

    #64703
    bobbyh
    Member

    This isn’t exactly what you’re looking for, but it lets you put a list of your bbpress topics in a sidebar on your WordPress site:

    * https://bbpress.org/plugins/topic/bbpress-latest-discussion-for-wp/

    #3301
    enquirer32
    Participant

    I’m using the latest versions of bbpress and WordPress. I intalled bbpress to be integrated with WP. however, when I click over from the WordPress site to the bbpress site I am not already logged in. Is there a list to troubleshoot to see why this happening? I have done as much as I can do so far (eg checking secret words etc).

    More irritatingly I find that I’ve been logged out of the WP site when I go back.

    Thx.

    #3294
    benjeewest
    Member

    Hi folks, there seem to be many people out there having similar issues, but I’ve spent all evening looking through for a solution and still no luck.

    I’m trying to do a full integration of bbPress 0.219 and WordPress 2.51, full integration meaning that bbPress should load WordPress functions and vice versa.

    WordPress appears to be playing very nicely and loading bbPress template tags with no problems at all. I’ve done this using

    //BBPress Integration

    if ( !defined('BBDB_NAME') )

    require_once(ABSPATH.'forum/bb-load.php');

    at the very end of my wp-config.php file, as per the tutorial at

    http://www.adityanaik.com/integratepress-part-i/ . As I say, no problem so far.

    It’s when I try to load WP functions into bbPress that I run into trouble. When I’ve attempted either of the following two mods to bb-config.php, it has disabled user login, as well as blocking me from /bb-admin (which re-directs straight back to home). The two mods to bb-config.php I have tried are:

    // WordPress Integration //

    define('WP_BB', true);

    if ( !defined('DB_NAME') ) {

    require_once( dirname(__FILE__) . '/../wp-config.php');

    }

    // **Wordpress Variables ** //

    $bb->wp_table_prefix = 'wp_'; // your wordpress db prefix is

    $bb->wp_home = 'http://localhost/bloomag';

    $bb->wp_siteurl = 'http://localhost/bloomag';

    or simply

    require_once( 'C:testingserverwwwbloomagwp-blog-header.php');

    With both these mods, the bbPress page loads up with no problems but, as I say, both /bb-admin and any attempt to log-in give no response and just redirect to the hompage.

    Has anyone got any suggestions for what might be going wrong and the correct method to call WP functions into bbPress?

    Thanks a lot,

    >Ben

Viewing 25 results - 10,176 through 10,200 (of 11,571 total)
Skip to toolbar