Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 61,526 through 61,550 (of 64,518 total)
  • Author
    Search Results
  • fel64
    Member

    That’s very simple; go to wp-admin > Options > Discussion and set it so comments are off. You can also modify your template by deleting all the code for comments.

    To get the ‘discuss in forums’ link, simply open your template file, and replace the <?php comments_popup_link('&nbsp;make a comment', '1 comment', '% comments','','comments off'); ?> or similar with this:

    <?php forumreplylink(); ?>

    That’ll give you what you want. Note that you’ll need to put felblogtotopicid() into a WP plugin, like so:

    <?php
    /*
    Plugin Name: HFFIB
    Plugin URI:
    Description: Helper function for integrating bbPress into your theme.
    Version: 0
    Author: fel64
    Author URI: http://www.loinhead.net/
    */

    function felblogtotopicid( $felpostID ) {
    global $table_prefix, $wpdb;
    $posts_table = $table_prefix . "bbpress_post_posts";
    $topic_id = $wpdb->get_var("SELECT topic_id FROM <code>$posts_table</code> WHERE <code>post_id</code> = $felpostID LIMIT 1;");
    return $topic_id;
    }

    function forumreplylink() {
    //must be called from within the loop yadda yadda
    global $post;
    $rl = get_option( 'wpbb_path' ) . '/topic.php?id=';
    $tid = felblogtotopicid( $post->ID );
    echo '<a href="' . $rl . $tid . '">Reply!</a>' . "n";
    }
    ?>

    If you do that, you have to take it out of the hack should you implement it.

    Griffology
    Member

    Thanks fel64. I’m looking to do away with the wordpress comments completely, just shut them off. However the bbpress post plugin posts the “discus in forms(0)” link at the end of the post. I have a bar at the bottom of each post and would like to format it in there. I’ve opened bbpress_post.php and saw the output of the post gets thrown into 1 variable. I would like to call a function in my wordpress php files, for example index.php, that calls the function from bbpress_post.php to display the “discuss in form” link.

    Hope that makes sense, but after read the thread you linked I don’t think it’s quite what i’m looking for. I’ll read it again thought as I’m tired. :)

    Thanks again.

    #57412
    Vili
    Participant

    The way I have integrated the two over at http://akirakurosawa.info/ is by editing the bbPress template so that it calls the WordPress headers instead of the bbPress ones.

    I presume that you have installed both WordPress and bbPress, and that you have integrated their user databases and installed the required plug-ins as outlined at https://bbpress.org/documentation/integration-with-wordpress/ .

    So, if you now go through the template files for your bbPress installation, you will need to replace all instances of “<?php bb_get_header(); ?>” with the WordPress command “<?php get_header(); ?>”. The same thing goes for the footers, so you change all instances of “<?php bb_get_footer(); ?>” to “<?php get_footer(); ?>”.

    However, in order to get that to work properly, I have also edited my WordPress template so that the (WordPress) header and footer files contain everything except for the actual content that is going to be shown on the page. In other words, all the “container” DIV-elements and such are opened in the header and closed in the footer. While this is perhaps not absolutely necessary, it makes your life easier.

    Finally, I use a boolean check in the WordPress header to see whether I am serving a bbPress page, and modify the header information accordingly. While I currently set the boolean myself by including

    <?php global $forumpage;
    $forumpage = TRUE; ?>

    at the very beginning of each relevant bbPress template page (i.e. those pages that call the header files), fel64 has pointed out that one could simply use a variable that bbPress uses anyway, for example $bbdb.

    I use these checks to modify the title:

    <?php if ($forumpage == TRUE) {
    bb_title();
    echo " :.: AKN&amp;I";
    } else ...

    to add the forum feed:

    <?php if ($forumpage == TRUE) bb_feed_head(); ?>

    as well as do some other things (disable Ultimate Tag Warrior’s meta tags for the page, etc.).

    So, it takes a little bit of playing around with your templates, but in the end it is doable without any actual hackery.

    fel64
    Member

    There are a few things you can do. This WP plugin will, using also the bbPress Post plugin, show replies from the appropriate thread in your forum under your newspost, plus links to the thread to reply to it. You can also transfer existing comments; you need to be careful to only do it once, but that can also be found in that thread. It hasn’t yet been successfully made so that you can reply to the forum from the wordpress part of the site, as far as I know, but I’m sure it’s possible and will be done.

    So it’s perhaps 2/3rds of the way there. :)

    Griffology
    Member

    Matt, have you finished this. I’ve tried to do it myself but with no luck I always end up throwing a sql error. :(

    #55364
    serimu
    Member

    I checked it again, and it is partially working. Forum links are accessible, but topic and others are not. I again tried three combination

    1) just adding multipleviews to htaccess = not working

    2) adding this solution = not working

    # BEGIN BBPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /forum/
    Options +MultiViews
    </IfModule>
    # END BBPress

    3. adding the code generated by rewrite-rules.php. = partially working

    #55363
    serimu
    Member

    +1

    I did also all the things(at least three or more times, and even I create a mirror template for bbpress to match with my wordpress template when I was tired of trying the same things to make permalinks to work),. So, for those people who uses Godaddy;

    It is not working with Godaddy. (Correction: It works for me, read below)

    But it only took a couple of hours to update my wordpress, install and integrate bbpress with wordpress (even, partially, templates). For now, I will not move to another hosting company for permalink option. But it is a bit annoying because rewrite rules are working on Godaddy. I have installed wordpress(10 or more different websites), and drupal(3 or more websites), and no problem with permalinks. When you create your htaccess file for the first time, you need to wait for a couple of hours (in avarage 2-3 hours). After that first initialization, every change in htaccess are applied instantly. Namely you just need to wait only for the first time.

    I also tried a simple redirect to check my htaccess file in forum root directory. And it was working.

    So as the creator team of bbpress is the same for wordpress. And as wordpress is ok with godaddy. The team may suggest an alternative way for rewrite rules. I dont know much about rewrite rules. And I believe the file (bb-admin/rewrite-rules. php) creates correct rules for the most of the servers.

    SOLUTION:

    I wrote all the above information and then I think to add my config.php file to here. So I find out something, that I dont use akismet, so I add // to beginning of that line, namely:

    //$bb->akismet_key = ''; // Example: '0123456789ab'

    and it is working now :)

    #57411
    Trent Adams
    Member

    Most of the *seemless* integration is really done by creating a template in bbPress that looks the same as wordpress using the existing theme and modifying the CSS style sheet to be the same as your wordpress theme. There are people that have managed to get bbPress inside their wordpress theme, but I only know of those that have failed and will wait for them to tell you how they did it.

    If you copy your /bb-templates/kakumei/ folder to your desktop and then play around with changing the theme. Most people edit the style.css, header.php, footer.php, front-page.php for starters. Then just create a new folder on your server root of /my-templates/ and then upload the files to a new folder /my-templates/mytheme/ or whatever. Then activate that theme in your admin area.

    The way bbPress works is that it will use the files from your new template and the original theme files if it doesn’t exist. That way, if you make a drastic change to any file and you want to start over, just delete that file from your template folder and it will use the original again.

    There are a few threads in this forum where people have gone further into detail, but that is how this site is created and others like mine with http://trentadams.ca and http://onvertigo.com looking the same even though they are on different servers.

    Hope that helps.

    Trent

    #1824
    gh3
    Member

    == Description ==

    This plugin adds a flag based on ip2country function under the user title.

    First of all I have to say thank you to Omry Yadan for his great work, yeah I mean the WP plugin Easy Ip 2 Country ( http://firestats.cc/wiki/EasyIP2Country ).

    BB Easy Ip 2 Country is only a mod of the original WP plugin to be able to work with bbPress.

    == Installation ==

    Simply download the file, and upload to /my-plugins dir.

    Then edit line n°12 according with your forum installation url.

    Download: http://www.ellequadro.net/wp-content/plugins/downloads-manager/upload/bb-easy-ip2country.zip

    #1823
    fabtest
    Member

    Hiya all,

    My question is this. How do I integrate bbpress into wordpress so that it all looks like the same site? Eg. Just like here on bbpress.org there is a “Forums” tab and the forum is opened seemlessly into wp like any other page (but without all the sidebars).

    Thanks!

    fab

    p.s. I need to do the same trick to zenphoto gallery. Would it also work?

    #57392
    fel64
    Member

    That’s because you’re using a left-hand margin on your sidebar and your main div to push them to the right.

    <div id="main">
    <div id="discussions">

    <div id="secondary">

    That’s roughly your HTML structure. Main is the full width of the central white bar, so there’s no way you can get Secondary next to it. Discussions is a sub-part of Main, and it’s pushed over to the right by a large margin on the left.

    Secondary is not part of Main, and pushed over to the far right because it has a humoungous 71% margin.

    Firstly you want to put Secondary into your Main div, otherwise there’s no way to do it. Then you need to put either one on the left; the way to do this would be to get rid of its giant margin. That should work.

    Otherwise, if you’re not doing it by the margin property, you could put Secondary into Main again, then give Secondary and Discussions a float: left; and a float: right; property (or the other way around). If there’s enough room, they should now be side by side – otherwise make them narrower.

    You can also get rid of the wrapper‘s border properties, that’s what’s giving you the double-width line.

    That’s a nice theme you made, though. :)

    #1820
    bozzy
    Member

    I’ve got the header and footer to load correctly, but the sidebar is pushed to the bottom… I think this is a CSS problem… but what do I need to change to fix this?

    Thanks!!!

    http://forums.bozzysworld.com/

    #57409
    Trent Adams
    Member

    There is a custom profile plugin right now that does what you want.

    https://bbpress.org/forums/topic/851?replies=8

    Trent

    #57386
    chrishajer
    Participant

    Solved how? Please share for the benefit of others. Thanks.

    #1822
    cpoteet
    Member

    The registration form for bbPress doesn’t allow WP details such as first and last name. It is in wp_usermeta table for WP so if you integrate you can send them straight to WP, but I think this is an oversight that should be fixed.

    Maybe I’ll do it.

    #57385
    migpilot
    Member

    SOLVED!

    #56512

    In reply to: Strut Your bbPress!

    Trent Adams
    Member

    Bozzy, why not create a new thread for it!

    Trent

    #57384
    chrishajer
    Participant

    Can you do it from a command line rather than a web interface to avoid the upload problem?

    Can you upload the file and then do something like this on the command line:

    mysql -u UserName -p DBName < TheFullTargetFilePath.SQL

    -p will prompt for the password on the command line

    I imagine there’s probably a -h if you need to specify a different host too.

    #57383
    chrishajer
    Participant

    0 queries executed is a normal result after an import. That doesn’t mean it failed (the message by itself doesn’t, I mean.)

    #57382
    migpilot
    Member

    If it helps…. exact statement from MyphpAdmin on completeion is: “Import has been successfully finished, 0 queries executed.”

    #56511

    In reply to: Strut Your bbPress!

    bozzy
    Member
    #1819
    soggybag
    Member

    I want to add a link to my bbpress forum in my wordpress site. Preferably the link would sit along side the page links.

    How can I do this? It seems that adding a page only allows you to add a page. Rather than a link to a page that already exists.

    #57381
    migpilot
    Member

    Hey fel64, I might get lynched if I drop off posts… quite a bit of great stuff there.

    My import is up to around 30,000KiB, so that’s not the issue….

    My SQL mojo man is AWOL, hence me coming here to look for some of the good SQL loving ;)

    #57380
    fel64
    Member

    I vaguely remember from setting up bb in localhost and trying to copy my server DB into my local MySQL that PHPMyAdmin wouldn’t take more than 16 Mb when importing. That might well be a setting that can be set somewhere, I don’t know; I can’t find it in its config file, in any case.

    Edit: my localhost version of phpMyAdmin says “Max: 16,384KiB” by the import dialog.

    To get around this if it is the problem, can you live without 1/3rd of the posts? Then you could delete them in the original database via some query and export the remaining 2/3rds. It might be better to hold out for someone with more database-mojo to come along and see if there’s a non-destructive way. :)

    #1818
    migpilot
    Member

    Hi all,

    First time here but long time WP fan, hence moving my forum to bbPress.

    Keeping it short, I have managed (after a LOT of work) to convert our phpbb DB over to bbPress with the aid of the converter from http://www.iteisa.com/ Be warned, I found that it did not convert correctly 100% and required a lot of manual adjustment to the rew sql file – easy if you have a small DB but our has 1500 members and some insane amount of posts and topics.

    Anyhoo, I have managed to get just about everything into bbPress except for the posts. I have them converted and sitting in an SQL file (22Mb) but I can not get the file to load. Every other file has without issue except this. Our upload limit exceeds the file size and MyphpAdmin imports the file but does not actually bring in any data…. in other words, it spends 5 minutes uploading the SQL, tells me that it has successfuly imported the file but with 0 data.

    Does anyone have any idea what’s going on? My members are itching to get going again and this is the only thing holding things up….. it’s a little odd having topics with no posts.

    Help…anyone?

Viewing 25 results - 61,526 through 61,550 (of 64,518 total)
Skip to toolbar