Announcement

Collapse
No announcement yet.

How to place Login/logout link on all pages for vB 2.2.1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I don't get what you are trying to do.. Simply creating a link to a seperate login page? Or have the login fields on there?
    Board of the Month: November
    Websites: Pixeljunction , vBulletin.org
    Button Sets: XP and Aqua Button sets! FREE!
    vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

    Comment


    • #17
      Just the link... as seen in the screenshot I attached.

      Is a log-out or log-in link to a separate page.

      The form to loging there is too big to the place I want to have them. (as seen on the screenshot too).

      Comment


      • #18
        What you have done there should work, what isn't working on it?
        Board of the Month: November
        Websites: Pixeljunction , vBulletin.org
        Button Sets: XP and Aqua Button sets! FREE!
        vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

        Comment


        • #19
          This code should work, right?
          PHP Code:
          if ($bbuserinfo['userid']==0) {
            eval(
          "\$loginlink= \"".gettemplate("loginlink")."\";");
          } else {
            eval(
          "\$loginlink= \"".gettemplate("logoutlink")."\";");

          Where do I place it on global.php? What line?
          Maybe is that I'm placing it in the wrong line and I'm getting a parse error.

          Comment


          • #20
            Make sure its above $header="";
            Board of the Month: November
            Websites: Pixeljunction , vBulletin.org
            Button Sets: XP and Aqua Button sets! FREE!
            vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

            Comment


            • #21
              It worked.. THANKS!
              It seems I was plasing it in the wrong place in global.php

              Comment


              • #22
                w00t, Glad you got it working
                And it put me a step closer to 1000 posts
                Board of the Month: November
                Websites: Pixeljunction , vBulletin.org
                Button Sets: XP and Aqua Button sets! FREE!
                vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X