Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\'

Viewing 25 results - 24,376 through 24,400 (of 26,822 total)
  • Author
    Search Results
  • #63234

    In reply to: Integration questions

    zappoman
    Member

    In the interest of sharing what I’ve learned so far, let me describe what I want to do, and what I’ve accomplished so far.

    1) I want to have a stand alone instance of bbPress running on my site that shows ALL the forums.

    2) I want to embed a single forum into a wordpress blog (actually a wordpressmu blog– but there’s nothing mu specific about my work so far)

    3) I want the forums to share the same DB, so if a topic is updated inside of my blog, I also see it updated in the standalone Forum.

    4) I want to be able to essentially allow the bbPress template functions to work inside of a wp page or post… ideally I’d like to implement a simple function like “embedd_bbpress_forum()” on a page template and have it display a fully functioning bbPress instance in the page.

    5) I want to use the chrome/theme from wordpress for the header, sidebar, footer, etc… but I also want to support the basic bbpress template structure as well.

    So far I have this working about 90%…

    What I’ve done is build a WP-plugin, that “includes” bbpress/bb-load.php. And implements a couple functions for embedding the bbpress instance in a page or post or where ever you call the embed functions.

    Things that are working:

    * forum home page

    * topic pages

    * new topic

    * comments

    * profile pages

    * favorites

    Things that aren’t working yet:

    * ajax — none of the ajax stuff is working properly yet…

    * some pages that use wp_redirect – because of how I’m embedding in wordpress, the headers are already sent before I have a chance to do the redirect, so… some functions that rely on this are reporting errors.

    How I did this so far:

    * declare GOBALS!!! – This is the biggest “sneaky trick” – basically, most of bbPress is implemented outside of a function or class context, and so the “local” variables on the bbPress pages are actually global in context. Since I’m wrapping these into a wp-pluing, I need to declare them as explicitly global. If I get all the globals right, then bbPress just works.

    * turn off mod_rewrite support in bbPress… since I want my pages to get handled by WordPress, the URL needs to end at the same location of the wordpress page, this means that my forum page has a url something like:

    http://mydomain.com/blog/forumpage/?command=topic.php&id=1

    Notice I introduced the concept of the “command” parameter, that my plugin then uses as a dispatcher to “load” (include) the right bbPress file. MOSTLY bbPress will do the rest of it’s work from the URL params.

    * Lots of filters – I’ve implemented several filters for URL remapping so that bbPress will override the standard link formation to point to my new embedded page urls

    * A COUPLE HACKS – the only hard part I’ve had to hack so far relates to bbPress’s get_bb_location() function. This function appears to be a bit of bbPresses standard “dispatcher” which tells the rest of bbPress what type of page it’s supposed to be rendering. The only problem with this approach is that in my instance of the code base it does all this logic based on PHP_SELF, SCRIPT_FILENAME, or SCRIPT_NAME… which will be pointing to my wordpress files. I made a small change to add a new filter that allows me to pull out my command param and do the bb_location determination from that.

    Has anyone else attempted this? Have they gotten further? Is there an easier way?

    Mostly this isn’t a lot of code, it’s just discovering how to make it work and testing that everything works as planned.

    #2954
    triipriit
    Member

    Hi!

    I’ve been searching through this forum like a maniac and my bad – I didn’t find any answers for my questions.

    I somehow managed to “integrate” my bbpress with WP (the part of users, cookies), BUT:

    1) How can I wrap the forum inside my WP blog (like in wordpress.com) ?

    2)…. well, the first one actually was the big one :)

    #61633
    _ck_
    Participant

    You can use str_replace in php to get rid of the underscores or probably find the nicename function in wordpress and filter through that.

    #63174
    _ck_
    Participant

    Integration is better than running under wordpress.

    This allows your wordpress side to be down while the forum still works and via versa.

    Once backpress and talkpress is available I suspect however there will be much more shared code and essentially they will start to merge together in many ways.

    ps. the forum plugin for wordpress supposedly has or had security issues if I remember correctly…

    #63179
    _ck_
    Participant

    You need to follow the instruction to syncronize the cookie paths in bbpress and wordpress.

    Essentially both have to be set to your site’s webroot (ie. /)

    Look under the cookie section here

    https://bbpress.org/documentation/integration-with-wordpress/

    or look through the integration tag here like so:

    https://bbpress.org/forums/topic/cookie-question-wp-bb-and-beyond

    #62345
    _ck_
    Participant

    You’re asking about gravtars but then talking about uploading avatars which are two different features.

    There are plugins for bbPress to show a user’s gravatar but if it’s a locally uploaded avatar within WordPress, someone would have to come up with some code to display it on the bbPress side. So it’s possible but would take someone to look at it.

    The avatar upload plugin on the bbpress side has some documentation or user comments on how to access the avatar from wordpress.

    #62096
    _ck_
    Participant

    If you can find a wordpress plugin that does this, it will be very easy to convert to bbpress.

    #63210
    _ck_
    Participant

    I think they are trying to integrate/convert the main WordPress.com site to the new cookie method which is more secure and it’s affecting here.

    I just hack the cookie and change the expire time to 2018 and that solves the re-login ;-)

    #63193
    Trent Adams
    Member

    I would like to, but the plugin I am using is restricted to WPMU exclusively (not normal wordpress) and was purchased through WPMUDEV Premium services and the copyright is so that you have to pay them to use it.

    If you are looking at a combination avatar plugin, have you searched google for “wordpress bbpress common avatar” or something similar? Have you checked out the plugin directory to see what is offered here for avatars up and above the “service” company avatars like gravatar?

    Trent

    #63192
    stereopoly
    Member

    Can you give me a short introduction, howto? =) Just some step by step thingy? Pleease ;)

    #63199

    In reply to: Shared Users table

    Trent Adams
    Member

    Not sure if anyone has done it, but maybe start by looking at the way it pulls wordpress users from another database?

    https://bbpress.org/documentation/integration-with-wordpress/

    Trent

    #63191
    Trent Adams
    Member

    It can be done as I am using a custom avatar plugin that I use with my wpmu install that pulls the avatar from the wpmu side when comparing the user id from bbPress and the wpmu user (as they are the same with integration).

    In terms of normal wordpress, I am not sure if one exists. I know lots have used gravatar or mybloglog as their base avatar system (myself included) just to make integration easier :)

    Trent

    #63190
    stereopoly
    Member

    Users of our site should not upload their avatar twice and thats why i’d like to let them work together. any other simply idea?

    #2950

    Topic: php fail.

    in forum Troubleshooting
    saintmain
    Member

    Damnit, I was so looking forward to using bbpress. Im a big fan of wordpress, and I love that its so simple to mod. but there seems to be some problems with this board, and I can figure it out.

    On the wery first page when installing, I get this messege;

    Warning: Invalid argument supplied for foreach() in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-settings.php on line 169

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-admin/install.php on line 10

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/functions.php on line 1910

    Im able to install just fine, but when I try to log in, I get this;

    Warning: Invalid argument supplied for foreach() in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-settings.php on line 169

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/pluggable.php on line 164

    Im lost when it comes to php, and its seems from this board, that there have been thiis problem for quite a wile, 6 month now. goodbuy bbpress, hello minibb??

    The forum is located on http://www.cobain.dk/bbpress

    PHP5

    The server has “PHP – Register globals” set to OFF

    bbPress and WordPress have different table prefixes

    bb_forums

    bb_posts

    bb_tagged

    bb_tags

    bb_topicmeta

    bb_topics

    bb_usermeta

    bb_users

    wp_comments

    wp_links

    wp_options

    wp_postmeta

    wp_posts

    wp_terms

    wp_term_relationships

    wp_term_taxonomy

    wp_usermeta

    wp_users

    #63189
    darkling235
    Member

    You probably could but I think retroengineering the plugin to work in both wordpress and bbpress would be more trouble than its worth. My site just uses two very simple avatar plugins that work basically the same, 68-gravatar and 4avatars. I know one plugin would be simpler to maintain but I think the amount of work required to make it function in both would be counter productive unless you had a really good reason to want the same one in both

    #63196

    In reply to: empty site

    saintmain
    Member

    Now, some text is pupping up:

    Warning: Invalid argument supplied for foreach() in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-settings.php on line 169

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information – headers already sent by (output started at /customers/cobain.dk/cobain.dk/httpd.www/bbpress/config.php:1) in /customers/cobain.dk/cobain.dk/httpd.www/bbpress/bb-includes/pluggable.php on line 164


    bbPress and WordPress have different table prefixes

    bb_forums

    bb_posts

    bb_tagged

    bb_tags

    bb_topicmeta

    bb_topics

    bb_usermeta

    bb_users

    wp_comments

    wp_links

    wp_options

    wp_postmeta

    wp_posts

    wp_terms

    wp_term_relationships

    wp_term_taxonomy

    wp_usermeta

    wp_users

    #63195

    In reply to: empty site

    saintmain
    Member

    It is a standard installation, no language or mod.

    I have installed WordPress on the same server but not in the same folder, is that a problem?

    Im using PHP4, should I upgrade to PHP5 to make bbpress work?

    The server has “PHP – Register globals” set to OFF.

    *update. php5 is now installed on the server, still ampty site :(

    #63194

    In reply to: empty site

    chrishajer
    Participant

    That looks like a server error, probably error code 500. Hard to say since the errors are not shown in the browser. If you have access to error logs, finding the problem will be easier.

    Did you try to integrate bbPress and WordPress? Are you using a different language file? Anything else modified from a standard installation?

    chrishajer
    Participant

    I believe this new error has to do with translations when you try to combine WordPress and bbPress:

    wordpress integrate problem when enable BBLANG

    Searching these forums for streamreader turns up lots of similar error messages.

    #2942
    stereopoly
    Member

    Heya,

    i’ve installed a wordpress plugin for avatars which is integrated into my wordpress by the following code:

    <?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(avatar); ?>

    Is there any possibility to embed this code into my bbpress just for showing the wordpress avatar (because of saying my bbpress to require wp-blog-header in the config.php)?

    #63139
    stereopoly
    Member

    this is what my htacces looks like in my root:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress

    RewriteEngine on

    RewriteCond %{HTTP_HOST} !^www.stereopoly.de$

    RewriteRule ^(.*)$ http://www.stereopoly.de/$1 [L,R=301]

    Redirect /feed feed://feeds.feedburner.com/stereopoly

    #63138
    _ck_
    Participant

    Googling shows that error is caused when running PHP as a CGI and there is a mod_rewrite conflict (or a file does not exist).

    I suspect there is a conflict with mod_rewrite rules in the parent folder. Show us your rewrite rules in /.htaccess (probably wordpress stuff but there may be others).

    stereopoly
    Member

    Hey guys,

    i’d love to integrate my bbpress ( http://www.stereopoly.de/forum ) into my wordpress ( http://www.stereopoly.de ), but when saying to fetch the wp-blog-header (even when taking an absolute link, my bbpress is completely giving up its job and says

    Failed opening required ‘http://www.stereopoly.de/wp-blog-header.php&#8217;

    this is what my bbpress’ config.php last lines look like:

    /* Stop editing */

    if ( !defined('BBPATH') )
    define('BBPATH', dirname(__FILE__) . '/' );
    require_once( 'http://www.stereopoly.de/wp-config.php' );
    require_once( 'http://www.stereopoly.de/wp-blog-header.php' );
    require_once( BBPATH . 'bb-settings.php' );

    ?>

    can anyone please help!?

    #56983
    chrishajer
    Participant

    If you have access to a log file, check to see what the fatal error was, or temporarily configure your webserver to echo errors to the browser, or redirect them to a file. A fatal error can be anything: you need to know specifically what the error is to have a chance at fixing it.

    #2776
    stereopoly
    Member

    Hey guys,

    i’ve just installed a wordpress plugin makin it possible to upload a user avatar. the plugin is based on based on DanĀ“s Avatar plugin and was modified by clope.

    look at the comment of a user called julius in this wordpress-post: http://www.stereopoly.de/die-evolution-der-nintendo-helden/#comments

    Is it possible to easily embed a freaky code to my bbpress (http://www.stereopoly.de/forum) showing the avatar? PLEEEASE HELP!!!

Viewing 25 results - 24,376 through 24,400 (of 26,822 total)
Skip to toolbar