Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change author link


  • whimsicality
    Participant

    @whimsicality

    Hi,

    I’d like to change the author link of every reply (actually it goes to user profile) :
    – if the author is not anonymous, use the user_url
    – else use the comment website url

    So i have 2 questions :
    – what’s the best way to change the author link ? editing users/template.php, using add_filter(‘bbp_get_author_link’) or something else ?
    – how can i retrieve the comment url from anonymous poster ?

    Thank you for your help

    Keep up the good work, i like bbpress !

    Greetings,
    Whimsicality

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

  • Robin W
    Moderator

    @robin-w

    Can I just clarify what you are after

    I presume you are allowing anonymous posting?

    – if the author is not anonymous, use the user_url
    – else use the comment website url

    so for the first – as it is now?
    and for the second, can you give an example of what you want it to link to (and what it does now to save me having to alter my site to find out!)


    whimsicality
    Participant

    @whimsicality

    Hi Robin,

    I presume you are allowing anonymous posting?

    Yes !
    I would like to change these two links (name & avatar in red) : Example

    so for the first – as it is now?

    No because currently, every author name & avatar links go to the user profile. I would like that these links go to the website user url.

    and for the second, can you give an example of what you want it to link to (and what it does now to save me having to alter my site to find out!)

    Currently, there’s no link on anonymous’s name & avatar. And i’d like to use the anonymous website url (if exists) as a link on his name & avatar.

    I hope it’s clear 🙂

    Greetings,
    Whimsicality


    Robin W
    Moderator

    @robin-w

    ok, can you explain or give an example of what you mean by the website user url?


    whimsicality
    Participant

    @whimsicality

    Yes of course.

    Website user url is the field in the user profile in WordPress.

    Image


    Robkk
    Moderator

    @robkk

    if the author is not anonymous, use the user_url

    it would be better to keep how it is leading to the userprofile just in case someone didnt input their website url in their profile.

    else use the comment website url

    this sounds like you want to use the website field in the anonymous user form when they post.

    so basically you want it to act sort of like how wordpress comments handles the comment author link on this one.

    am i right??


    whimsicality
    Participant

    @whimsicality

    Hi,

    it would be better to keep how it is leading to the userprofile just in case someone didnt input their website url in their profile.

    Users can already edit their profile through the login widget.

    so basically you want it to act sort of like how wordpress comments handles the comment author link on this one.

    Yes, that’s it !

    Greetings,
    Whimsicality


    whimsicality
    Participant

    @whimsicality

    Hello,

    Any help would be appreciated 🙂

    Greetings,
    Whimsicality

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar