Announcement

Collapse
No announcement yet.

Add Chat link in Main Nav Bar to open vBMessenger Popup

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
  • Filter
  • Time
  • Show
Clear All
new posts

    Official - Free Add Chat link in Main Nav Bar to open vBMessenger Popup

    One way to make it easy for users to start a chat with other users without opening a topic is to add a Chat link in the main navigation menu. Clicking the Chat link will open the same vBMessenger popup window.

    Below are the instructions on how to do it:
    1. Login as an Administrator to your forum.
    2. Enable Sitebuilder (Edit Site ON).
    3. Click Navigation Bar.
    4. Click New Navigation Item or New Sub Navigation Item button.
    5. Fill out the form with the following information:

      Navigation Item Name: Chat (or whatever you want to use)
      Target URL: pmchat/chat
      Open in New Window: (unchecked)
      Link Attributes:
      Code:
      onclick="window.open(this.href, '_blank', 'width=600,height=700,resizable=yes,scrollbars=yes,status=yes'); return false;"
      User Groups: (check all usergroups that have permission to use Messenger/PM)

    6. Click OK button.
    7. Click Save Changes button.

    Enjoy!
    Last edited by glennrocksvb; 06-26-2017, 12:49 PM. Reason: Removed unnecessary location=yes in the window.open() code to make it work in Chrome 59+

    #2
    Thanks you so much

    I already had a link like that... but did not know how to open it like a pop-up

    Comment


      #3
      Very nice. Thanks!

      Comment


        #4
        Since last Update of Chrome this does not work anymore and just opens a new normal tab Or do I have to change some settings in Chrome?

        No problems with firefox...

        Comment


        • glennrocksvb
          glennrocksvb commented
          Editing a comment
          I will check. What version of Chrome?

        • shining
          shining commented
          Editing a comment
          Version 59.0.3071.86 (Offizieller Build) (64-Bit)
          I did the update yesterday ...

          This happens also with the vbulletin "given" link in toolbar on top to PM Chat...

          Oh: and it also happens on the vbulletin.com ... so I think this might really be a change/bug in chrome?

          And: open a small window on click still works at a phpbb forum... so maybe it is a problem with vbulletin? I have version 5.3.1 but it definetly worked before the chrome update.

        • glennrocksvb
          glennrocksvb commented
          Editing a comment
          I upgraded to Chrome 59 and reproduced the same behavior. I guess this is new in Chrome. It looks like they don't support popups anymore? I'll have to research on it.

        • shining
          shining commented
          Editing a comment
          Like in my last comment the last sentence: Chrome still does support such popups, I works for example in a (very old) phpbb forum I know. Maybe the javascript code must be checked?

        #5
        Today I visited another vbulletin forum (3.8.7)

        On that forum also the popup still works... (they use it for additional smiley page)

        So I guess there should be changed some code for vbulletin 5 because all pop up windows on other websites/forums work?

        Comment


          #6
          Can you post links to the sites where popups work and I will check?

          Comment


            #7
            Looks like it's a Chrome bug.

            https://bugs.chromium.org/p/chromium...tail?id=732784

            The popups are using a simple window.open() in javascript to open new sized window. This is also being discussed in https://www.vbulletin.com/forum/foru...tab-not-pop-up

            Comment


              #8
              I finally found the popup issue in Chrome 59. It looks like Chrome doesn't like location=yes or location=1 window popup features when calling window.open() in Javascript. Turning off address bar in the popup used to be allowed. But it has long been disallowed for security reason (e.g. any malicious script could open a login popup window without address bar to pretend it is a login page from a bank). So it looks like Chrome 59 decided to ignore the entire specified window popup features if it has the unnecessary "location" option. Setting location=no or location=0 doesn't work anyway, so it is a useless option.

              I have updated the code in the first post.
              Last edited by glennrocksvb; 06-26-2017, 12:58 PM.

              Comment


              • shining
                shining commented
                Editing a comment
                You are my hero Enjoy a cup of coffee...

              • glennrocksvb
                glennrocksvb commented
                Editing a comment
                Thanks! I made it as iced coffee as the temperature is 103F here.

              • shining
                shining commented
                Editing a comment
                oh wow.. we had around 95 last week and crashed down to 65 on the weekend ... so I´m freezing

              #9
              I posted my findings here to vb.com

              https://www.vbulletin.com/forum/foru...47#post4372447

              I created a JIRA to fix the vBMessenger popup code in the header and postbit.

              http://tracker.vbulletin.com/browse/VBV-17444

              Comment


                #10
                Seems a shame that the browser doesn't allow the user some flexibility to decide on the risks.

                Great job hunting it down, Glenn!
                If by chance some day you're not feeling well and you should remember some silly thing I've said or done and it brings back a smile to your face or a chuckle to your heart, then my purpose as your clown has been fulfilled ~ Red Skelton

                Comment


                  #11
                  I have a temporary fix for this popup issue in Chrome.

                  https://vbmods.rocks/forum/vbulletin...e-in-chrome-59

                  Comment


                    #12
                    With the latest vbulletin release works fine

                    Comment


                      #13
                      Maybe i did smth wrong, but i put all in how the first posting said, but it still opens in the same window.... full screen. Is this mod not for all browsers?... maybe.

                      Comment


                      • glennrocksvb
                        glennrocksvb commented
                        Editing a comment
                        Can you post or PM a link to your forum?

                      #14
                      Problem is fixed. I made a stupid mistake on custom css . Sent u a last PM. Sorry for the inconvenience. ;(

                      Comment


                        #15
                        have a glass of wine on me thanks glen send it now


                        wine glass GIF by 150UP
                        voyger.: In Almighty God I trust, everyone else has to provide evidence."

                        Comment

                      Working...
                      X