Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 21,676 through 21,700 (of 26,864 total)
  • Author
    Search Results
  • #60880
    swaymedia
    Member

    im getting the same error, but the reference above (chrishajer’s) doesnt help.

    #72681
    swaymedia
    Member

    iv looked everywhere and the documentary, it just shows for WP functions to go in bbpress… i need a vice versa

    swaymedia
    Member

    i just want to add bbpress functions to wordpress what header files do i have to include where?

    #5072
    swaymedia
    Member

    how can i use bbpress functions like: – <?php bb_new_topic_link(); ?> in my wordpress theme?

    what header files do have to add where?

    please dont delete this topic.

    chrishajer
    Participant
    swaymedia
    Member

    i would like to know how to do the other way round of adding BBPRESS functions in wordpress.

    #72677

    HI sway,

    I dont think it does work like that. It’s a confusing name choice as a Category means something different in wordpress. Category in this instance means and equivalent of “section” or a parent group of forums so…

    Category

    – – Forum

    – – – – Topic

    – – Forum

    – – – – Topic

    – – – – Topic

    – – Forum

    – – – – Topic

    If i can link to an old example i made (from September last year) , you can see that the different categories have forums as ‘children’: http://kevinjohngallagher.com/___alpha/bbpress_as_phpbb/

    #5065
    chrishajer
    Participant
    #72094
    chrishajer
    Participant

    The reason the language does not match up is because .0.9.04 is not cookie compatible with WordPress 2.7.1. That’s why the keys are named differently.

    To integrate those two versions, there are a couple solutions:

    https://bbpress.org/plugins/topic/freshly-baked-cookies/

    https://bbpress.org/forums/topic/bayanimecom-wp26-and-bbpress-09-complete-cookie-integration

    https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101#post-17409 (the bold parts)

    #5062
    Jimmy B.
    Participant

    You might think this is another question about integrating bbPress with WordPress, but it’s not! I’m building a new website, and I would like to use bbPress as the support forums for it. The website has it’s own users table and stores the usernames as a varchar(255) and the passwords as varchar (255). All passwords are stored as sha1 hash. Basically what I want to do is to only have one place to login, that being on the main site, when the login is successful it’ll also set a cookie so the user may also use the bbPress forums. I would also like to use the avatar people upload to that site for the avatars on the forum. So here’s a few questions:

    1. Is this even possible to set the cookie for bbPress from the login outside of bbPress?

    2. Where should I start looking or poking?

    3. For the avatars where should I start looking?

    Thank you very much and if you need more information about my setup, please ask!!

    #72646

    Can you log in to WordPress?

    What version of WordPress?

    Did you try flushing all your browser cookies?

    I admit, I’m using the same tool (but I force all registration through WP so I run a plugin there). It’s actually used with Bad-Behavior and Akismet, since those were catching about 90% of the forum spam (and 99.99999% of the blog spam). Dunno what it is but you get more spammers able to make accounts via bbPress than WordPress.

    #72645
    bedbugger
    Participant

    My bbpress shares a database with wordpress.

    This was fine in 0.9.0.1. Is it a problem now?

    I checked the database, reset my password (which in fact still works perfectly on the blog side of things).

    At least one user has logged in and posted to the bbpress forum, but I can’t.

    But I can’t login. I registered a new account, and the password did not work.

    #72037

    In reply to: WordPress 2.7 options

    antonio_pt
    Member

    Thanks. I’ll give it a try on a test installation.

    did it work?

    #72036

    In reply to: WordPress 2.7 options

    richcon
    Member

    By the way, what does “deep” integration involve? When I think of integration, I think of sharing logins between WordPress and bbPress, and possibly using the same template system so both sides share the same header and menu system.

    On another side I solved the template issue by having a single “master” template system and CSS file that handled the page header, main menu, footer, and sidebar, leaving the specific bbPress and WordPress templates to only handle the stuff inside the main content box.

    As for handling logins, I made the login button go to the bbPress login page (in all its themeable glory) no matter where you click it.

    #72632
    chrishajer
    Participant

    What are you doing when you get that error? Are you integrated with WordPress? What version of bbPress did you install? Are you using a language other than the default?

    Can you compare the version of bb-admin/functions.php to the default one for whatever version you’re using (to make sure the whole thing was uploaded properly)?

    Do your secret keys have any weird characters in them (things that work properly in WordPress have created problems in bbPress before. Things like ‘ / > <.)

    Can you post what you were trying to do and the whole error message?

    #5047
    peterberg
    Member

    Hi there,

    I am trying to find solution for following issue:

    – Wordpres with a plugin extending registration (such as CYC, Register Plus, other user-field-extending ones)

    – BBPRESS uses only the “basic” WordPress fields on the “Edit Profile” page

    Now I want to enable the editing of the “custom user fields” from the wordpress plugin in the BBPRESS “edit profile” page

    Any ideas? For now I am open which plugin to use in WordPress (CYC or Custom User Fields, …)

    Help much appreciated, thanks,

    PB

    Hello there!

    I used 2 local copies of bbPress. One for integration with WordPress and another one for developing the theme. I finished the work in their respective copies but when I used the theme in the integrated copy, I lost admin access again (had to use the fix admin access plugin) and now when the forum page is opened in the browser it says

    “Fatal error: Call to undefined function bb_uri() in C:xampphtdocsjecforumsmy-templatesbbfameheader.php on line 56”

    Now I don’t get it. Why the bbPress is not able to fetch the definition of its own function?

    Any help will be highly appreciated. Thanks in advance!

    #72499
    john32
    Member

    I SOLVED IT!!!!!!!!!!!

    Since no one anywhere was giving me answers and since I’m stubborn and must solve problems, I spent yet another 10+ hours troubleshooting and I did it!!!

    Want to know the simple as hell fix?

    Well, besides including,

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    In WP Config and the following in bbPress Config, (Notice how cookie domain and cookie path are the EXACT SAME in both configs)

    // WordPress database integration speedup

    $bb->wp_table_prefix = ‘wp_’;

    $bb->user_bbdb_name = ‘changed’;

    $bb->user_bbdb_user = ‘changed’;

    $bb->user_bbdb_password = ‘changed’;

    $bb->user_bbdb_host = ‘localhost’;

    $bb->user_bbdb_charset = ‘utf8’;

    $bb->user_bbdb_collate = ”;

    $bb->custom_user_table = ‘wp_users’;

    $bb->custom_user_meta_table = ‘wp_usermeta’;

    // WordPress cookie integration speedup

    $bb->wp_siteurl = ‘same URL’;

    $bb->wp_home = ‘same URL’;

    $bb->cookiedomain = ”;

    $bb->cookiepath = ‘/’;

    $bb->authcookie = ‘wordpress_HASH’;

    $bb->secure_auth_cookie = ‘wordpress_sec_HASH’;

    $bb->logged_in_cookie = ‘wordpress_logged_in_HASH’;

    $bb->admin_cookie_path = ‘/forums/bb-admin’;

    $bb->core_plugins_cookie_path = ‘/forums/bb-plugins’;

    $bb->user_plugins_cookie_path = ‘/forums/my-plugins’;

    $bb->sitecookiepath = ‘/’;

    $bb->wp_admin_cookie_path = ‘/wp-admin’;

    $bb->wp_plugins_cookie_path = ‘/wp-content/plugins’;

    // End integration speedups

    I also did what I should have done from the start but didn’t because I am a DUMBASS,

    I copied the following from WP config,

    define(‘AUTH_KEY’, ‘randomexcrement’);

    define(‘SECURE_AUTH_KEY’, ‘randomexcrement’);

    define(‘LOGGED_IN_KEY’, ‘randomexcrement’);

    define(‘NONCE_KEY’, ‘randomexcrement’);

    AND EXACTLY AS YOU SEE IT THERE (Even the spaces in between so the WP Config and bbPress config matched even those spaces in between lines) I copied it over to bbPress Config, adding the “BB_” prefix to it,

    define(‘BB_AUTH_KEY’, ‘randomexcrement’);

    define(‘BB_SECURE_AUTH_KEY’, ‘randomexcrement’);

    define(‘BB_LOGGED_IN_KEY’, ‘randomexcrement’);

    define(‘BB_NONCE_KEY’, ‘randomexcrement’);

    Even though I looked at character for character there was something off and by copying and replacing that information I can now log into WP and it logs me in bbPress and logging out of one logs me out of the either.

    I hope this helps someone out there!!!

    #72534

    Thanks for the input _ck_, as always :)

    I’m not often trying to replace an entire function from template-functions.php, i just want to overwrite one function once. But i get now that it has to be in pluggable.php, which is cool.

    I suppose my issue here is this: why are many functions that output hardcoded HTML hardcoded into templates-functions.php in the core and not in pluggable.php so that theme / plugin developers can’t overwrite them?

    In my opinion (and it’s just my opinion) there are far too few hooks in BBpress and some of them are in the ‘wrong’ or difficult place for theme development or front-end plugin development. This may seem daft to alot of people and long time BBpress contributors, but with the likes of _ck_ writing so many great back end plugins, most of mine focus on making BBpress work in a slightly more modern way (ajax, nestings, wysiwyg, etc); and i keep hitting these ‘walls’ of where BBpress has hardcoded something.

    Basically I struggle to see why BBpress doesn’t have a functions.php file in the theme directory. As it stands we’ve got to create a theme the way we want it, then integrate it into the WordPress theme, then remove the conflicts for the WP and BBpress theme as the standard BBpress theme came with a different div structure to the standard WP one (madness), then add the hooks for all the stuff thats not got a hook, then move hooks for the one in a ridiculous place, then write a plugin to load up all the functions that your theme will use as standard (cos god forbid we’d have a functions.php like wordpress).

    It makes developing a theme that does anything more than background colour of posts and what happens around/outside the forum a real nightmare. And what’s worse, it means that any theme to stray away from the ‘default’ kakumei theme, needs to have a plugin installed as well.

    While this may seem like no big deal to people (and it’s not a huge deal), given that we use a different structure for our folders to WP (again – crazily stoopid given the market BBpress’s aimed at even at this stage), we’re reliant on the user to install and activate everything properly.

    example:

    Instructions with a theme if we had a functions.php and WP structure:

    • Copy theme folder to your theme directory.
    • Load up admin section, and select the new theme.

    Instructions with a theme as is:

    • Create a my-themes folder in your BBpress directory
    • Copy the theme folder into that directory
    • Create a my-plugins folder in the your BBpress directory
    • Copy the plugin folder into that directory
    • load up admin section, and select new theme
    • activate new plugin to make theme reliant functions work

    Now, obviously there is nothing too taxing on the second version, but it’s long been my experience that the less steps users have to undertake the less errors are made. Especially, and this is the bit I don’t get, when WordPress does things in a really simple manner (and has done so for ages).

    I appreciate that forums of the nature we create are never going to be the most exciting or ground breaking in the world, but for those who think i’m wrong about more modern / different theme’s being available for bbpress let me ask this:

    1. If you look at the Top 20 forums in _ck_’s list (http://bbshowcase.org/forums/view/top100), can you tell it’s a BBpress forum before seeing the “powered by BBpress” at the bottom? If you’re bored do the same for the rest of the top100 and see how many you need to check are running BBpress.
    2. By comparison, when you go to a non-BBpress forum on the internet, can you automatically tell what forum software it is every time?
    3. But i bet you can tell it’s NOT BBpress straight away. Why do you think that is?

    (infact the first one i’d to scroll to the bottom to check it was made my bbpress and it was – a number have switched away form bbpress – was http://soccerlens.com/forum/ which is using one of my template hacks from last year. the other worth mentioning is http://www.dragonballalcine.com/foro/ which is lovely and innovative – so that’s 2 out of the top100)

    #66149
    Billy S
    Member

    Hey all. After much help from reading these forums and tinkering endlessly, I have gotten cross site logins working between WP2.6 and bbpress 0.9 . I don’t know if you’d call it ‘integration’, but it allows a user to log in once and gain access to all appropriate site resources. Although probably not the best solution, what I did is create my own cookie login, which is caught before wordpress or bbpress load, and creates a new user object which is universal to WP and BBPress (and any other webapps you use). It does take a little…alteration…of core WP and BBPress files. I strongly encourage you to make backups before doing this, and proceed at your own risk. It worked for me, but I cannot guarantee that it will fork for you. Also, it took a bit of hacking before I came up with this solution, so it may contain minor errors or accidental omissions as I am having to backtrack to recall what exactly I did.

    okay, here goes…

    First, we have to configure bbpress to use the wp_users table. That is done in the admin area of bbpress (settings->wordpress integration). Check ‘Show Advanced Database Settings’ and enter your database information for the wordpress install. Also, enter the wordpress database secret code near the top of the settings page.

    Next, I created a file in the document root called ‘cookie_login.php’:

    <?php
    if($_SERVER['REQUEST_URI'] == '/cookie_login.php'){die('Cannot access directly');}

    //Initial Setup of Variables
    $SECRET_KEY = 'SECRET_KEY_DEFINED_IN_BBPRESS_AND_WP';//use a real secret key
    $site_user = false;

    //Do the DB thing
    $the_db= mysql_connect('SERVER','USER','PASS');
    mysql_select_db('DATABASE',$the_db);

    //Start Session!
    session_set_cookie_params(1800,'/','.SITE.com'); //30 minute session
    session_start();
    if (isset($_COOKIE['site_cookie'])){ //cookie has been set, proceed to get user info!
    $tmp = explode(':',$_COOKIE['site_cookie']); //this will make sense later
    $tmpusr = $tmp[0];
    $wpid = $tmp[1];
    $tmphash = $tmp[2];
    $hashShouldBe = md5($tmpusr . $SECRET_KEY . $wpid); //what the hash should be - prevent tampering!
    if ($tmphash == $hashShouldBe){
    if (isset($_SESSION['user'])){
    $site_user = $_SESSION['user'];
    }else{
    $qry = "SELECT * from wp_users WHERE ID = ".mysql_real_escape_string($wpid,$the_db) . " LIMIT 1";
    $result = mysql_query($qry,$the_db);
    $site_user = mysql_fetch_assoc($result);
    $qry = "SELECT meta_key, meta_value from wp_usermeta where user_id = ".mysql_real_escape_string($wpid,$the_db);//get additional data, just for fun
    $resulta = mysql_query($qry,$the_db);
    $temp_arr = array();
    while ($row = mysql_fetch_assoc($resulta)){
    $tmp_value = unserialize($row['meta_value']) ? unserialize($row['meta_value']) : $row['meta_value'];//if it a serialized array, unserialize it. otherwise, dont.
    $temp_arr[$row['meta_key']] = $tmp_value;
    }
    $site_user = $temp_arr + $site_user;
    $_SESSION['user'] = (object)$site_user;//Object just out of preference, but doesn't have to be
    }

    }else{//tsk tsk, bad hash
    $_SESSION['user'] = array();
    setcookie('site_cookie',$_COOKIE['site_cookie'],time()-9600,'/','.SITE.com');
    setcookie('PHPSESSID',$_COOKIE['PHPSESSID'],time()-9600,'/','.SITE.com');
    setcookie(session_name(), session_id(), time()-9600, '/');//may be unnecessary...not sure...but can't hurt! (famous last words)
    session_destroy();
    }
    }
    if (!isset($_COOKIE['site_cookie']) && isset($_SESSION['user'])){//attempt to gain access?
    $_SESSION['user'] = array();
    setcookie('site_cookie',$_COOKIE['site_cookie'],time()-9600,'/','.SITE.com');
    setcookie('PHPSESSID',$_COOKIE['PHPSESSID'],time()-9600,'/','.SITE.com');
    setcookie(session_name(), session_id(), time()-9600, '/');//may be unnecessary...not sure...but can't hurt! (famous last words)
    session_destroy();
    }
    session_write_close();
    unset($SECRET_KEY,$hashShouldBe,$tmp,$wpid,$tmphash,$tmpusr,$result,$_SESSION['user'],$resulta,$temp_arr);//burn the evidence!
    include ('site_functions.php'); //optional, can hook another file with functions (universal to all sites) to deal with this new user object
    ?>

    After I finished the cookie_login.php, I rolled up my sleeves and dove into the WordPress and BBPress core to allow my login to occur.

    in the /wp-config.php file, define the cookie domain:

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

    Also, that secret key you used earlier in cookie_login…define it here as well

    define('SECRET_KEY', 'Same Key from Earlier. IMPORTANT to make sure it's identical');

    Next, I hooked in my cookie_login file to wordpress and bbpress by adding an include to the top of BOTH bb-config.php AND wp-config.php

    include $_SERVER['DOCUMENT_ROOT'] . '/cookie_login.php';

    To set up the ‘site_cookie’ properly, open up /wp-includes/user.php and find wp_signon function (was the first one for me). At the bottom of the function, after

    if ( is_wp_error($user) )
    return $user;

    Add the following:

    $hashValue = $credentials['user_login'] . SECRET_KEY . $user->data->ID;
    $crossCookieValue = $credentials['user_login'] . ':' . $user->data->ID . ':' . md5($hashValue);

    setcookie('site_cookie',$crossCookieValue,0,'/','.SITE.com');
    wp_set_auth_cookie($user->ID, $credentials['remember'], $secure_cookie);
    do_action('wp_login', $credentials['user_login']);//this may have already been there, don't remember

    Remember how I mentioned the site_functions.php which can be included at the bottom of cookie_login.php? That is a perfect place to put the next function, for bbpress login, but it can just as well go inside cookie_login.php itself. The function overwrites the bbpress native wp_validate_auth_cookie function, found in /bb-includes/pluggable.php, with one of our own, which is as follows:

    function wp_validate_auth_cookie($cookie = '') {
    global $site_user;
    if (!isset($site_user->ID)){
    return false;
    }else{
    return $site_user->ID;
    }
    }

    This is used internally by bbpress to allow the login to proceed.

    Next, open /wp-login.php and find the case: logout section, and add the following right after it:

    setcookie('site_cookie',$_COOKIE['site_cookie'],time()-9600,'/','.SITE.com');
    setcookie('PHPSESSID',$_COOKIE['PHPSESSID'],time()-9600,'/','.SITE.com');'

    Finally, and this may be only applicable for subdomain usage, open /wp-includes/pluggable.php and find the function wp_safe_redirect. Add subdomains you want redirects to in the $allowed_hosts array, for example:

    $allowed_hosts[]=”bbpress.SITE.com”;

    $allowed_hosts[]=”test_wordpres.SITE.com”;`

    etc…

    That’s all (I think) that I had to do. This is probably not ideal, as there are now two copies of a user when hey login, one defined in our new system and one in the wordpress/bbpress systems; however I found this necessary to have happen since I didn’t want to go through all the core code and edit out mention of $user.

    Let me know if this works for you, I hope it was coherant enough. I may have accidentally omitted sections since, as I said before, this is the result of a few weeks of on-and-off tweaks and changes. I can always dig into code and find things I missed if I know what problems are occurring. Also, if anyone is interested, I altered a private messenging system I found which was a little outdated (http://www.pixel2life.com/publish/tutorials/608/simple_private_messaging_system/) to work with this model as well. Users can PM one another from within the wordpress dashboard, and message indicators are noted in the header throughout their visit (in wordpress, bbpress, and other subsites).

    kirabug
    Member

    So wait, does this mean BBpress is dropping support for PHP-4? Because WordPress is working just fine…. I’m also downgrading. Would have loved to see some kind of warning/note on the download file page that requirements have changed (if they have).

    #5043
    silu
    Member

    I successfully set up the bbp yesterday, integrated with my wordpress. I installed bbp on the SAME database with my wp, but is another user name…

    But all in all, they worked pretty well. The users on my WP can access and log into my bbp flawlessly. However, whenever a new user comes, and register through my bbp, there is not response for the register.php. After filling out the name and email, click send. Nothing happened.

    Except for registration, everything else works perfectly.

    PS: I cannot redirect my bbp register to wp…and I wish to keep it in bbp. I want to know why it didn’t work, since other things worked well.

    Anyone has suggestion?

    Thanks!

    #72579
    bruinfelix
    Member

    The creators of bbPress, are putting their head in to the sand, the function most people wants (theme integration) isnt still available in bbPress, and that’s a big shame! ;)

    #4921
    john32
    Member

    Hey,

    I was wonder if anyone out there has cookie sharing between WP and bbPress working, has WordPress 2.7 (NOT 2.7.1) installed, is using bbPress 1.0-Alpha-6 and using the bbPress Integration 1.0-alpha-4.1 PLUGIN.

    Would it be possible for you to go in to the WP Admin section and under settings click on bbPress Integration. For the “Manual Cookie Settings” can you post what yours states?

    I’m trying to anrrow down a cookie sharing problem I’m having and this may be it.

    Mine says,

    define(‘COOKIEPATH’, ‘/’);

    but that’s under WP Admin. Under the bbPress Integration settings in the bbPress Admin section, it has this,

    define(‘COOKIEDOMAIN’ , ‘ ‘;

    define(‘COOKIEPATH’, ‘/forums/’);

    Shouldn’t they match or since, according to the pulgin site, my WP is 2.7.1 the plugin doesn’t work correctly since it only goes up to 2.7?

    Thanks for any help I can get.

Viewing 25 results - 21,676 through 21,700 (of 26,864 total)
Skip to toolbar