Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 59,426 through 59,450 (of 64,407 total)
  • Author
    Search Results
  • #2533

    Topic: Upgrade problems

    in forum Installation

    I upgraded as instructed on bbpress’ upgrade page, but received the following errors:

    Warning: main(/home/pinewood/public_html/bbpress/bb-includes/db.php) [function.main]: failed to open stream: No such file or directory in /home/pinewood/public_html/bbpress/bb-settings.php on line 93

    Warning: main(/home/pinewood/public_html/bbpress/bb-includes/db.php) [function.main]: failed to open stream: No such file or directory in /home/pinewood/public_html/bbpress/bb-settings.php on line 93

    Fatal error: main() [function.require]: Failed opening required ‘/home/pinewood/public_html/bbpress/bb-includes/db.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/pinewood/public_html/bbpress/bb-settings.php on line 93

    I used my old config file, templates, and plug-ins (I never had an htaccess file though?). Any thoughts?

    #58174

    In reply to: bbSync

    zenonx
    Member

    I have exactly the same problem (after posting comment I’m no longer admin in bbpress). Using previous version doesn’t fix it.

    #60921
    sethi2000
    Member

    I am still getting error after making all the recommended changes

    Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, boolean given in /home/.mascot/digitalguruz/sheetudeep.com/bbpress/bb-includes/db-mysqli.php on line 80
    Cannot select DB.

    #61217
    livibetter
    Member

    I made some changes to have paginated search results on relevant post. However, I am not sure is this what you need. You need to modify two files: search.php in root of bbPress and search.php of your template files.

    Replace if block start at line 9 in search.php of root of bbPress with:

    if ( $q = stripslashes( $q ) ) {
    add_filter( 'bb_recent_search_fields', create_function( '$f', 'return $f . ", MAX(post_time) AS post_time";' ) );
    add_filter( 'bb_recent_search_group_by', create_function( '', 'return "t.topic_id";' ) );
    $bb_query_form->BB_Query_Form( 'post', array(), array( 'per_page' => 5, 'post_status' => 0, 'topic_status' => 0, 'post_text' => $q, 'forum_id', 'tag', 'topic_author', 'post_author' ), 'bb_recent_search' );
    $recent = $bb_query_form->results;

    $bb_query_form->BB_Query_Form( 'topic', array( 'search' => $q ), array( 'post_status' => 0, 'topic_status' => 0, 'search', 'forum_id', 'tag', 'topic_author', 'post_author', 'count' => 'found_rows' ), 'bb_relevant_search' );
    $relevant = $bb_query_form->results;
    global $relevant_round_rows;
    $relevant_found_rows = $bb_query_form->found_rows;
    $q = $bb_query_form->get( 'search' );
    }

    I added a query parameter 'count'=>'found_rows' to second $bb_query_form for retrieving total post count. And I added global $relevant_found_rows to pass to template search.php (you can use bb_load_template to do same thing).

    Insert the following code just before second <?php endif; ?> from bottom in template search.php

    <div class="nav">
    <?php
    $uri = $_SERVER['REQUEST_URI'];
    if (false !== $pos = strpos($uri, '?')) {
    $uri = substr($uri, 0, $pos) . '?q=' . urlencode($q) . '%_%';

    if (!isset($page))
    $page = 1;

    global $relevant_found_rows;
    echo paginate_links(array('base' => $uri, 'format' => '&page=%#%', 'total'=>ceil($relevant_found_rows/$bb->page_topics), 'current'=>$page));
    }
    ?>
    </div>

    Should look like:

    <?php if ( $relevant ) : ?>
    <h2><?php _e('Relevant posts')?></h2>
    <ol class="results">
    <?php foreach ( $relevant as $bb_post ) : ?>
    <li><h4><a href="<?php post_link(); ?>"><?php topic_title($bb_post->topic_id); ?></a></h4>
    <?php echo bb_show_context($q, $bb_post->post_text); ?>

    <small><?php _e('Posted') ?> <?php bb_post_time( __('F j, Y, h:i A') ); ?></small>

    </li>
    <?php endforeach; ?>
    </ol>
    [insert the code above here]
    <?php endif; ?>

    You can find paginate_links in bb-includes/wp-functions.php.

    #61216
    chrishajer
    Participant

    I was not happy with bbPress search functionality a long time ago, now I just live with it. The results were always weird looking to me.

    Anyway, now I just use Google to search my site if I want to find anything. Something like:

    site:mysite.com term1 term2 at google.com does the trick. Of course, the content needs to be indexed at Google for that to work. An alternative I heard about was Google Custom Search Engine:

    http://www.google.com/coop/cse/

    I have no idea how that works but it’s an option.

    I think doing what you propose with the search results would require a lot of work (having 3 sets of search results complicates it in my mind), but maybe one of the plugin writers will show an easy way to do what you propose. Maybe you could perform all three searches and aggregate the results, then paginate them. That would be easier than breaking them into title matches, recent posts and relevant posts. That begs for having advanced search options anyway. Like, why can’t you search for a user’s name? I thought you used to be able to, but searching my forum now for a known user name doesn’t return anything like “User Name matches”: I thought it used to.

    Looking at how a user profile works is interesting. If you click on a user’s name to get to profile.php?id=the_user_id, you’ll see a paginated list of all posts made by that user ordered by the last time they replied (so, that user’s posts in the order that they made them, most recent first) and a list of threads started, I think. Maybe a plugin could be written to replace the search queries with something like what profile.php does, except instead of selecting all posts and threads for a user (which are returned in $posts and $threads) maybe you could do a similar query with your search term, in all the fields you want to check, then return that? Hmmmm…

    I think search is a weak point for lots of blogging platforms and forum software, and I think getting it right is important, so it’s worth looking into.

    Good luck.

    (sorry: edited version substantially)

    #2532
    krussell
    Member

    I’m looking for advice on how to modify the search functionality to paginate the results that are returned; i.e. the default functionality returns N matches in each of the following categories: thread title, recent posts and relevant posts, but I would like to allow a user to scroll through repeated pages of search results.

    I’ve had a look at search.php and this is structured around returning a fixed number of results for each query, which effectively hides anything that doesn’t come up in the first N results of the search. The concept of listing the results of 3 different queries in one results page also seems to be incompatible with providing a pagination mechanism (which list do you paginate?). I feel that the default method of handling search results is a bit limited and confusing for users familiar with a typical Google-style search that returns one simple list in multiple pages.

    I have had a look at the code, but I’m no PHP guru; is there any way of getting the sort of results I would like without fundamentally rewriting the search mechanism?

    p.s. not being overly critical here – I think bbPress is a great piece of work!

    #61215
    Trent Adams
    Member

    That doesn’t seem like the same plugin that I use from Stefano that does the same thing!

    http://www.40annibuttati.it/comment-quicktags-for-bbpress/

    Trent

    #2531
    intellivision
    Participant

    I’m using Comment Quicktags + plugin by Dan Cameron, and I’ve got it working pretty well. Except for Edit.

    When you edit a post and land on edit.php, the tag buttons simply don’t appear.

    The js path does appear in the source.

    Any thoughts?

    #61120
    jolaedana
    Member

    More issues along the same lines here:

    Key master is not allowed to add forums

    Can’t add additional tags to post

    I can confirm that I am using the “use display name” plugin mentioned in the first thread, and deactivating it DID fix the issue.

    #2530
    Iron
    Member

    Hello,

    I’ve bbpress installed with wpmu.

    Integration seems to work fine. when logged in wpmu, i’m logged in bbpress too. wonderful.

    The problem come whenI try to login from bbpress header >> I type my login/pass, hit “log in” =>

    – If good password : nothing happens, page just reload.

    – If wrong password : redirect to error message in bb-login.php

    May be I must say that I have :

    wpmu in : domain.com

    bpress files in : domain.com/forum

    bbpress redirected to : forum.domain.com

    Thanks in advance for any help.

    #61202
    Trent Adams
    Member

    It would be easier to do the following if you want to change your title back in config.php and then download your header.php from your template folder and do something like this:

    <h1><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h1>

    Then save the file and upload to /my-templates/ so if you make a mistake, you can delete it and bbPress will use the original!

    Trent

    #61201
    majea
    Member

    livibetter, thank you for your help, but I still can’t get it to work. I think I’m going to do some reading up on php and try to understand the process a bit more, so I can figure out what is going on here.

    #59135

    In reply to: Installing bbPress

    chrishajer
    Participant

    I think this is related to this trac ticket:

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

    There is a patch attached there:

    https://trac.bbpress.org/attachment/ticket/745/745c.diff

    But, read the bug report first to see if this is your problem. I think it is.

    #61200
    chrishajer
    Participant

    Never mind :)

    #61199
    livibetter
    Member

    I see. Then that would be

    require_once '../wp-blog-header.php';

    #61198
    majea
    Member

    Livibetter, thanks, but I’m still a bit confused, as that looks like what I did type. Also, I installed bbPress as a subdirectory in the WordPress folder, so it was path/to/wordpress and then path/to/wordpress/bbPress. Does this make a difference?

    #53604
    livibetter
    Member

    Hi,

    Here is a quick php for it(Use this method at your own risk), you need pretty permalink to use it.

    Save the following code in bbPress root folder as page.php

    <?php
    require_once('./bb-load.php');
    if (preg_match('/.*/page/(.*)/', $_SERVER['REQUEST_URI'], $matches)) {
    $file = bb_slug_sanitize($matches[1]) . '.php';
    if (file_exists(bb_get_active_theme_folder() . "/static/$file")) {
    bb_load_template("static/" . $file);
    exit(0);
    }
    }
    wp_redirect(bb_get_option('uri'));
    ?>

    Put your static pages in a new static folder under your template folder, they should looks like

    <?php bb_get_header(); ?>
    The static content here.
    <?php bb_get_footer(); ?>

    Then you can access a static file. For example, access test.php(bb-templates/yourtemplate/static/test.php) at http://yoursite.com/bbpress/page/test

    Remember: Use this method at your own risk

    #61197
    livibetter
    Member

    majea,

    You used require_once in a wrong way. If you installed WordPress in /path/to/wordpress and bbPress in /path/to/bbpress, then you should use

    require_once '../wordpress/wp-blog-header.php'.

    You normally use require/include for local .php.

    PS. I don’t use WordPress and bbPress together.

    #2525
    majea
    Member

    I am trying to integrate bbPress with WordPress. I installed it on my local test environment first, in order to work out any kinks. bbPress is in the same database as WordPress. The installation went fine, it seemed, and I ended up with a basic version of bbPress — left-aligned black font on a plain white background. Is this what I am supposed to see?

    However, when I tried to point it to WordPress, using “require_once(‘http://localhost:8888/wordpress/wp-blog-header.php&#8217;);” in the config.php file, I only got a blank screen. Any idea what I’m doing wrong?

    I sort of fumble my way through all this web design stuff, so there is a good chance the answer is painfully easy, but I can’t seem to find it. Thanks.

    #60752
    grosbouff
    Participant

    I thinking to start developping a plugin.

    I’m not a real coder but i’ll try.

    Anyway, I think the problem is that bbpress uses names and not levels (like wordpress) for roles, so it will be hard to do, no ?

    If you have ideas, if you want to help me, please feed this threat !

    #2524
    intellivision
    Participant

    http://appleswitcher.com/wp/forum/

    They don’t increment (i.e. 10 repies, 1 view) any longer after I re-themed and moved my forum.

    Sorry to double post, but the post I added yesterday in the Extend forum doesn’t show here.

    #59134

    In reply to: Installing bbPress

    jim12345
    Member

    Hello Trent, thanks for your reply.

    Yeah, I’m not completely sure if the information that I put in that file is correct. Is there a specific place where I can find that MySQL information to plug in there? Thanks again.

    #59133

    In reply to: Installing bbPress

    Trent Adams
    Member

    For whatever reason, it doesn’t like the information that you put in config.php for your database. You better make sure that is 100% correct and running. Also search this forum for some localhost installs for ideas!

    Trent

    #2114
    jim12345
    Member

    Hello,

    I uploaded the bbpress folders and files to my server and put the MySQL information into the config file.

    So now the directions say to “Load bb-admin/install.php in your web browser and do what it tells you”. So I clicked on the “bb-admin” folder, then clicked on the “index.php” file, then clicked on the url link, and my browser opened up a page that said this…

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user ‘jim1234’@’localhost’ (using password: NO) in /home/jim1234/public_html/forum/bb-includes/db.php on line 73

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/jim1234/public_html/forum/bb-includes/db.php on line 73

    Cannot select DB.

    What am doing wrong?? Any help greatly appreciated.

    #61188

    In reply to: Plugin: Gravatar

    Trent Adams
    Member

    I like this plugin the way it is! It is great! Thank you! Don’t forget to add it to the repository as well:

    https://bbpress.org/plugins/add/

    Trent

Viewing 25 results - 59,426 through 59,450 (of 64,407 total)
Skip to toolbar