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


    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)
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Thank you for help

      but how the link to selected?

      Example: "this not working"



      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?
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        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.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment

            Users Viewing This Page

            Collapse

            There is 1 user viewing this forum topic.

            • Guest Guest

            Latest Posts

            Collapse

            Working...
            X
            Searching...Please wait.
            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

            Please push the back button and reload the previous window.'
            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

            Please push the back button and reload the previous window.'
            An internal error has occurred and the module cannot be displayed.
            There are no results that meet this criteria.
            Search Result for "|||"