Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,801 through 19,825 (of 32,518 total)
  • Author
    Search Results
  • #101781
    KentonMr
    Member

    The solution will be to dig into the code, add an extra field to the table, and set this field with the real password (encrypted with a workable encryption routine) the next time a forum user logs on.

    After a reasonable length of time all users should have logged back on and an accessible copy of the password obtained.

    As said I still don’t understand why the md5(‘mypass’) does not match the one in the table – there must be a comparison made at some stage or no one would ever get logged in.

    #96681
    KentonMr
    Member

    The solution will be to dig into the code, add an extra field to the table, and set this field with the real password (encrypted with a workable encryption routine) the next time a forum user logs on.

    After a reasonable length of time all users should have logged back on and an accessible copy of the password obtained.

    As said I still don’t understand why the md5(‘mypass’) does not match the one in the table – there must be a comparison made at some stage or no one would ever get logged in.

    #66754

    In reply to: Sitemap generator

    I made a blog post on how I did the sitemap using the existing plugin:

    How to create a Google XML Sitemap bbPress

    It works for me :)

    Regards

    #94518

    @Gautam: right. So weird… If you have the default Permalinks and you change them it doesn’t work. But if you save again it does :P

    I guess the plugin will flush it itself in the future, right?

    #101457
    master5o1
    Participant

    Just registered a project on LaunchPad. Browser the source for index.php and tell me what you think :D

    https://launchpad.net/bbpress-mobile

    #96357
    master5o1
    Participant

    Just registered a project on LaunchPad. Browser the source for index.php and tell me what you think :D

    https://launchpad.net/bbpress-mobile

    #94516

    @alexvorn2 No but like @Gautam said I thought was not necesary :)

    #94515

    @quicoto did you add the code

    add_filter(‘init’,’flushRules’);

    function flushRules(){

    global $wp_rewrite;

    $wp_rewrite->flush_rules();

    }

    in the bbp-functions.php ?

    #94513

    @Gautam yeap, I like to see a Month and name permalink instead of the Default, by Default it’s ok but if I choose other, without the code I mentioned in the previous message it doesn’t work.

    #94511

    hi everybody!

    I downloaded the pre-alpha bbPress plugin and it doesn’t work :/

    I added some codes to bbpres-functions to make it work:

    add_filter(‘init’,’flushRules’);

    function flushRules(){

    global $wp_rewrite;

    $wp_rewrite->flush_rules();

    }

    and then I realized that the plugin is useless at this stage :))))

    3sixty
    Member

    OK… Here is my workaround for this problem:

    1. In functions.bp-pluggable.php, under:

    if ( !bb_get_option( 'email_login' ) || false === strpos( $user, '@' ) ) { // user_login

    Add:

    $user = strtolower($user);

    2. In class.wp-user.php, under:

    $display_name = $user_login;

    Add:

    $user_login = strtolower($user_login);

    Voila – CaSe InseNSitIvity! Note that the placement of the strtolower() functions is important and allows the user to retain Case Sensitivity in their display_name (while changing their user_login to lowercase). I haven’t seen any untoward side effects yet, but will let you know.

    Nice talking to me!

    3sixty
    Member

    OK… Here is my workaround for this problem:

    1. In functions.bp-pluggable.php, under:

    if ( !bb_get_option( 'email_login' ) || false === strpos( $user, '@' ) ) { // user_login

    Add:

    $user = strtolower($user);

    2. In class.wp-user.php, under:

    $display_name = $user_login;

    Add:

    $user_login = strtolower($user_login);

    Voila – CaSe InseNSitIvity! Note that the placement of the strtolower() functions is important and allows the user to retain Case Sensitivity in their display_name (while changing their user_login to lowercase). I haven’t seen any untoward side effects yet, but will let you know.

    Nice talking to me!

    #101779
    KentonMr
    Member

    Perhaps the only solution to this is to replace all the hashing code and store a retrievable passford in the field.

    It is going to really upset the users having to go through registration again but it is far better getting one hit of all the frustrated users while I can blame it on the dumb software rather than being hit by the same problem time and time again as new users forget their passwords, we integrate other systems, etc.

    I still don’t get why md5(mypass) doesn’t give the same as in the database and I really cannot be bothered unraveling all the code to find out what is not obvious.

    #96679
    KentonMr
    Member

    Perhaps the only solution to this is to replace all the hashing code and store a retrievable passford in the field.

    It is going to really upset the users having to go through registration again but it is far better getting one hit of all the frustrated users while I can blame it on the dumb software rather than being hit by the same problem time and time again as new users forget their passwords, we integrate other systems, etc.

    I still don’t get why md5(mypass) doesn’t give the same as in the database and I really cannot be bothered unraveling all the code to find out what is not obvious.

    3sixty
    Member

    OK. I’m thinking that I could somehow modify this function in functions.bb-users.php:

    function bb_get_user( $user_id, $args = null ) {
    global $wp_users_object;
    $user = $wp_users_object->get_user( $user_id, $args );
    if ( is_wp_error($user) )
    return false;
    return $user;
    }

    3sixty
    Member

    OK. I’m thinking that I could somehow modify this function in functions.bb-users.php:

    function bb_get_user( $user_id, $args = null ) {
    global $wp_users_object;
    $user = $wp_users_object->get_user( $user_id, $args );
    if ( is_wp_error($user) )
    return false;
    return $user;
    }

    #35832
    KentonMr
    Member

    To put it simply I need to unhash / decrypt the password to reveal the current password in the database.

    I have found this topic http://bbpress.org/forums/topic/cant-administer-my-site#post-73724

    which indicates the password is md5 encoded

    However testing md5(‘mypass’) in mysql5 produces a value quite different from the ‘mypass’ used in the bbPress table.

    #35821

    Don’t know what seems to be the problem.

    I am trying to have a non-english language on the front side by keeping the admin panel in English only.

    I defined the BB_LANG in config file and now I can’t get the filter to work.

    add_filter('locale', 'bb_language_switcher_filter');

    function bb_language_switcher_filter( $locale )
    {
    if ( bb_is_admin() )
    $locale = 'en_US';
    return $locale;
    }

    Even this doesn’t work

    add_filter('locale', 'bb_language_switcher_filter');

    function bb_language_switcher_filter( $locale )
    {
    $locale = 'en_US';
    return $locale;
    }

    So I guess I am doing something wrong here.

    The filter is in bb_get_locale() located at line 41 in bb-includes/functions.bb-l10n.php

    #94510
    Erlend
    Participant

    Tried downloading the latest from Trac but I got the “invalid header” error. I don’t think I’m gonna bother asking for support about these things, so I’d rather wait for an official alpha release that’s got the bare basics put together. Great job though :)

    #94506
    Rich Pedley
    Member

    Will be about for that chat… might not be able to do much code wise sadly, but I’ll see how things go.

    Not in the plugin yet, and there is a ticket for this already regarding Forum Types.

    (Some of this kind of display may be template specific since bbPress has always been more topic centric than forum/category centric.)

    Thanks for checking it out though :)

    Not in the plugin yet, and there is a ticket for this already regarding Forum Types.

    (Some of this kind of display may be template specific since bbPress has always been more topic centric than forum/category centric.)

    Thanks for checking it out though :)

    #35801
    mt_hh
    Member

    first off all: … hi! ;)

    i installed bb and now i try to use parts of it on other areas of my website (outside of bbpress). i still found out, that i can get a lot of informations when i include

    require_once('/path/to/bbpress/bb-load.php');

    i also found an “api-plugin”, but unfortunately it won’t work with the latest version of bb (1.xxx)

    now i’am very interessed how you work width functions and plugins outside your bbpress-installation.

    for example: i will have an contact-form. if the user fill out the form, he will automatically get a board account.

    so i need to include the sign-in functions within the validation and stuff.

    how would you do it…?

    greets from hh/germany

    miruru
    Member

    I’m currently testing the bbpress plugin with the trac version. It’s going great however, i’ve noticed that the front page only displays the main forums but not the subforums/subsubforums. For example:

    MAIN FORUM 1

    MAIN FORUM 2 etc.

    Now within these forums I have subforums and subsubforums.

    MAINFORUM 1

    -Subforum

    MAINFORUM 2

    -Subforum

    –subsubforum 1

    –subsubforum 2

    What is the code, if any, to allow the front page to display all the forums/subforums/subsubforums?

    If there isn’t, i assume that I will have to wait until the trac version is updated, however any help would be most appreciated.

    #94503

    I’m gona follow up the updates on this (subscribed!)

    Keep up the good job guys ;)

    Regards.

Viewing 25 results - 19,801 through 19,825 (of 32,518 total)
Skip to toolbar