Guest in who's online: PM Option help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bridgette
    Member
    • Aug 2001
    • 48

    Guest in who's online: PM Option help

    Hello,

    In the who is online section, it displays our guests with a 'send PM' link. We don't want guests to receive PMs. It seems counter to every setting on our site.

    Please let me know how to remove this. I can't find it in settings. And a search here in the forum did not come up with anything helpful.

    Version: 5.2

    thank you,

    Bridgette
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 3955
    • 5.7.X

    #2
    Currently, the online module template does not check for PM permissions when displaying the "Send PM" link. You have to edit the onlineuser_details template to fix this.

    Change: (there are 2 instances of this)

    Code:
    <a href="{vb:raw baseurl}/privatemessage/new/{vb:raw onlineUser.userid}">{vb:phrase send_pm}</a>
    to:

    Code:
    <vb:comment><a href="{vb:raw baseurl}/privatemessage/new/{vb:raw onlineUser.userid}">{vb:phrase send_pm}</a></vb:comment>
    <vb:if condition="$onlineUser['userid'] > 0">
        <a href="{vb:raw baseurl}/privatemessage/new/{vb:raw onlineUser.userid}">{vb:phrase send_pm}</a>
    </vb:if>
    This fix still doesn't check for PM permissions but it only checks if user is logged in, it displays the "Send PM" link. Otherwise, it doesn't display the link.

    Note that editing existing templates is not recommended as your changes may get overwritten or may have a merge conflict you have to resolve every time you upgrade.

    Flag Icon Postbit Insert GIPHY Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • Bridgette
      Member
      • Aug 2001
      • 48

      #3
      Hi Glenn,

      Thank you for the fast help. I appreciate it. I will keep a backup of the original file and make sure to replace it prior to upgrades.

      tbh - I do not like vb5 much at all. It seems weaker than previous versions and more difficult to work with. I wish I had bought xenforo.

      best regards,

      Bridgette

      quick update: I just applied the changes and it worked perfectly - thank you again.
      Last edited by Bridgette; Wed 27 Jan '16, 3:39pm. Reason: quick update

      Comment

      Related Topics

      Collapse

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎