How to use this variable on AdminCP -> Settings -> Navigation Manager?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vivoperdio
    Member
    • May 2009
    • 91
    • 3.8.x

    [Forum] How to use this variable on AdminCP -> Settings -> Navigation Manager?

    I would like to use this as new tab variable on AdminCP -> Settings -> Navigation Manager

    Code:
    http://103.12.12.126:9090/?nick={vb:raw bbuserinfo.username}&channels=ifradio&prompt=1
    But it's not working..
  • Dustin L.
    Senior Member
    • Mar 2011
    • 639
    • 4.2.X

    #2
    Originally posted by vivoperdio
    I would like to use this as new tab variable on AdminCP -> Settings -> Navigation Manager

    Code:
    http://103.12.12.126:9090/?nick={vb:raw bbuserinfo.username}&channels=ifradio&prompt=1
    But it's not working..
    Try this:

    Code:
    http://103.12.12.126:9090/?nick={bbuserinfo.username}&channels=ifradio&prompt=1


    Dustin
    http://quikmsg.net/strtoupper/ - Convert lowercase text and code to all uppercase!
    http://quikmsg.net/strtolower/ - Convert uppercase text and code to all lowercase!

    Comment

    • vivoperdio
      Member
      • May 2009
      • 91
      • 3.8.x

      #3
      I ussually use that vb raw and working, I wonder why when using vb raw on navigation manager not working? Hook needed perhaps?

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74132

        #4
        Originally posted by vivoperdio
        I ussually use that vb raw and working, I wonder why when using vb raw on navigation manager not working? Hook needed perhaps?
        No... That format isn't supported there. You need to use the shorthand code in the second post.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • vivoperdio
          Member
          • May 2009
          • 91
          • 3.8.x

          #5
          Originally posted by Dustin L.
          Try this:

          Code:
          http://103.12.12.126:9090/?nick={bbuserinfo.username}&channels=ifradio&prompt=1


          Dustin
          Originally posted by Wayne Luke
          No... That format isn't supported there. You need to use the shorthand code in the second post.
          I'm still getting the same issue, links still appear blank username.

          Comment

          • AusPhotography
            Senior Member
            • Nov 2007
            • 1552

            #6
            Be careful!

            4.2.0 the following work...
            • {userinfo.xxx} eg. {userinfo.securitytoken}
            • {options.xxx} eg. {options.bburl}
            • {session.xxx} eg. {session.sessionurl}
            • {ggggg} any global variable, i.e. something you have defined in your code
            • {ggggg.iiiii} any item in a global array


            In 4.2.1 it will be a bit different...
            See: http://tracker.vbulletin.com/browse/VBIV-15312
            • {bbuserinfo.xxx} eg. {bbuserinfo.securitytoken}
            • {vboptions.xxx} eg. {vboptions.bburl}
            • {session.xxx}eg. {session.sessionurl}
            • and {vb#xxxx.yyyy} for anything in $vbulletin eg. {vb#userinfo.userid}
            • {ggggg} any global variable
            • {ggggg.iiiii} any item in a global array


            Kym
            environment: Centos 6.9, Apache v2.4.25, PHP 5.6.30/xCache, MariaDB 10.22 -- vB5 Connect Licensed

            AusPhotography - Australia's Premier Photographic Forum vB4.2.3
            Rick (site owner) and Kym (site tech) sharing this account

            Comment

            • vivoperdio
              Member
              • May 2009
              • 91
              • 3.8.x

              #7
              Yeah but I used:
              Code:
              http://103.12.12.126:9090/?nick={bbuserinfo.username}&channels=ifradio
              And it's not working on vBulletin 4.2.1's Admin CP -> Settings -> Navigation Manager

              Comment

              • AusPhotography
                Senior Member
                • Nov 2007
                • 1552

                #8
                4.2.1 has not been released yet!! It's alpha only.
                Use {userinfo.username} for 4.2.0 (and PL1 and PL2)
                environment: Centos 6.9, Apache v2.4.25, PHP 5.6.30/xCache, MariaDB 10.22 -- vB5 Connect Licensed

                AusPhotography - Australia's Premier Photographic Forum vB4.2.3
                Rick (site owner) and Kym (site tech) sharing this account

                Comment

                • vivoperdio
                  Member
                  • May 2009
                  • 91
                  • 3.8.x

                  #9
                  Sorry, I meant 4.2.0 PL2

                  What should I use then?

                  - - - Updated - - -

                  Finally I made it worked with {userinfo.username}

                  Thank you for your help, AusPhotography, Wayne Luke, Dustin L.

                  Comment

                  • JetLee
                    New Member
                    • Mar 2012
                    • 3
                    • 4.2.X

                    #10
                    I'm late to the party, but I've been fighting to get some links working in the "adv_portal_navtab_subpages" template and this thread helped me the most out of the dozens of pages I searched.

                    I was trying to get this url:
                    HTML Code:
                    forumdisplay.php?{session.sessionurl}do=markread&markreadhash={userinfo.securitytoken}
                    into the navbar, but I was having issues with the securitytoken part. I ended up with the following and it works beautifully:
                    HTML Code:
                    <a href="/forum/forumdisplay.php?{vb:raw session.sessionurl}do=markread&markreadhash={vb:raw bbuserinfo.securitytoken}">Mark Forums Read</a>
                    By combining the "vb:raw" and "bbuserinfo" methods, it finally worked properly.

                    Sorry for resurrecting this thread, but it's the one that ultimately led me to solving my issue so I just wanted to share. Maybe the next person is able to benefit from this.
                    http://BuellRidersOnline.com

                    Comment

                    • Trevor Hannant
                      vBulletin Support
                      • Aug 2002
                      • 24358
                      • 5.7.X

                      #11
                      It won't help as your code is for a vBAdvanced template rather than the vBulletin built in Navigation Manager
                      Vote for:

                      - Admin Settable Paid Subscription Reminder Timeframe (vB6)
                      - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

                      Comment

                      • zylstra
                        Senior Member
                        • Aug 2004
                        • 192

                        #12
                        I attempted to use {forum.forumid} but it appeared blank when I was on a particular forum. What must I do to get this to work? (I'm using 4.2.2)

                        Comment

                        • Mark.B
                          vBulletin Support
                          • Feb 2004
                          • 24287
                          • 6.0.X

                          #13
                          Originally posted by zylstra
                          I attempted to use {forum.forumid} but it appeared blank when I was on a particular forum. What must I do to get this to work? (I'm using 4.2.2)
                          Hello, please can you start your own thread with full details of the problem....
                          MARK.B
                          vBulletin Support
                          ------------
                          My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                          My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                          Comment

                          Related Topics

                          Collapse

                          Working...