vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Language-selection for guest (https://vborg.vbsupport.ru/showthread.php?t=59564)

JoergZ 10-25-2005 07:46 PM

Hi Khashyar,

I just went here for sending you a PM to ask for some more details, and I see, you were lucky to find the problem.

I am sorry, that I did not contacted you earlier, but I have quite a lot of work at the moment, so I have not much time left.

Thanks for the hint, that there is a problem with Version 3.0.8. I only tested it up to 3.0.7. But I will add a hint at the main-posting.

Sorry again, that I was not a big help in this case ;)


BR

J?rg

Khashyar 10-25-2005 09:28 PM

That's o.k., Jörg.

I'm glad that I could get the hack working for VB 3.0.8, and that we could offer help to those who might have had the same issue as I did.

Khashyar

funinthesun 11-15-2005 11:12 PM

Does this work on 3.5? :nervous:

JoergZ 11-15-2005 11:15 PM

It is not necessary for 3.5, because in 3.5 standard the language can be choosen the same way as styles for member and guests.

The only thing, that is available as hack for 3.5 is the automatic language-detection for first visitors. (See my signature)



BR

Jörg

funinthesun 11-15-2005 11:18 PM

I didn't know that. How do you change the language on 3.5 then? :)

cddw.ltd 12-21-2005 07:25 AM

Note if you can't get the Selection Menu to display:

When I first installed this hack, I couldn't get the Menu to display, I scratched my head for a while, tried installing the hack multiple times but still no joy. When I returned to the developement of my board recently after allocating some time to it, all of a sudden it worked... strange I thought. So I did more work on the board last night, messed about a bit, all of a sudden... its gone again... Whats going on here I thought!

The culprit:

If you set your board so that its accepting no new registrations (which is what I had in place just in case while the board is in developement) the selection bar dissapeares. Thought I'd note this incase someone else sits there for ages scratching their heads!

- Paul

JoergZ 12-21-2005 11:13 AM

Thanks for this hint. The menu-option not appears in this case, because it is inside the condition for the register-option.


If you don't allow new registrations, but you want to have the language-option shown in the navbar, do this:

Look in the template navbar for
Code:

<td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
and insert BEFORE this:
Code:

<if condition="$show['popups'] AND $bbuserinfo['userid'] == 0">
 <td id="guestlanguage" class="vbmenu_control"><a href="#guestlanguage">$vbphrase[guestlanguage]</a> <script type="text/javascript"> vbmenu_register("guestlanguage"); </script></td>
</if>


J?rg

joh 07-06-2006 04:05 PM

hey I know this is old but can anyone make this work on vBulletin 3.5.4 I want it to automatically detect the user language. it was indicated by Andreas that it was very possible. https://vborg.vbsupport.ru/showpost....15&postcount=5 if this was already done I would love to get my hands on it. If it was not it looks like you already have a good start.

JoergZ 07-06-2006 04:30 PM

Hm... Look at my signature... ;)


Hacks for vB 3.5
Set forum-language automatic to browser-language for first-visitors

PajE 01-02-2007 02:55 PM

My current forum consists mainly of 2 trees, one for german forums, one for french ones.
I would like to force the navigation to be in german for the german part.. and french for the french part, by default, overriding the vB automatic language chooser.

kevinzheng 09-02-2007 10:21 AM

Just tested, it is work on my forum which runing V3.6.8. Greate!


All times are GMT. The time now is 01:16 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.01704 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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