Announcement

Collapse
No announcement yet.

Adding Login SignUp window to sidebar Vb5.3.4

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding Login SignUp window to sidebar Vb5.3.4

    Sometimes it is desirable to have a Login window displayed more openly such as the pic below
    Click image for larger version  Name:	login.png Views:	1 Size:	34.6 KB ID:	8542

    This can be achieved very easily using the static html module with the newly implemented permissions for vb5.3.4 or for earlier versions use the Ad module all you need is the developer tools now that comes with most browsers i used firefox quantum in this short video below thats shows how to get the login box in the sidebar which is only visable to unregistered or not logged in.
    Last edited by willie53; 01-05-2018, 08:15 AM. Reason: Updated video to use glenns code below
    Wise men say nothing Fools never listen

    #2
    It's better and easier to simply use the login <iframe> tag and not the entire HTML for the login. That's what I'm using on this site on the homepage.

    Code:
    <iframe id="idLoginIframe" class="js-menu__login-iframe" src="auth/login-form" style="width:100%"></iframe>
    With your solution, if something changes in the login page in the future, you'll have to update your HTML module. And besides, you don't have to include the <html>, <body> tags in the module as the page already has them. You're lucky the browser is forgiving about the multiple html and body tags and it still works. But it's not a guarantee that it will also work in other browsers browsers today and in the future.

    Comment


    • willie53
      willie53 commented
      Editing a comment
      Have amended the video to use code above

    • GM Junkies
      GM Junkies commented
      Editing a comment
      Thank you!

    • Merenguista
      Merenguista commented
      Editing a comment
      Thanks, it work just fine for me.

    #3
    Nice Mod.
    I constantly get new users asking where to sign in. That tiny little box on the top just doesn't cut it
    Thanks

    Comment


      #4
      Tried implementing this an am getting 403 error. Not sure what this means?

      Click image for larger version

Name:	image.png
Views:	84
Size:	37.3 KB
ID:	14521

      Comment


        #5
        What is the iframe src you are using?

        Comment


          #6
          So i basically needed to disable Mod Security while i added that html module. Re-enabled it directly after

          Comment


            #7
            Glad you figured it out.

            Comment


            • bluebarracudas
              bluebarracudas commented
              Editing a comment
              Thank you sir. It is possible to remove the sign in from the top bar?

            #8
            I have enabled Facebook and Google integration on my site but those icons only show up when a user clicks on the default Login or Sign Up link at the top of the page. Can you update your code so this sidebar also shows this integration?

            Comment


              #9
              This MOD is inop with 5.6.0

              Comment


              • Mitch
                Mitch commented
                Editing a comment
                RESOLVED
                Use a template module with

                login_main

              #10
              When I tried the code it gives me a smaller version of the site in the box. I assume I’m doing something wrong? Very new to this.

              It stopped the login drop down in the top corner working but it worked on the smaller version of the site.

              vBulletin version 5.6.1 on the cloud based forum.

              Comment


              • Mitch
                Mitch commented
                Editing a comment
                I'm no expert but I'll try to help you. Bring down a template module to where you want it to show on a page and put the above code in it. Check all 3 screen size boxes...

              • Jimsiss
                Jimsiss commented
                Editing a comment
                Thanks, I’ve had the HTML module in situ and placed the code in and all sizes are checked. It’s come out as I mentioned above.

              • Mitch
                Mitch commented
                Editing a comment
                Use a "Display Template" module, not HTML

              #11
              Mitch This is what I’m confronted with for a display template module, I’m not sure but shouldn’t there be another box like the HTML module to place the code in?

              Comment


              • Mitch
                Mitch commented
                Editing a comment
                Put that code I posted above in the "template name" box on the bottom of the module

              #12
              Never mind, I’ve re-read your post and understand it now, thanks for your help it’s now working.

              Comment


              • Mitch
                Mitch commented
                Editing a comment
                Glad you got it figured out.
            Working...
            X