Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,476 through 24,500 (of 32,468 total)
  • Author
    Search Results
  • #75679

    ok, nevermind – figured things out. I found a bb_break_password function but since that is hooked into the blocked role. I just made a new one with a different $secret and cleared the auth cookie after changing the email (also sent out an email to the old address notifying of the change and initiated bb_reset_email on the new email)

    it would be great if a feature like this was incorporated into bbPress for the future. :)

    vanesta
    Member

    Both installation on WP (2.8)

    WP1 is on domain.com, and WP2 is on sub.domain.com (same domain name)

    Both allow single sign on between WP1 and WP2 with this on wp-config.php

    define(‘COOKIE_DOMAIN’, ‘.domain.com’);

    define(‘COOKIEPATH’, ‘/’);

    define(‘AUTH_SALT’, ‘6428746726478264’);

    define(‘LOGGED_IN_SALT’, ‘74829749827489237424’);

    define(‘AUTH_COOKIE’, ‘7482647263478623478’);

    define(‘SECURE_AUTH_COOKIE’, ‘985847584758475’);

    define(‘LOGGED_IN_COOKIE’, ‘98752975897435894375894’);

    define(‘TEST_COOKIE’, ‘8947519875894758495’);

    So I basically override the cookie also.

    Now I installed BBPress (1.0)

    These WP-CONFIG setting won’t work even I added BB_LOGGED_IN_COOKIE variable

    It only works with BBPress if i use these only

    define(‘COOKIE_DOMAIN’, ‘.domain.com’);

    define(‘COOKIEPATH’, ‘/’);

    define(‘AUTH_KEY’, ‘xxxxxxxxxxxxxxxxx’);

    define(‘SECURE_AUTH_KEY’, ‘xxxxxxxxxxxxxxxxx’);

    define(‘LOGGED_IN_KEY’, ‘xxxxxxxxxxxxxxxxxx’);

    define(‘NONCE_KEY’, ‘xxxxxxxxxxxxxxxx’);

    define(‘AUTH_SALT’, ‘xxxxxxxxxxxxxxxxx’);

    define(‘LOGGED_IN_SALT’, ‘xxxxxxxxxxxxxxxx’);

    But if I add anything with _COOKIE bbpress + wp signed on won’t work, if I take it out, it will with with BBPress but multiple WP single sing on won’t work

    Thanks guys

    Victoria

    #15210

    Hopefully I did not miss this somewhere else…

    The one thing that bothers me is the lack of “security” around an email address change (besides the system allowing duplicates). I’d like to force a password change (generate a random) which is emailed to the new address to thwart ill intent.

    I see the functions

    function bb_reset_email( $user_login ) {
    function bb_reset_password( $key ) {

    but this hinges upon the

    If you don't want to reset your password, just ignore this email. Thanks!

    which the exact thing I want to avoid.

    What would it take to verify the value of newpwdkey

    bb_update_usermeta( $user->ID, 'newpwdkey', $resetkey );

    and noting if there is a value stored, disable the login until bb_reset_password is executed via the link in the email.

    *i’m ok with hacking the core files for the time being and merging with upgrades with my own markers.

    #74985
    laimonas
    Member

    It was doing a similar thing or me, would not advance to step 1. After some debugging, it turned out that I didn’t have php-mysql installed. bbpress code detects it but the error message was getting lost and simply the response was redirected back to step 0.

    Doing apt-get install php5-mysql did the trick.

    #15212
    taboo
    Member

    Hi,

    I started investigating possibilities of translation bbPress to Polish. This language along with quite a few non-germanic languages has quite complex plural forms (3 forms instead of just 2). Not getting into much detail, because of the way functions.bb-core.php hardcodes seconds, hours, days… names it’s hard to do a proper translation.

    To do it right I’d need a function that uses “%d month” and not just “month” or “months” as defined here:

    // array of time period chunks

    $chunks = array(

    array(60 * 60 * 24 * 365 , __(‘year’) , __(‘years’)),

    array(60 * 60 * 24 * 30 , __(‘month’) , __(‘months’)),

    array(60 * 60 * 24 * 7, __(‘week’) , __(‘weeks’)),

    array(60 * 60 * 24 , __(‘day’) , __(‘days’)),

    array(60 * 60 , __(‘hour’) , __(‘hours’)),

    array(60 , __(‘minute’) , __(‘minutes’)),

    array(1 , __(‘second’) , __(‘seconds’)),

    );

    Any help would be very much appreciated.

    #75672

    try wp-admin/options.php instead of wp-admin/options-general.php

    thats what works in WP

    #15206

    Topic: SMPT server

    in forum Installation
    jasonbyer
    Member

    Where do I change the SMPT server… my host has given me the server info, but where do I change it in the bbpress code?

    #75670

    In reply to: A WPMU tip

    Detective
    Member

    Here’s another tip:

    I mentioned in another thread that I had problems logging in WordPress. If someone logged inside WordPress, the cookies were valid in both WP and BB but the user was unable to post in BB. The problem was that BB was authenticating the username in the cookie against a lowercase version of the user_login value. I manually changed all user logins in the database to their lowercased version and everything worked correctly :)

    #15204

    Topic: A WPMU tip

    in forum Troubleshooting
    deadlyhifi
    Participant

    I’ve set up WPMU with subdirectories, rather than subdomains. I was having issues logging into multiple blogs e.g. http://www.blog.com/blog2

    I found that removing the following from the wp-config.php file

    define('SITECOOKIEPATH', '/wp-admin');
    define('COOKIEPATH', '/');

    sorted the issue and hasn’t broken sitewide login and cookie support.

    Thought it may help someone :)

    #75649

    that is true. i modified the main register.php page (not the template – as i have a special flow for registration outside the standard bbpress way) and checked against the profile_info_keys and registered the error. But I guess one could override bb_new_user and throw a new error for a duplicate too

    But, i’m not sure how one would go about handling the updating of a profile, on the main profile-edit.php page, i see this hook but its after the error codes have been checked. So I guess one could hack this page for the time being for a duplicate email and handle appropriately

    if ( !$errors->get_error_codes() ) {
    do_action('before_profile_edited', $user->ID);

    You have to put them all in (and this is mentioned during the install and integration)

    define('BB_AUTH_KEY', 'xxx');
    define('BB_SECURE_AUTH_KEY', 'xxx');
    define('BB_LOGGED_IN_KEY', 'xxx');
    define('BB_NONCE_KEY', 'xxx');
    define('BB_AUTH_SALT', 'xxx');
    define('BB_LOGGED_IN_SALT', 'xxx');
    define('BB_SECURE_AUTH_SALT', 'xxx');

    #75612
    _ck_
    Participant

    $page will be greater than 1 if you are on a paginated set of pages for any kind of view, topic, etc.

    so do a

    global $page;

    and then if ($page>1) { blah }

    but search engines like google are already aware of bbPress and index it well

    #75462
    johnhiler
    Member

    Ah ok, I was just wondering if there was an implication that 0.9 doesn’t have a working integration with WordPress! Thanks for clarifying. :-)

    I definitely agree that it’s not as seamless as it could be…

    #74325
    _ck_
    Participant

    My point exactly about access. On a single server setup you might as well give more resources to mysql, it’s much more practical. The idea is to try to eliminate the bottleneck to mysql when you have contention among many clients. You won’t likely get that in a single server setup if mysql is done right.

    The memcache layer in wp/bbpress is only one step above the mysql layer and the only thing you are saving is a few cpu cycles from when it decodes the serialized data from mysql to memory. It certainly doesn’t help at all the fact that bbPress 1.0, like WP, now does a gazillion copies of an object in memory as it references data, instead of using pointers like 0.9 does – all those copies add up, you can actually time the 50% decrease in performance on each ROW when displaying the front page with 25 topics and it gets magnified with each plugin used.

    http://www.mysqlperformanceblog.com/2006/08/09/cache-performance-comparison/

    Cache Type Cache Gets/sec
    Array Cache 365000
    APC Cache 98000
    File Cache 27000
    Memcached Cache (TCP/IP) 12200 <<<<====---
    MySQL Query Cache (TCP/IP) 9900
    MySQL Query Cache (Unix Socket) 13500 <<<<===---
    Selecting from table (TCP/IP) 5100
    Selecting from table (Unix Socket) 7400

    Maybe someone should write an interface into the wp/bbpress memcache object manager to use APC/eaccelerator shared memory instead on single server systems. Apparently that would be significantly faster.

    #64730
    Satish
    Participant

    I see that TinyMCE editor adds <p> </p> tags after each line. How can I convert <p></p> tag to <br /> tag ?

    If this has been solved in any other threads, then please give me the link. I searched a lot before posting it here.

    Please help…its very urgent.

    #75602
    ArnyVee
    Member

    Understood. Thank you ck :)

    #75601
    _ck_
    Participant

    The people who have them working under 1.0 are likely using an older theme, either from a previous version of bbPress or a 3rd party template.

    #75595

    In reply to: post_form() h2 woes

    r-a-y
    Participant

    Ugly hack for now…

    I commented out two lines in functions.bb-template.php:

    Line 272:

    if ( empty( $h2 ) && false !== $h2 ) {

    Line 280:

    }

    Would be nice to get a better workaround that doesn’t require hacking a core file.

    #75561
    clarklab
    Member

    d’oh! this works:

    <?php global $topic; echo "$topic->forum_id"; ?>

    should’ve mentioned I was on a topic page

    #75560
    clarklab
    Member

    I tried inserting

    <?php global $forum_id; echo $forum_id; ?>

    just to test if I could grab the value and I could not. I tried it in a few places with no luck. What am I doing wrong?

    Also thanks for all the plugins. I’ve got like a dozen of them running on my install.

    #75600
    ArnyVee
    Member

    That’s strange. I didn’t deviate from the instructions, but they still aren’t showing. Darn, those are two very important plugins that I wanted to work. I guess I’ll just have to be patient until December.

    #75599

    both worked fine for me on 1.0 out of the box, no edits.

    #75598
    r-a-y
    Participant

    BBCode Buttons and BBPress Smilies work on bbPress 1.0 for me.

    I’m having trouble with one of _ck_’s plugins, but I’m not exactly sure if it has to do with her plugin, bbPress or our server.

    #75597
    _ck_
    Participant

    Many of my plugins (and others) meant for bbPress 0.9 will not work under 1.0

    I do not intend to address this until December as there will likely be additional changes to bbPress.

    Those that want to use my plugins should use bbPress 0.9 and not 1.0, you can always upgrade later.

    #15190
    ArnyVee
    Member

    Hello there,

    I’m a complete newb when it comes to bbPress, so bear with me. :)

    I’ve installed about 6 to 8 of ck’s great plugins and they’ve all worked with no issues on the latest release (think it was on July 3rd when it was released or something?) of bbPress. Now, I understand that ck has warned everyone about the possibility of the plugins not working on 1.0, but I was wondering if anyone has these working or what I might be able to do to temporarily tweak them.

    All of the plugins, except for BBCode Buttons and BBPress Smilies are working. These two are not showing up in the default theme. Any suggestions on what I might’ve missed or something that I should do to see why they’re not working?

    BBCode Buttons

    I have the bbcode-lite plugin active and working, so it’s not an issue there. I have bbcode-buttons directly in the my-plugins directory, so seems fine there.

    BBPress Smilies

    I uploaded the full bb-smilies directory to the my-plugins directory and then activated it in the admin panel. But, nothing is showing in the post boxes.

    So, I could use some suggestions for those of you that found some work arounds. Thank you!

Viewing 25 results - 24,476 through 24,500 (of 32,468 total)
Skip to toolbar