vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Language Chooser with flags (https://vborg.vbsupport.ru/showthread.php?t=251354)

Popa Andrei 09-29-2010 01:59 PM

Language Chooser with flags
 
Hello there i would love a plugin or a modification that will add the flags of the selectable languages of the gorum somewhere in the navbar or the header.

Or if someone could tell me how to add them in the header so that when someone click on the flag that flags changes tot the respective language.

Popa Andrei 10-08-2010 11:33 PM

no one interested with this?

BirdOPrey5 10-09-2010 12:23 AM

You can do this yourself... If you change languages you'll see your URL change and end in something like "?langid=3" - the number is the id number of each language you have installed.

You can make a link to your forum home (or any other page) and end the URL with ?langid=X where X is the id number... so if english is id 1 you could have an american flag with the link to http://www.yourdomain.com/forums/?langid=1 and a French flag with a like like http://www.yourdomain.com/forums/?langid=2... etc...

Popa Andrei 04-04-2011 06:10 PM

yes but how do i enter the link for the curent location of the user?

BirdOPrey5 04-04-2011 08:18 PM

You want to link to the current URL so the user comes back to the same page after they click on the flag? That's a good question. The answer seems to be here: https://vborg.vbsupport.ru/showthread.php?t=241277

Basically:
HTML Code:

<a href="http://yourforum.com/{vb:raw relpath}">IMAGE HERE</a>

Popa Andrei 05-25-2011 09:37 PM

and on the link how to i make to change the language id?

BirdOPrey5 05-26-2011 01:37 AM

try

Code:

<a href="http://yourforum.com/{vb:raw relpath}&langid=2">IMAGE HERE</a>
Change "2" to the id of the language you want to change to.

Popa Andrei 05-26-2011 07:43 AM

oooooooo!
thank you very much kind sir ;)

Popa Andrei 05-29-2011 08:44 PM

I found a new issue.
When i am on the default forum page the selector doesent work but on all the other it works.
Any idea why?
http://www.stormzone.ro/forum

BirdOPrey5 05-29-2011 09:00 PM

Quote:

Originally Posted by stormzone (Post 2201396)
I found a new issue.
When i am on the default forum page the selector doesent work but on all the other it works.
Any idea why?
http://www.stormzone.ro/forum

It's working for me- I just switched between Romanian and English and back again on the URL you posted. Did you fix it already? :confused:


All times are GMT. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01018 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete