• Resolved autox420

    (@autox420)


    Nice to see an update with profiles.

    I have one question.

    Is it possible to add user description under the nick in the forums?
    Is it possible to add user description in profiles?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @autox420

    I dont want to add this information directly under the nickname but I think adding it to the profile is a nice suggestion. ??

    What do you think, should I display the user description there or is it better to take the signature instead? Or both?

    Thread Starter autox420

    (@autox420)

    Well im asking this for my personal needs.
    I realy just want it so i can add it myself.
    I want to put php code there so i can get user descriptions myself.
    I dont care about user descriptions if there is no posibility for adding php code to it.

    But yeah its better to have it in the profile. For me atleast.

    About under the nick.
    Im building a gaming site and would like an option to add user description under the nick with php code allowed.

    Here is an example of under the nick not the best image but so you get an idea what im looking for.

    View post on imgur.com

    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    Plugin Author Asgaros

    (@asgaros)

    Hello @autox420

    I added user description to the profile in the dev-version. You can download it here:
    https://github.com/Asgaros/asgaros-forum/archive/b29fe75f6f522e5b10fb9a1de297c12a88b6494d.zip

    But please keep in mind that I will escape HTML before it is rendered which is a security measure I have to include.

    To add custom info under the username next to his posts, you can use one of the hooks. Here is an example:
    https://www.asgaros.de/support/?view=thread&id=59

    You can also add custom content to a users profile with the following hook:
    – asgarosforum_custom_profile_content

    Thread Starter autox420

    (@autox420)

    Do you know if php code is allowed in the description?
    Not for users but for webmaster?

    I would like to do this.

    get_user_description

    Get the user description directly with php code.
    Cause in my site users are forced to write description when registering.

    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    Thread Starter autox420

    (@autox420)

    I have tryied your dev version it did work: https://github.com/Asgaros/asgaros-forum/archive/b29fe75f6f522e5b10fb9a1de297c12a88b6494d.zip

    I check the source of how the description is pulled.

                    // Show biographical info.
                    if (!empty($userData->description)) {
                        $cellTitle = __('Biographical Info:', 'asgaros-forum');
                        $cellValue = trim(esc_html($userData->description));
    
                        $this->renderProfileRow($cellTitle, $cellValue);
                    }

    Can i add php code to it? If yes how? I would like to add this code.
    Something like this.

                    // Show biographical info.
                    if (!empty($userData->description)) {
                        $cellTitle = __('Biographical Info:', 'asgaros-forum');
                        $cellValue = trim(esc_html($userData->echo '<iframe width="390" height="395" src="https://test.com/'.description.'" frameborder="0"></iframe>';
    ));
    
                        $this->renderProfileRow($cellTitle, $cellValue);
                    }
    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    • This reply was modified 7 years ago by autox420.
    Thread Starter autox420

    (@autox420)

    Solved it!

                    // Show biographical info.
                    if (!empty($userData->description)) {
    $cellValue = trim(esc_html($userData->description));
    echo '<iframe width="390" height="395" src="https://test.com/'.$cellValue.'" frameborder="0"></iframe>';
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘User description in forum and profile.’ is closed to new replies.