Announcement

Collapse
No announcement yet.

How to create language buttons ?

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

    How to create language buttons ?

    Hello,

    I need to create language buttons for changing language in the header/footer.


    In vb3 the link look something like this
    https://www.domain.com/vb/index.php?langid=16

    And I use href link on this flag to the langid=16
    English

    So how to know the link for language ID in vb 5 ?

    Thanks for help

    #2
    If you go to Language Manager in AdminCP, and then click Edit Settings link for the target language, then you will see the id of that language in the section header title

    For example, in my case:
    Code:
    Language: English (US) (id: 1)

    Comment


      #3
      Thank you for help

      but how the link to selected?

      Example: "this not working"
      https://www.domain.com/vb/index.php?langid=16


      Comment


        #4
        I checked and on vB5, changing language is not done via URL. It's done by adding a cookie. This requires custom JS coding to implement it on main header navigation bar.

        But why do you want to add this feature when user can change the language in the Language Chooser dropdown at the lower left corner of the footer?

        Comment


          #5
          Originally posted by glennrocksvb View Post

          But why do you want to add this feature when user can change the language in the Language Chooser dropdown at the lower left corner of the footer?
          In my forum we have a large number of foreign members, A large number of them do not notice the existence of a list of dropdown menu at the footer,

          For that I want to add two flag images as buttons Arabic/English as it was on my old forum vb3.

          Thank you

          Comment


            #6
            This can be done but not as straightforward as just adding a simple link. It requires custom coding to implement it.

            Comment

            Working...
            X