cordoval (@cordoval)

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • In reply to: Add nofollow to links

    cordoval
    Member

    @cordoval

    all the code got messed up while posting on here, I wrapped it between but would not work properly someone does know how to make it look pretty?

    In reply to: Add nofollow to links

    cordoval
    Member

    @cordoval

    hi ya’ll

    I am sorry I was not back earlier on this post but I have managed to solved everything without touching the core and my method is extensible to whatever you want to do.

    //add target=_blank to post links

    function bb_target_blank( $text ) {

    return preg_replace_callback('||i', 'bb_target_blank_callback', $text);

    }

    function bb_target_blank_callback( $matches ) {

    $text = $matches[1];

    return "";

    }

    add_filter(‘post_text’, ‘bb_target_blank’);

    If you require further support then you can always reach to me at cordoval at gmail dot com and you can send me a small token of your appreciation via paypal. Thanks.

    In reply to: Add nofollow to links

    the problem was that it was not ‘post_author_link but ‘post_text

    Have you installed it on a subdomain yourself?

    I examined the parsing functions and the uri how it is stored in the database. However, I was reluctant that it would not work, I tried but did not work, but partly was because I was changing domain settings on a website.

    Also regarding the uri modifications that I really meant to convey was that I needed to change the uri for a forum that I was moving on my site. I ended up ultimately finding out how to do this. It is actually in the database itself and under user_metatopics or something similar, you just export your database and do a search for uri in the file and you will see what I mean.

    Encouragements, maybe I can try the subdomain install after you confirm me via email preferred.

    Thanks,

    Can I install bbpress on a subdomain? Is this possible?

    Please contact me to cordoval@gmail.com

    Encouragements,

    In reply to: Users Website in Topic

    Thanks a lot! This is what I was looking for. Check my other posts. Thanks!

    In reply to: Add nofollow to links

    by default the nofollow is there, but how can we add some more things to the tag?

    In reply to: Add nofollow to links

    Hi there,

    I have tried so hard to tweak this plug in but I am unable. All I want is to add besides the nofollow is a target=”_top” so that the forum user is able to go out to another window for external links.

    Can anyone help me please,

    Many thanks,

    Hi, I am interested in having a link not only be automatically turned into a hyperlink within the post but in addition to this also I would like to add: target=”_top” such that the tag would be here

    Any hints where to find the function to modify?

    Many thanks and encouragements,

    In reply to: Simple registration

    solved!!!

    add a previous line fetching the posted value:

    $temp = $_POST;

    and then use:

    bb_update_user_password( $user_id, $temp );

    That is it, you have your system where you can let your users set their own passwords. Any security threads?

    cordoval@gmail.com

    In reply to: Simple registration

    0. done

    1. so far bb_update_usermeta -> bb_update_meta-> and now in lines 38 and 39 of register.php on the root we add a line below 38: bb_update_usermeta( $user_id, $key, $$key ); /*this is where the user gets registered */

    As follows: bb_update_user_password( $user_id, “default” ); /* I am assigning here the new password by default which is “default”

    This works! So now I just need to get the string from the custom field and assign it here! Can anyone more experienced than me help me?

    In reply to: Simple registration

    I have found the trac website with the ticket for your records:

    https://trac.bbpress.org/ticket/779

    Now I am thinking that we can achieve this easily:

    0. create custom field for password (at first do not validate with an extra field)

    1. get the registration function to create the account with the given username

    2. get the password be follow through the function and pass it to a second call

    3. the second call will really call the change-password function and will get the passed user defined password to the change-password.

    4. the end.

    Sounds simple but let’s see where our code is.

    In reply to: Simple registration

    This sounds a past issue, yet I would like to add fuel to this thread. Please make me aware if there is already a plug in for this feature. I saw a note of _ck_ requesting this enhancement but I doubt it has gone through over these months yet.

    To txrediakov: I want to enable the user to choose their password, not because of email anymore but because I believe we cannot just deny our users this capability. It is expected in any reasonable website that the user can type her own password.

    To chrishajer: Good information. Now thinking logically: If one can display the password in a window returned after registration I think it could be possible to perform one additional step in the php code to take a password fetched from a custom field in the registration page, then take the bbpress generated password and replace it with the new value.

    However, there is a slight problem. The user can only change her password after she is logged in. Granting the new user access to the account to post right away after registration may pose some kind of security thread to the system and to the accounts of all users. So how could we go about doing this without compromising the security of the system?

    Please you are welcome to contact me as I need to work and solve this issue.

    Encouragements,

    After spending some days I found a clear well laid out solution here: https://bbpress.org/forums/topic/profile-user-specified-fields#post-2670

    I have read this thread but it is not clear if there is a well established procedure to add custom fields to the user profile. I hope to sort it out but in the meantime maybe someone out there can add an ordered and well documented step by step procedure.

    Encouragements and many thanks!

Viewing 15 replies - 1 through 15 (of 15 total)