• Resolved kigazw

    (@kigazw)


    Hello Robin, thank you very much for your work!

    It’s about the quotes. When I quote something as a logged-in user, the link to the user is included in the quote, and the name is clickable.

    But unregistered users should not see this link! Is there a solution to this?

    Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • I was the last one to make changes to the quotes so it’s still fresh in my mind, and hopefully I can answer your question.

    Simple answer – No, there is no way to accomplish that.

    Simple explanation – The quotes are included within the reply content as if it were part of the reply content.

    This is default bbPress behavior. Style Pack just expands upon that default behavior to provide more quote options, better styling, and integration of quotes within both editors.

    How those user profile links are handled is based upon your profile settings. If user profiles are public, guest users will be allowed to access the user profiles from that link. If user profiles are private, guest users will be prompted to login to access any user profile.

    If guest users can access user profiles, but you don’t want them to, just change your user profile settings to private.

    It sounds like you’re asking how to hide/disable those links completely for guest users, overriding the default bbPress behavior.

    That is possible by using a hook for the content, and doing str_replace() or preg_replace() for every URL that matches a pattern for your user profiles, and only doing so for guest users. A bit beyond any current plans for Style Pack at the moment, but if that is what you want, I can give you a code snippet to get you started that you could alter for your purposes. Let me know.

    Thread Starter kigazw

    (@kigazw)

    Thanks for the help!

    I would like it even simpler: Just no link, just the name without link. No matter if logged in or not.

    Would this be easier to do?

    It’s about the same amount of work either way. You basically just save one conditional check (if not logged in). The rest of the code would be the same. It would have to be done with a hook and find/replace function like I described in order for it to have backward compatibility with all past and future quotes, which also gives you the flexibility of being able to change what users see without changing the actual saved content.

    I see the value in this option, and that many others may use it besides just you, so tell you what…. I’m releasing an update within the next few days. I will add an option for this. You will be able to choose:

    1.) Display profile links within quotes for everyone.

    2.) Display profile links within quotes only for logged-in users.

    3.) Disable profile links within quotes for everyone.

    Thread Starter kigazw

    (@kigazw)

    That’s what I call great! Thank you very much and have a nice evening!

    I am very pleased!

    I’ll tag you in this topic to let you know when it’s added.

    @kigazw – Robin is releasing the next version within the next 24-48 hours, and it will include this new feature for “selective profile links for quoted usernames”.

    You will find this new option in the “Quotes” tab > “10. Quoted User Profile Links”

    This was a little tougher than I had anticipated due to the complexity of nested quotes (quoting another quote), but I managed to work it out. Quoted usernames will follow your settings, and can be changed at any time, providing full backward/forward compatibility with all quotes (top-level and nested) regardless of your past/current/future setting value.

    I’m marking this topic as resolved, but feel free to follow-up if you have any questions or issues with this new feature.

    Thread Starter kigazw

    (@kigazw)

    Thank you very much, I am glad!
    Greetings KiGaZw

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Link to user profile when quoting’ is closed to new replies.