Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 19,926 through 19,950 (of 26,866 total)
  • Author
    Search Results
  • Ryan
    Participant

    After wrestling with integration between WP 2.8 and bbPress 1.0.2 for the last day and a half, I gave up and started thinking of ways I could do this a little more straightforwardly.

    My problem was I didn’t need any sort of database or user sharing between the sites. I simply wanted a way to display certain parts of my WordPress theme on my bbPress page. Things like a list of the WP categories, a menu being built from categories, a blogroll, etc.

    Here’s what I did:

    Instead of fully integrating WP, what is usually called “deep integration” so as to gain access to WordPress functions (wp_list_categories, etc.), I simply created a few functions in my WordPress theme’s function.php file that automatically generate the HTML for the items I wanted, and then saved it to a file that I could then call in my bbPress theme.

    Part 1: WordPress Theme

    Open up your functions.php file in your WordPress theme’s folder (/wp-content/themes/yourtheme/).

    Scroll down to the bottom and create your new function. For this example, I’ll use adding a list of categories from your WP blog to your bbPress forum:

    function make_cats () {
    $output = NULL;
    $output = wp_list_categories('echo=0&orderby=ID&hide_empty=0&title_li=<h3>categories</h3>');
    $fp = fopen($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/cats.html', 'w');
    fwrite($fp, $output);
    fclose($fp);
    }
    add_action('edit_category_form', 'make_cats');

    To explain this a bit, basically:

    We create a variable called $output, NULL it (make sure it’s empty), and then load the category info into it. The wp_list_categories() function creates an unordered list of the categories with a heading (h3) saying “Categories”. We also use the echo=0 bit to make sure it don’t print the HTML it is generating to the screen, but rather just puts it in $output.

    Then we open a file called cats.html in a new folder called ext that we’ve previously created (via FTP or whatever) in your theme directory (/wp-content/themes/your-theme). If the file doesn’t exists, the function will create it, however, the “ext” folder needs to already exist. The file is then fill it with $output. All these files and folders are completely up to you — you can save the file anywhere on your server, I just chose to stick it somewhere easy to remember and that wouldn’t clutter anything up.

    The final step is:

    add_action(‘edit_category_form’, ‘make_cats’);

    This tells WordPress to run this function (make_cats) every time the edit_category_form action is triggered, basically any time you load your “Categories” page in the wp-admin area. There are lots of different actions for virtually anything you can think of. Find the one suitable for your customization here.

    Part 2: bbPress Theme

    The second part is to load the contents of your newly created HTML file in your bbPress theme. To do this only requires a single line of code inserted into the appropriate place in your theme. Wherever you want the list of categories (or whatever you’re wanting to display), simply add this line:

    <?php include $_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/cats.html'; ?>

    That should do it.

    Here are a couple more function examples, both use the “save_post” action, so every time you save (new or edit) a post, it fires and updates (or creates) the HTML files:

    Tag Cloud

    function make_tags () {
    $output = NULL;
    $output = wp_tag_cloud('echo=0&smallest=8&largest=22&number=30&orderby=count&order=RAND');
    $fp = fopen($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/tags.html', 'w');
    fwrite($fp, $output);
    fclose($fp);
    }
    add_action('save_post', 'make_tags');

    Recent Blog Posts

    function make_posts () {
    $output = NULL;
    $getsomeposts = new WP_Query('numberposts=10');
    $output = '<ul>';
    while ($getsomeposts->have_posts()) : $getsomeposts->the_post();
    $output .= '<li><a href="'. get_permalink() . '" title="' . the_title('','',FALSE) . '">' . the_title('','',FALSE) . '</a></li>';
    endwhile;
    $output .= '</ul>';
    $fp = fopen($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/posts.html', 'w');
    fwrite($fp, $output);
    fclose($fp);
    }
    add_action('save_post', 'make_posts');

    Hope that helps someone who is as frustrated with the WP<–>bbP integration as I was. If you have any questions about this, feel free to post ’em here. I’ll do my best to check back.

    #32055
    #80437
    OKTeaRoom
    Member

    Ok, here’s a thread:

    https://bbpress.org/forums/topic/seemless-wordpress-integration

    Is that up to date?

    I just need some direction here.

    #79940
    johnhiler
    Member

    Hold on a second, I don’t get why your bb-config.php file was trying to deeply integrate with WordPress… that line’s not part of the standard bbPress install, as far as I know:

    https://trac.bbpress.org/browser/trunk/bb-config-sample.php

    What URL did you download the zip file from?

    #80434
    OKTeaRoom
    Member

    I mean calling the wordpress functions and using the wordpress header (and possibly footer).

    Thanks.

    #80433
    johnhiler
    Member

    When you say deep integration, do you mean you’d like to be able to call WordPress functions from inside of bbPress?

    Or do you mean that you’d like the themes to be very similar…

    #79939
    aequity
    Member

    Hi John:

    Great question. I have not WRITTEN anything in WordPress, but WordPress is one of the “canned options” for this website hosting platform (godaddy.com linux).

    I will be pleased to give you the login and pw to admin the site if that would help, you could look at the files, etc. The only thing that I’ve actually uploaded to it is the set of uncompressed bbpress files.

    Please advise. THanks alot

    A.

    #32051
    SimonDorfman
    Member

    WordPress info:

    I have wordpress Version 2.8.4 set up following these directions:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    …so the wordpress folder is located here: http://www.example.com/cms/

    …but the world sees the blog here: http://www.example.com/

    I have permalinks set up with Day and name (a.k.a.: /%year%/%monthnum%/%day%/%postname%/)

    bbPress info:

    I installed bbPress 1.0.2 here: http://www.example.com/forums/

    The problem:

    I’m having some problems with this setup which I think are being caused by mod_rewrite.

    I try to login at https://www.example.com/forums/ (using the login and password emailed to me after installation) and it seems to accept my login, but then tries to take me to this url: https://www.example.com/forums/forums/ and then shows a wordpress 404 not found page.

    Any ideas?

    Thanks very much in advance for any help!

    #32049
    OKTeaRoom
    Member

    Hi,

    I want to attempt a deep integration with my wordpress theme and I’m just wondering if there is a definitive set of instructions or thread on here that goes over what to do. I’ve seen a few, but they were started over 2 years ago.

    Are those still the best/most relevant?

    Thanks for your time. I know some people here have been on this journey with bbpress for the 2 years so they would know the answer to this question the best.

    Bob

    #80378
    gerikg
    Member
    #32047
    sadnem
    Member

    I installed bbpress 1.02 on a shared database with wordpress everything is ok except the plugins page that shows blank, What can i do to solve it. Thank you.

    Regards, Sadnem.

    #80374
    xarzu
    Participant

    I put in something for the Secret Key but it says “Error! Not equal secret keys in WordPress and bbPress”.

    Why and how do I fix this? I am on the WordPress side doing bbPress syncronization. Do I need to go to

    the bbPress side and put the same Secret Key somewhere?

    #32046
    xfatpanda
    Member

    I worked with wordpress for a while, but I’m really new to BBpress. I can’t find detail documents for BBpress like wordpress does.

    If I want to use different templates for different categories in wordpress, I can use the following script.

    <?php

    $post = $wp_query->post;

    if ( in_category(‘1) ) {

    include(TEMPLATEPATH . ‘/single-1.php’);

    }

    elseif ( in_category(‘2’) ) {

    include(TEMPLATEPATH . ‘/single-2.php’);

    }

    else {

    include(TEMPLATEPATH . ‘/single-3.php’);

    }

    ?>

    But I don’t know how to make it in BBpress, could anyone help me out? Thanks a lot!

    #76595

    this is a popular demand…

    maybe take a look at some old threads, like this one:

    https://bbpress.org/forums/topic/i-want-to-show-de-wp-profile-instead-bb-profille

    #78574
    Jan_d
    Member

    I am bumping this since I still have no clue what is wrong and the related threads in the forum have no Answers for me …

    is it because one cookie starts with:

    wp wordpress

    and another time the same cookie starts with

    wordpress

    only

    ???

    if so, where can I change this?

    Please help!

    #76594
    dikkevandale
    Participant

    Any solution? I have the same question!

    #80407
    christianrharris
    Participant

    Got it, I was looking in my BBpress themes folder instead of wordpress themes folder. Thanks!

    #80373
    xarzu
    Participant

    Ah Ha!!

    I just got the bbPress url working!! (happy emoticon here) It is good to see it say

    bbPress url Everything is ok!

    It is a little tricky. The trick is that the plugin php for bbpress and for wordpress have different file names and you do NOT use the exact same zip file for both plug ins.

    Now I just need to know what the secret key in wordpress and bbpress is and where to find it. This is the new error.

    #80372
    johnhiler
    Member

    Hopefully the plugin developer can help you… his contact information is here:

    https://bbpress.org/plugins/topic/wordpress-bbpress-syncronization/

    #80371
    xarzu
    Participant

    Does the plug in work?

    My problem is that after “URL is incorrect or connection error, please verify it (full variant): ” it has a url address to a file that is mixed up. How do I clear it out? And no matter what I put in the field for the the bbPress url, it does not change it.

    #79938
    johnhiler
    Member

    What is installed on your server… only bbPress? Or do you also have a WordPress install somewhere on there…

    #79936
    johnhiler
    Member

    Try deleting that require_once line… what that does is enable “deep integration”, so that you can call WordPress functions from inside of bbPress.

    Most people don’t need that sort of deep integration – I don’t use it myself. I just use user/cookie integration, so that users only have to sign in once to either my WordPress or my bbPress and they’re all set.

    #80422
    johnhiler
    Member

    Here’s a list of bbPress professionals, although I don’t know how many of them have done development:

    http://bbshowcase.org/forums/topic/bbpress-professionals-advertise-in-this-topic

    The most prolific developers are _ck_ and Nightgunner5.

    Nightgunner5 has written 9 plugins that I’m aware of (I use two of them, and they are excellent):

    https://bbpress.org/plugins/profile/nightgunner5

    _ck_ is by far the most prolific developer, with 60 plugins:

    https://bbpress.org/plugins/profile/_ck_

    But according to that link above on bbshowcase (her site), she’s not available right now. If you have a larger budget though, it might be worth dropping her a line and seeing if she’s open to it.

    You might also try Ivan here:

    https://bbpress.org/plugins/topic/wordpress-bbpress-syncronization/

    If there are active plugin developers that I’ve missed, please let cupra know in the comments!

    Good luck! And if you’re open to contributing any custom plugins to the plugin section when you’re done, that’d be great! I’d be glad to help test the plugin… :-)

    #80370
    johnhiler
    Member

    I don’t know, I’m not that familiar with that particular plugin… sorry!

    You may want to try emailing the plugin author? He mentioned in the comments a few times that he’d provide custom programming or support in exchange for a donation, so you may want to offer that?

    Let us know how it turns out!

    #80369
    xarzu
    Participant

    Is this thing, this setting or server feature, called “php-curl “?

    This is also called “PHP Client URL Library” and my web site hosting provider says they support this and it is ready to use on my website.

Viewing 25 results - 19,926 through 19,950 (of 26,866 total)
Skip to toolbar