Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 63,376 through 63,400 (of 64,450 total)
  • Author
    Search Results
  • #52755
    Trent Adams
    Member

    Not very had to write plugins if you are a coder and look at pluggable.php as it uses a similar structure as WordPress. Right out of the box, bbPress may never work straight away with WP plugins without a core change in code.

    Trent

    #49548

    I have successfully setup my site to integrate registrations/logins between wordpress on its own DB and domain (blog.bakedlog.com) and bbpress on its own DB and domain (forum.bakedlog.com).

    Files:

    WP: wp-content/plugins/bbpress-integration.php

    BBP: my-plugins/wordpress-integration.php

    • I can create a user in wordpress and log into bbpress with it.
    • I can create a user in bbpress and log into wordpress with it.(although the default role set for wordpress does not let me write (how do i change this?))

    However, I too cannot get cookies to authenticate between the two systems.

    I have included the following in bbpress’s config.php:

    $bb->cookiedomain = 'bakedlog.com';

    $bb->cookiepath = '/';

    I monitored the cookies created on my computer as I logged into each system, and noticed that bbpress was creating the cookie correctly, domain: bakedlog.com, while when I logged into wordpress it would set the domain on the cookie to blog.bakedlog.com.

    So the problem is with WordPress..

    Looking in WordPress’ wp-settings.php I see:

    if ( !defined('USER_COOKIE') )

    define('USER_COOKIE', 'wordpressuser');

    if ( !defined('PASS_COOKIE') )

    define('PASS_COOKIE', 'wordpresspass');

    if ( !defined('COOKIEPATH') )

    define('COOKIEPATH', $current_site->path );

    if ( !defined('SITECOOKIEPATH') )

    define('SITECOOKIEPATH', $current_site->path );

    if ( !defined('COOKIE_DOMAIN') )

    define('COOKIE_DOMAIN', '.' . $current_site->domain);

    So, in WordPress’ wp-config.php I inserted:

    // BBPRESS INTEGRATION

    define('COOKIE_DOMAIN', 'bakedlog.com');

    Clearing my cookies and logging into WordPress, I see the cookie domain is correct and matches my BBPress’.

    But, there is still another problem, the cookies set by BBPress appends an md5 hash based on the site url and table prefix to the cookie’s name (ie: wordpressuser_bf17f59023eb22f…..) while WordPress’ cookie name is only: wordpressuser

    I looked around in bb-settings.php and found:

    define('BBHASH', $bb->wp_siteurl ? md5($bb->wp_siteurl) : md5($bb_table_prefix) );

    if ( !isset( $bb->usercookie ) )

    $bb->usercookie = ( $bb->wp_table_prefix ? 'wordpressuser_' : 'bb_user_' ) . BBHASH;

    if ( !isset( $bb->passcookie ) )

    $bb->passcookie = ( $bb->wp_table_prefix ? 'wordpresspass_' : 'bb_pass_' ) . BBHASH;

    So, the next step is to define $bb->usercookie and $bb->passcookie in BBPress’ config.php:

    // COOKIE SHARING WITH WORDPRESS

    $bb->cookiedomain = 'bakedlog.com';

    $bb->cookiepath = '/';

    $bb->usercookie = 'wordpressuser';

    $bb->passcookie = 'wordpresspass';

    I cleared my cookies and tested it, VOILA! I can log into either section (bbpress or wordpress) and switch to the other without losing authentication!

    ==========SOLUTION===========

    BBPRESS CONFIG.PHP:

    // COOKIE SHARING WITH WORDPRESS

    $bb->usercookie = 'wordpressuser';

    $bb->passcookie = 'wordpresspass';

    WORDPRESS WP-CONFIG.PHP:

    // COOKIE SHARING WITH BBPRESS

    define('COOKIE_DOMAIN', 'bakedlog.com');

    ==========********===========

    Thats it I believe, let me know if it works for you or if you see anything I have done that could crash either program.

    -BHensley.com

    -Bakedlog.com

    #52753
    Trent Adams
    Member

    Rod,

    Right now, the integration with wordpress is strictly login related. The plugins for WordPress currently do not work with bbPress because of the differences in how they work with the system. I have requested the YouTube plugin for bbPress from the author of the Anarchy Media Plugin for WP and I hope this gets out there soon! Plugins don’t take too much to convert over to bbPress, but they still have to be converted to work with the system.

    Trent

    #52723

    In reply to: Theme – Bloody Gray

    Trent Adams
    Member

    Very nice job so10! Looks great! Start of WP and bbPress theme release!

    Trent

    #1126

    Topic: My forum

    in forum Themes
    veb
    Member

    This forum I am creating for a small indie game (www.toribash.com) and SMF just didnt cut it. Way too difficult to change core code, and to me, make new plugins!

    This is a temporary link, seeing I’m not anywhere NEAR finnished. As you can see I am using the emotions plugin, avatar plugin, PM plugin and a few of my own.

    http://veb.bounceme.net/bbpress/

    Comments welcome :)

    #51675
    chrishajer
    Participant

    I may have downloaded the wrong version. This is from the file notification_all.php

    * Plugin URI: http://www.la-school.com/2006/bbpress-notification/

    * Version: 1.1

    Oops! “notification all” – haha

    I will download the new version now, with the enhancement on the last poster’s name. Thanks a bunch. Merry Christmas.

    #1128

    Topic: Theme – Bloody Gray

    in forum Themes
    so1o
    Participant

    This is a wordpress/bbpress integrated theme. This theme will work only when you have integrated wordpress and bbpress. for details visit

    http://www.adityanaik.com/blog/bbpress-and-wordpress-integration/

    Screenshots

    http://www.adityanaik.com/projects/themes/bloody-gray-theme/#bbpress-ss

    download the bbpress theme from here

    http://www.adityanaik.com/download/bb-my-template.zip

    download the wordpress theme here

    http://www.adityanaik.com/projects/themes/bloody-gray-theme/

    Note: the header in wordpress will need to be changed to add link to forum

    #51674

    @chrishajer:

    This Plugin doesn’t care if you’re admin or not. So you should only receive emails on your favorite topics.

    Maybe you’ve downloaded the wrong version? There is one, which sends an email on every post!

    You had an great Idea! I just put this into it. Now it displays the last posters name in the mail.

    Download latest Version here:

    http://la-school.com/2006/bbpress-notification/

    #52329
    implicated
    Member

    Your PHP version is rather old, use this:

    if (!function_exists('file_put_contents')) {

    function file_put_contents($filename, $content) {

    if ($fp = fopen($filename, 'w')) {

    $result = fwrite($fp, $content);

    fclose($fp);

    return $result;

    }

    else {

    return false;

    }

    }

    }

    #1127
    ardentfrost
    Member

    New release of my Avatar Plugin (version .73a). Core files no longer have to be adjusted! Just drop the file into your plugins directory, adjust your css file (as shown in the readme) and you’re good to go.

    Get the new release here: http://faq.rayd.org/bbpress_avatar/

    View use of the Avatar Plugin here: http://www.rayd.org/forums/

    #52701

    In reply to: Plugin: Warn users

    ardentfrost
    Member

    veb, I don’t mind hosting your plugins until something on bbpress is made. Just let me know (feel free to go to my forums at http://www.rayd.org/forums/ and send me a pm about it)

    #1125
    Rod
    Member

    BBPress and WordPress = same creators … so a simple question : why, during the install, would be not possible to have 2 buttons radios with …

    Option One : create a new DB users

    Option Two : use the actual WP DB users

    ?!

    #52626
    drtech
    Participant

    Yes it’s working now.

    #52266
    suleiman
    Member

    hmmm…I’m having the same problem, where I get the error about the bbpress database not existing. I’m integrating with WPMU instead of regular wordpress but that shouldn’t really cause an issue should it?

    Is there a place we can hardcode it to wp_ instead of bb_?

    #52698
    Trent Adams
    Member

    If someone can help me with the code to call the right browser in a plugin, then I will work on the templates needed to show up in the browser. It is just the plugin code and calling /mytemplates/mobile/ for the templates that would be difficult for me!

    Trent

    #1123
    Trent Adams
    Member

    I have been using Alex King’s Mobile edition for WordPress for quite some time and love it! I was wondering if someone would like to look at the plugin and see how it could work with bbPress. It seems pretty straight forward.

    http://alexking.org/projects/wordpress/plugins/wp-mobile.zip

    Another plugin called WordPress PDA is similar and might be easy as well.

    http://imthi.com/wp-pda/

    Interesting stuff! Any takers?

    Trent

    #52600

    In reply to: smf to bbpress

    veb
    Member

    😮 thanks Trent, I was wondering about this and I was going to try make my own, but I never look at a simpler way!

    #52625
    Trent Adams
    Member

    So it is working the way you want now?

    Trent

    #52599

    In reply to: smf to bbpress

    Trent Adams
    Member

    Nothing that is written yet to my knowledge. Does SMF go over to phpBB format? If it does export to that, then you can use:

    https://bbpress.org/forums/topic/402?replies=10

    Hope that helps.

    Trent

    #52613
    Trent Adams
    Member

    In terms of integrating site with calling WP functions, it is a little out of my realm. If you search this site and can’t find anything useful, you can always head over to the forums with massive information!

    https://wordpress.org/tags/bbpress

    Trent

    #52624
    drtech
    Participant

    I think i have it. By removing the www from the wordpress link fixed it . (http://koma-inu.org/bbpress) Now comes up with welcome header if you are logged in.

    #1121
    #52611

    In reply to: Lyceum

    ardentfrost
    Member

    anything is possible… I highly doubt it’d be easy though (I’ve never used Lyceum, but it’d need the exact same table layout as bbpress to be easy, and I doubt that’s the case)

    #51427

    Hehe … I think I found the bug. You’ve said, you’re using the latest Trac-Version of bbPress?

    Then I think you have to change line 48 of my plugin from

    add_action('init', 'online_update');

    to

    add_action('bb_init', 'online_update');

    then … it should work! (for me it did)

    #1120
    Null
    Member

    Hi,

    Welltried to make a plugin, but it aint working, why not?

    Plugin code:

    <?php

    function get_portal_topics () {

    global $bbdb;

    return $bbdb->query("SELECT * FROM $bbdb->topics WHERE forum_id = 1 ORDER BY topic_time DESC LIMIT 0,10");

    }

    ?>

    This has to give a list I need, but turning it into my template it get this error:

    Warning: Invalid argument supplied for foreach() in /bbpress/bb-templates/portal-page.php on line 33

    Template code:

    <?php $portal_topics = get_portal_topics() ?>

    <?php foreach($portal_topics as $topic) :

    $portal_topic_posts = get_thread( $topic->topic_id); ?>

    <h1><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></h1>

    <?php printf(__('%1$s - <a href="%2$s">%3$s</a>'), get_topic_time(), get_user_profile_link($topic->topic_poster), get_topic_author()) ?><br/>

    <?php echo $portal_topic_posts[0]->post_text; ?>

    <div align="right"><?php printf(__('<a href="%1$s">Comments (%2$s)</a>'), get_topic_last_post_link(), get_topic_posts()) ?></div><br/>

    <?php endforeach; ?>

    Or my plugin is all wrong, or how I call it…. or both :)

    Thx

Viewing 25 results - 63,376 through 63,400 (of 64,450 total)
Skip to toolbar