Announcement

Collapse
No announcement yet.

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

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

  • [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..

  • #2
    Originally posted by vivoperdio View Post
    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


    • #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


      • #4
        Originally posted by vivoperdio View Post
        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


        • #5
          Originally posted by Dustin L. View Post
          Try this:

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


          Dustin
          Originally posted by Wayne Luke View Post
          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


          • #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


            • #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


              • #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


                • #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


                  • #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


                    • #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*
                      -
                      *PM - Add ability to reply to originator only*
                      - Add Admin ability to auto-subscribe users to specific channel(s)
                      - "Quick Route" Interface...

                      Comment


                      • #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


                        • #13
                          Originally posted by zylstra View Post
                          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

                          TalkNewsUK - My vBulletin 5.6.4 Demo
                          AdminAmmo - My Cloud Demo

                          Comment

                          Related Topics

                          Collapse

                          Working...
                          X