Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 11,426 through 11,450 (of 11,455 total)
  • Author
    Search Results
  • #50478

    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.

    #757
    abc12345
    Member

    I would like to try bbPress, but cannot get past the “Cannot select DB.” error message. What am I doing wrong? Here is what I have done…

    1. Downloaded and am successfully running MySQL 5.0.26 server on Mac OS X 10.4.8.

    2. Added a database called “testbb” to the mysql server (this is working because I can access this database through the mysql commandline in Terminal and in CocoaMySQL).

    3. Turned on php (version 4.4.1) in the httpd.conf file.

    4. Turned on the apache webserver running on my computer.

    5. Downloaded the bbPress folder and put it in my webserver directory.

    6. Changed the config-sample.php file to config.php.

    7. Modified the config.php file. I changed the database name to testbb, changed the username to root, added the appropriate password, and changed the URL domain to “http://localhost/~myusername” and the URL path to “/bbpress/” because I did not change the folder’s name. It is still “bbpress”.

    When I try to access the install.php file, I type in “http://localhost/~myusername/bbpress/bb-admin/install.php” into my browser. This successfully brings up the following error message: “Cannot select DB.”

    What am I doing wrong? Why can’t it access the database, when I can access it through the commandline with the same username and password?

    #768
    mistainu
    Member

    first, i setup my bbPress, tested it… worked great! now i went to the config.php and changed the settings to point to my wordpress. my wordpress has in the root directory and mt bbpress was i a folder root/forums/ … for the configuration, i’m sure i did everything right. changed the wordpress prefix from false to wp_ then added in the urls of my wordpress as required. i then removed the // on the next line as the instructions said.

    now i loaded the directory with bbpress… i expected to go thru the whole installation thing again but it failed. someone please help?

    #49762

    In reply to: Plugin Requests

    p3t3r
    Member

    @ear1grey: Maybe I´ve got the plugin you want to have – some time ago I created a plugin like that for a bbpress+wordpress site which is no more online – I´ll search it on my HD and test it, and if it still works I´ll put it up for download…

    #50329

    In reply to: Using RSS Feeds

    Thank you.

    So how easy would it be to pull the latest 10 threads onto my wordpress sidebar?

    #50126

    Thanks, you were right on the money!

    #50125

    Make sure there is no whitespace (spaces, extra lines, tabs, etc.) before the <?php in your plugin nor after the ?>

    #49409

    In reply to: Importing from phpBB

    marky
    Member

    brunotorre, you’re a life saver! I’ll give the script a test shot tonight, and I’ll let you know how it goes. :-)

    #50124

    Works for me too. Thanks to both of you!

    NO, wait when I try to open the tags.php I recieve this message:

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/forum/my-plugins/latest-topics.php:9) in /home/username/public_html/forum/bb-includes/functions.php on line 1304

    TIA

    #50188
    Zambu
    Member

    Actually, that’s what I assumed also by the name “deleted.alt”…but I could not find anywhere else to adjust the colors on the front page “latest topics” and “forums” list, so finally i changed the color number for “deleted.alt” and lo and behold, the colors on the front page also changed.

    Of course, the topics and forums on the front page are NOT deleted ones, so I guess this variable is shared somehow within the script (I assume it is shared by accident, hence the misleading title “deleted.alt”.)

    #50123
    Zambu
    Member

    That works perfectly. Thanks!

    #49976
    mozey
    Member

    define(‘CUSTOM_USER_TABLE’, ‘wp_users’);

    define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);

    this helped me in getting bb press to usre the same users of wp. Now, i need them to share the same session. (test user can log into wpmu account, and not having to loginto bbpress to post to forums.)

    Actually, is there any downside into making bb use wp’s users like that?

    #750
    Pravin Paratey
    Participant

    I’m running the latest bbpress at http://yammy.sourceforge.net/forums. After registration, users dont receive their passwords by email.

    Perhaps sourceforge does not support this. Can I configure bbpress to display the password on screen?

    Thanks

    #50212

    The easy way is to find get_thread( $topic_id, $page ) in /topic.php and change it to get_thread( $topic_id, $page, true ).

    The better way is to use a plugin so that you aren’t modifying any core files. (This is untested)

    <?php

    /*

    Plugin Name: Reverse Post Order

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

    */

    function reverse_post_order() {

    global $topic_id, $page, $topic, $bb_current_user;

    global $bb_db_override, $posts, $forum, $tags, $user_tags, $other_tags, $list_start;

    $bb_db_override = true;

    $posts = get_thread( $topic_id, $page );

    $forum = get_forum ( $topic->forum_id );

    $tags = get_topic_tags ( $topic_id );

    if ( $bb_current_user && $tags ) {

    $user_tags = get_user_tags ( $topic_id, $bb_current_user->ID );

    $other_tags = get_other_tags ( $topic_id, $bb_current_user->ID );

    } elseif ( is_array($tags) ) {

    $user_tags = false;

    $other_tags = get_public_tags( $topic_id );

    } else {

    $user_tags = false;

    $other_tags = false;

    }

    $list_start = ($page – 1) * bb_get_option(‘page_topics’) + 1;

    post_author_cache($posts);

    }

    add_action( ‘bb_topic.php_pre_db’, ‘reverse_post_order’ );

    ?>

    #50122

    Oops, my fault. Do exactly what you did but put

    global $bb;

    directly under the function line.

    <?php

    function front_page_topics() {

    global $bb;

    $bb->page_topics = 2;

    }

    add_action( ‘bb_index.php_pre_db’, ‘front_page_topics’ );

    ?>

    #739
    Zambu
    Member

    On the basic downloaded version strater template, the front page lists “latest discussions” and also the “forums”. This listing visually has an line by line alternating background color of very light gray and a pinkish red.

    My question is how do I change these background colors? I would have thought this would be in the css style sheet but I can not find it in there anywhere.

    thanks, thomas

    #49408

    In reply to: Importing from phpBB

    brunotorres
    Member

    I did this: http://brunotorres.net/unsorted/phpbb2bbpress.phps

    Worked fine to me, importing a phpBB database with about 30000 records, including users, metadata, topics and posts. It takes a lot of time to finish, but works.

    The code is a mess. I just finished doing this. Maybe I’ll make it better, if there’s people interested.

    You have to use it on a fresh instalation, since it’ll delete any existing data.

    It was just tested by me and I can’t ensure it’ll work for anyone, but I’d like some feedback.

    Enjoy!

    #50121
    Zambu
    Member

    I am not sure what you mean by that, as I have never created a plug-in before. Anways, I gave it a try as follows:

    Created a blank file with the following content:

    <?php

    function front_page_topics() {

    $bb->page_topics = 2;

    }

    add_action( ‘bb_index.php_pre_db’, ‘front_page_topics’ );

    ?>

    Then saved it as “latest-posts.php” and stored it in my newly created “my-plugins” folder.

    But it did not seem to have any effect as the front page of the forum would still display more that 2 latest posts (I selected to limit the topics to 2 so it would be asier to test).

    The only other thing I can think of is that this code needs to instead be added to one of the regular scripts, but I have no idea which one.

    thanks,

    thomas

    #50120

    How about this plugin?

    function front_page_topics() {

    $bb->page_topics = 10;

    }

    add_action( 'bb_index.php_pre_db', 'front_page_topics' );

    #729

    Hi,

    How can I control the number of latest discussions shown on the frontpage?

    I know I can edit the “topics shown on each page” in the config file but I just want a few topics on the frontpage and a different amount for the forums themselves.

    TIA

    Phillip

    UPDATE FROM MODERATOR (Feb 12, 2007):

    There is now a plugin for this which allows you to specify the number of topics that show up on many of bbPress’ pages:

    http://bbpress.org/plugins/topic/3

    #49854
    cmcraft
    Member

    Nope. Here is my index.php file from the bbpress directory. What am I doing wrong?

    ‘<?php

    require(‘./bb-load.php’);

    //the next two lines are my attempts to load it myself

    require_once(‘/home/myusername/public_html/blog/wp-config.php/’);

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

    $bb_db_override = false;

    do_action( ‘bb_index.php_pre_db’, ” );

    if ( isset($_GET) && ‘1’ == $_GET ) :

    $forums = false;

    elseif ( !$bb_db_override ) :

    $forums = get_forums(); // Comment to hide forums

    $topics = get_latest_topics();

    $super_stickies = get_sticky_topics();

    endif;

    do_action( ‘bb_index.php’, ” );

    if (file_exists( BBPATH . ‘my-templates/front-page.php’ ))

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

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

    //then i tried the include header call to no avail so i tried this

    <?php include (/home/myusername/public_html/blog . ‘/wp-blog-header.php’); ?>

    ?>

    #722
    ear1grey
    Member

    I’ve modified my Google Analytics Plugin for WordPress and it appears to be working in BBPress (albeit without the UI for configuring the “uastring”).

    Testers welcome; get it here…

    #49920

    Create a directory called my-plugins/ in bbPress’ root directory.

    Into that add a new file called mod-write-topics.php with the following code.

    <?php

    function mod_write_topics() {

    global $bb_roles;

    $bb_roles->role_objects['member']->remove_cap( 'write_topics' );

    }

    add_action( 'bb_got_roles', 'mod_write_topics' );

    ?>

    I think that will work, but I haven’t tested it.

    #49761

    In reply to: Plugin Requests

    ear1grey
    Member

    For me, the most useful thing would be a little WP plugin that shows the same information that’s in the Latest Discussions section of the bbpress front page.

    Nothing too fancy, just ordered by freshness, so I could pop something in my sidebar similar to the “recent comments” section I have on boakes.org.

    #49568
    jazzle
    Member

    NB: those typos are fixed in the latest version available from CVS/SVN.

Viewing 25 results - 11,426 through 11,450 (of 11,455 total)
Skip to toolbar