Forums

[resolved] Adding author url in comment (12 posts)

  1. tazme
    Member
    Posted 3 years ago #

    When a registered user makes any comment, to show his url to his blog on that site, his website link needs to insterted in the profile menu under dashboard. Is there any way to show blogger's link automatically. I mean how can I echo user's login name in comments.php file so that his profile url is automatically inserted with his nickname.

  2. Xamataca
    Member
    Posted 3 years ago #

  3. tazme
    Member
    Posted 3 years ago #

    Thanks.

  4. tazme
    Member
    Posted 3 years ago #

    What I want to do is: I can make users' website link (with their login name) on their profile by a simple trick. But, it does not help to show their url in comments. It only shows http://. What should I do now?

  5. Anonymous
    Unregistered
    Posted 3 years ago #

    in place of http:// what do u want to show??

  6. TheGeek101
    Member
    Posted 3 years ago #

    <?php comment_author_url_link(); ?>
    Should Display the URL in full.

    <?php comment_author_url_link('Visit Site of Comment Author', '', ''); ?>

    Change "Visit Site of Comment Author" to set link text

  7. Anonymous
    Unregistered
    Posted 3 years ago #

    can u please tell me exactly what website url u want to show in memebers profile as default?

  8. tazme
    Member
    Posted 3 years ago #

    I'd like to show their personal blog/profile link on their name in the comments section.

  9. Anonymous
    Unregistered
    Posted 3 years ago #

    if i understand u correctly then u want to set a default profile link for every registered member in ur blog instead of showing only http:// ,rite?

    to do this u need to modify registration.php file located in wp-includes.

    find the linew below there:

    if ( empty($user_url) )
    $user_url = '' ;
    $user_url = apply_filters('pre_user_url', $user_url);

    here the null value for $user_url gives http:// in return. u can set the value u want to get in website url as default.

    let me know whether it works or not.

  10. Anonymous
    Unregistered
    Posted 3 years ago #

    but it will work only for those who will register to ur blog after modifying this. but not for the existing members.

  11. tazme
    Member
    Posted 3 years ago #

    Thanks mate. I will inform you after checking. Cheers.

  12. tazme
    Member
    Posted 3 years ago #

    Thanks a lot. It worked.

Topic Closed

This topic has been closed to new replies.

About this Topic