Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 22,801 through 22,825 (of 26,877 total)
  • Author
    Search Results
  • #68216

    OK, I’ve looked at the other thread and looked at the cookie interaction on my site and have it working. I did have to make a change to my wordpress installation to get it to work. Here is what I did:

    My wordpress installation is at sacbikekitchen.org

    My bbpress installation is at sacbikekitchen.org/forum/

    I added the following to my /forum/bb-config.php:

    $bb->cookiedomain = '.sacbikekitchen.org';

    $bb->sitecookiepath = '/';

    I added the following to my /wp-config.php:

    define('COOKIE_DOMAIN', '.sacbikekitchen.org');

    define('COOKIEPATH', '/');

    Then I made a couple additions to the wp-includes/pluggable.php file:

    Around line 596 I added:

    setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, '/forum/', COOKIE_DOMAIN);

    setcookie($auth_cookie_name, $auth_cookie, $expire, '/forum/bb-plugins', COOKIE_DOMAIN);

    setcookie($auth_cookie_name, $auth_cookie, $expire, '/forum/my-plugins', COOKIE_DOMAIN);

    setcookie($auth_cookie_name, $auth_cookie, $expire, '/forum/bb-admin', COOKIE_DOMAIN);

    Around line 620 I added:

    setcookie(LOGGED_IN_COOKIE, ' ', time() - 31536000, '/forum/', COOKIE_DOMAIN);

    setcookie(AUTH_COOKIE, ' ', time() - 31536000, '/forum/bb-plugins', COOKIE_DOMAIN);

    setcookie(AUTH_COOKIE, ' ', time() - 31536000, '/forum/my-plugins', COOKIE_DOMAIN);

    setcookie(AUTH_COOKIE, ' ', time() - 31536000, '/forum/bb-admin', COOKIE_DOMAIN);

    Hope it helps…

    Meraj Chhaya
    Member

    Hi all!

    I run wordpress 2.6 at phonereport.info. I tried installing bbPress 1.0 Alpha so that it could integrate with WordPress, but just as I concluded the installation successfully, I get the following error:

    ‘Parse error: syntax error, unexpected T_STRING in /home/nokisat7/public_html/phonereport.info/test/bbpress/bb-config.php on line 20’

    Line 20 is the following:

    ‘// the value of their equivalent keys in the WordPress file wp-config.php’

    Here is the installation log, I changed the password:

    ‘Referrer is OK, beginning installation…

    >>> Setting up custom user table constants

    Step 1 – Creating database tables

    >>> Modifying database: nokisat7_bbpress (localhost)

    >>>>>> Table: bb_forums

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_meta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_posts

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_terms

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_relationships

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_taxonomy

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_topics

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    Step 2 – WordPress integration (optional)

    >>> WordPress address (URL): http://phonereport.info/

    >>> Blog address (URL): http://phonereport.info/

    >>> WordPress cookie keys set.

    >>> WordPress “auth” cookie salt set from input.

    >>> WordPress “logged in” cookie salt set from input.

    >>> Fetching missing WordPress cookie salts.

    >>>>>> WordPress “secure auth” cookie salt not set.

    >>> User database table prefix: wp_

    >>> User database name: nokisat7_wrdp9

    >>> User database user: nokisat7_forum

    >>> User database password: something

    >>> User database host: localhost

    >>> User database character set: utf8

    Step 3 – Site settings

    >>> Site name: PhoneReport test forum

    >>> Site address (URL): http://phonereport.info/test/bbpress/

    >>> From email address: only.meraj@merajnet.com

    >>> Key master role assigned to existing user

    >>>>>> Username: admin

    >>>>>> Email address: only.meraj@merajnet.com

    >>>>>> Password: Your existing password

    >>> Description: Just another bbPress community

    >>> Forum name: PhoneReport test forum

    >>>>>> Topic: Your first topic

    >>>>>>>>> Post: First Post! w00t.

    >>> Key master email sent

    Installation complete!’

    Please let me know what else you wish to have.

    There are two different databases: one for the wordpress installation, the other for bbpress.

    Thank you in advance, and keep up the good work!

    #68566
    jonkristian
    Member

    Hm, turns out I still have trouble accessing admin panel in bbpress. Straange, I tested it with login via both bbpress and wp the last time, however now, it doesn’t seem to work. :/

    Regarding the setup, i followed Deadpan’s setup down to the very last line, except that i kept the hash in

    $bb->logged_in_cookie = ‘wordpress_logged_in_ikeptthishashin’;

    #67991
    hotshottwo
    Member

    I like this idea. Would it be possible to force bbPress login/logout through WordPress too? That way all “membership” functions would be treated consistently.

    #68636
    johnhiler
    Member

    The bbPress I’m using is on 0.83… upgrading to 0.9.0.2 on a test server, and then testing the integration with WordPress and Mediawiki.

    Once everything is looking good, we’ll migrate the live site to use bbPress 0.9.0.2. Then I’ll install this plugin – excited!

    Yah Mediawiki is tricky stuff. The worst part is that the cookies don’t truly integrate! I used a plugin to get both software reading off of the same bbPress users table… so that works. But you have to re-sign in manually as you click from the blog/boards to the wiki… alas.

    Will keep you posted on the plugin!!

    #66118
    Gregg
    Member

    ok update as ive been messing with thing maybe too much.

    if i include the wp-blog-header.php to use WP functions i am never recognized as logged in on BB side even though using the bb form gets me logged in on wp side. everything redirects me to the forum homepage when trying to go to admin or profile. weird.

    with the include not there I can login and be shown logged in on bbpress side, but i cannot logout! omg it doesnt end. maybe its because i have had 5 hours of sleep the past two nights but any help on this would rock!

    #66117
    Gregg
    Member

    Im integrating my second wp and bb site and this time around it seems there are some easier steps only I cant get this setup to work. I can login to the WP side fine. But when i login from bb side it just redirects to the forum homepage. It will login the person on the wp side but not let them do a thing on the bb side.

    I dont have admin access until wipe out the theme and clear the cookies. its very strange.

    I followed all steps correctly in the writeup. any help would be much appreciated.

    here is what my bb-config file looks like

    require_once('/path/to/blog/wp-blog-header.php');

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘db’); // The name of the database

    define(‘BBDB_USER’, ‘user’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘pswd’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few

    define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old bb-config.php does

    define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them

    // If you are installing for the first time, leave them here

    define(‘COOKIEPATH’, ‘/’ );

    define(‘SITECOOKIEPATH’, ‘/’);

    // Change BB_SECRET_KEY to a unique phrase. You won’t have to remember it later,

    // so make it long and complicated. You can visit https://www.grc.com/passwords.htm

    // to get a phrase generated for you, or just make something up.

    // If you are integrating logins with WordPress, you will need to match the value

    // of the “SECRET_KEY” in the WordPress file wp-config.php

    define(‘BB_SECRET_KEY’, ‘secretkeydotcom’); // Change this to a unique phrase.

    // If you are running multiple bbPress installations in a single database,

    // you will probably want to change this.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BB_LANG to ‘de’

    // to enable German language support.

    define(‘BB_LANG’, ”);

    /* Stop editing */

    if ( !defined(‘BB_PATH’) )

    define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );

    require_once( BB_PATH . ‘bb-settings.php’ );

    $bb->wp_siteurl = ‘http://www.site.com/blog/’;

    // that’s your WordPress URL, not bbPress

    $bb->wp_home = ‘http://www.site.com/blog/’;

    // almost always the same as siteurl unless you tinker

    $bb->wp_table_prefix = ‘wp_’;

    // should almost always be wp_ unless you tinkered

    $bb->user_bbdb_name = ‘db’;

    // this is the MYSQL database name for *WordPress*

    // you can copy it right out of WordPress !

    $bb->user_bbdb_user = ‘user’;

    // this is the MYSQL user name for *WordPress*

    // you can copy it right out of WordPress !

    $bb->user_bbdb_password = ‘pswd’;

    // this is the MYSQL password for *WordPress*

    // you can copy it right out of WordPress !

    $bb->user_bbdb_host = ‘localhost’;

    // 99.9% of the time it’s going to be localhost, unless you are on DreamHost or some other weird ISP

    $bb->custom_user_table = ‘wp_users’;

    // 99.9% of the time it’s going to be wp_users

    $bb->custom_user_meta_table = ‘wp_usermeta’;

    // 99.9% of the time it’s going to be wp_usermeta

    $bb->authcookie = ‘wordpress_randomnumbers’;

    // in theory you should be able to leave this out

    // but this is going to be copied from WordPress cookie

    // this *must* match the WordPress setting

    // do NOT use the 1234567 part, use your own cookiehash from WordPress – see the note at the very bottom

    $bb->cookiedomain = ‘.site.com’;

    // note the leading DOT – this is important

    // this *must* match the WordPress setting

    $bb->cookiepath = ‘/’;

    // I *highly* recommend you set the cookie path to /

    // this *must* match the WordPress setting

    $bb->sitecookiepath = ‘/’;

    // I *highly* recommend you set the cookie path to /

    // this *must* match the WordPress setting

    //tried this – doesnt work with or without…ugh

    $bb->usercookie = ‘wordpressuser_randomnumbers’;

    $bb->passcookie = ‘wordpresspass_randomnumbers’;

    #68904
    _ck_
    Participant

    Unfortunately there’s little bbPress documentation right for developers. It’s very much like WordPress however, just different hooks (do_action, do_filter).

    There’s no official list of functions but some people have generated xrefs for it, example:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?index.html

    (unofficial)

    I keep a database reference here:

    http://bbshowcase.org/reference/

    but it’s a little out of date for 1.0 alpha

    To upload your plugin into the extend area, first you have to request a “slot” under Extend->add your plugin

    https://bbpress.org/plugins/requests/

    Then you’ll get an email when it’s approved in a few days (mdawaffe is distracted these days, it can take 1-5 days on average) Then you need to learn how to use SVN to upload your files into the system.

    The steps are the same as for WordPress and here’s a good guide:

    http://www.binarymoon.co.uk/2008/01/wordpress-plugin-subversion-guide/

    only the svn url is different

    https://plugins-svn.bbpress.org/

    #68877
    _ck_
    Participant

    Any guide that is for WordPress plugins should work for bbPress, it’s just that bbPress’s “hooks” (do_action, do_filter) will be named differently.

    bbPress is unfortunately too young to have decent documentation yet. WordPress itself didn’t really “take off” until 2.0 beta came out.

    This is essentially the plugin framework you need:

    <?php
    /*
    Plugin Name: My Tag Sort
    */
    remove_filter('sort_tag_heat_map', 'bb_sort_tag_heat_map');
    add_filter('sort_tag_heat_map', 'my_sort_tag_heat_map');

    function my_sort_tag_heat_map( &$tag_counts ) {
    // put your replacement code here
    }
    ?>

    Save it as my-tag-sort.php, put it into the bbpress/my-plugins folder, activate and you’re in business (well after you figure out the sort method).

    Typically you’d have to do a return $tag_counts; at the end of a filter but that & on the &$tag_counts means it’s “passed by refererence” which is a fancy way of using the original array directly without making a copy, so the original is changed at the source when you modify it. It’s a much faster way to move large amounts of info around.

    #68560
    jonkristian
    Member

    Deadpan11 , I followed your guide and it worked excellent, however I had to keep the hash on:

    $bb->logged_in_cookie = ‘wordpress_logged_in_’;

    Setup, http://forums.domain.com & http://domain.com

    I can now log in via the forums, and access both admin panels, and via wp, and still access both. If I log out of either, I am logged out of both. :)

    #68876
    myu
    Member

    Thank you.

    I will look for those guides. (And re-do all the “hack”s if possible..)

    Should’ve thought about looking for WordPress guides instead of bbPress ones.

    #68875
    _ck_
    Participant

    bbPress uses the same concept as WordPress with add_filter and add_action so there are many guides out there as to how it works.

    Essentially it’s a “hook” that allows you to intercept the process or results. The first part of the add_action/add_filter is the process name or trigger, the second part the the name of the function you want to process at that moment.

    If there are existing filters/actions in place you can unhook them with remove_action or remove_filter.

    #68899
    _ck_
    Participant

    WordPress allows you to make links, go to manage->links under your control panel. Make the link /forums/ if that’s the path to your forums.

    There are also wordpress plugins to make menu bars, optionally you could use that and put a few primary site links in there, including one to your forums.

    Technically if you wanted to place a link more prominently under your pages section, you could actually create a page for the forums and then use the rewriterules in your .htaccess to redirect the user to the actual forums.

    #68634
    johnhiler
    Member

    Ran into a little trouble installing it… I’ll upgrade my bbpress version this weekend!

    It’s a little tricky since we’ve integrated our bbPress with a WordPress and a MediaWiki installation… plus dozens of bbPRess plugins. But we’ll get it working soon, and I’ll send that donation off!

    #4256
    miz101
    Member

    My forums have been installed and seem to be working fine but could anyone explain to me how I would make a link to the forums from wordpress? I would like to make a link if possible that will wrap inside of wordpress so people will not have to leave my site to go to the forums. They would simply click the Forums link and it would load in the same place that the blog posts were before.

    I’m not sure if this is possible if not, could anyone could tell me how to create a simple link to just point people towards the forums that would be great. I attempted to make a page called Forums but when I add the link to the forums in the permalink it removes all the slashes “/” taking me no where when I click it.

    #68897
    irr1449
    Member

    Ok so I’m not sure if this is the best way, but I turned on WordPress integration but without sharing database tables. Now I can access the cookies on any page that I include bb-load!

    #68895
    chrishajer
    Participant

    What version are you using? For older version, the bbPress plugin bbSync does what you want. For the newer alpha versions, there is bbPress live, a WordPress plugin.

    https://bbpress.org/plugins/topic/bbsync/

    https://wordpress.org/extend/plugins/bbpress-live/

    #4254
    feastoffools
    Member

    I’m wondering if this is possible-

    We have our wordpress blog Feast of Fools tied together with bbPress forums, and I was wondering if there was a way for bbPress to treat the comments on a blog entry as a topic in the forums.

    This way, popular blog entries would “float” to the top in the same way that bbpress forum entries do.

    Any ideas? It this already a function we don’t know about?

    #68487

    In reply to: Customizing gravatars

    Okay, having tested it a bunch of different ways, I can’t get it to work.

    I want to make my own image the ‘default’ for the non-gravatard people (which works fine on WordPress).

    In WordPress it’s this:

    <?php echo get_avatar(get_comment_author_email(),50,'http://www.foo.com/gravatar.png');?>

    For bbpress we have this post_author_avatar(); on post.php. Passing the URL into that, either on it’s own or as $default doesn’t work.

    Using echo bb_get_avatar( bb_get_user_email(post_author()), 48, 'http://www.foo.com/gravatar.png' ); didn’t work.

    I’m gonna keep tossing stuff up against the wall for now.

    #66116

    @complex I think you’re mistaken. WP2.6.2 – WP2.6.3 did not have cookie-related modifications.

    WP2.6.3 did not fix ‘cookie-related issues’. The edict still stands for bbPress 0.9x.

    As I understand it, it is the move to bbPress 1.0 that uses the ‘new’ WP2.6x cookies.

    If you find ‘old’ options they’re probably there to permit backwards-compatibility with plugins etc that have not been upgraded yet.

    #63064
    _ck_
    Participant

    Okay this one is testing working.

    For anyone else that wants to use this, you have to replace the domain name by hand. It’s hardcoded for speed, sorry.

    All other target=”_blank” plugins should be uninstalled. Any existing links with target=”_blank” will be left in place for performance since target is not added by bbPress by default.

    <?php
    /*
    Plugin Name: Target Nofollow External Only
    Description: append target="_blank" and rel="nofollow" only on external links
    Plugin URI:
    Author: _ck_
    Version: 0.0.1
    */

    add_filter('post_text', 'target_nofollow_external_only',999); // unfortunately we have to do this on every page load and not in pre_post

    function target_nofollow_external_only( $text ) {
    $domain="travel-writers-exchange.com"; // domain to exclude from target and nofollow
    $text = preg_replace('|<a (.*)rel=['"]nofollow['"](.+)?>|iU','<a $1$2>', $text); // strip ALL nofollow
    $text = preg_replace('|<a (?=([^>]+http://))(?!([^>]+'.$domain.'))(.+)>|iU', '<a $3 rel="nofollow" target="_blank">', $text); // add back in when needed
    return $text;
    }
    ?>

    I’m not happy about the performance of this technique because it has to be done in post_text for every time a page is displayed, but there’s no other easy way around bbPress/WordPress’s unfortunate use of make_clickable with hardcoded “nofollow” in post_text.

    #63063
    _ck_
    Participant

    Okay I’ll play with it some more and see what I can do.

    update: the problem lies within make_clickable which has nofollow hard coded and impossible to “unfilter” at that level

    I’ll have to come up with a way to do it at display time and cleanup the mess bbpress (actually wordpress functions) create

    #68589
    Andrew
    Member

    Very nice theme. A great candidate for an accompanying WordPress theme too.

    #68864

    My first thought on just copying index.php over and changing require('./bb-load.php'); to require('./forums/bb-load.php'); didn’t work (which is how it works for wordpress), though it may work if you do that and then changed the location in settings.

    See https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory for ideas?

    #68835

    They should be added with the lowest privilege, yes. I’ve noticed that they seem to get added as ‘None’ until they log in to WordPress for the first time with a 2.6.3/1.0alpha2 setup.

Viewing 25 results - 22,801 through 22,825 (of 26,877 total)
Skip to toolbar