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 07-07-2005 08:17 PM

No.


Why ?


In vB 3.5 it is standard :)


Look at the german vB-Site. There you can see in the footer the selection for the language. So no need for migration of this hack to 3.5


Best regards

J?rg

Eagle Creek 07-07-2005 08:18 PM

Quote:

Originally Posted by JoergZ
No.


Why ?


In vB 3.5 it is standard :)


Look at the german vB-Site. There you can see in the footer the selection for the language. So no need for migration of this hack to 3.5


Best regards

J?rg

Standard?! You don't mean that; do you? Where can I enable this option?

Or will it be when I install more languages?

JoergZ 07-07-2005 08:20 PM

Quote:

Originally Posted by Eagle Creek
Standard?! You don't mean that; do you? Where can I enable this option?

Or will it be when I install more languages?

It appears automaticly, when you have installed more than one language. It is similar to the style-selection. See screenshot..


J?rg

Maplewoods 09-16-2005 01:20 AM

The hack says to remove the etxt from:
// get default language
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");

But in 3.0.8 it begins as follows:
// get default language
$DB_site->reporterror = 0;
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");

The line:
$DB_site->reporterror = 0;

is not mentioned in the hack and I wonder if it should be removed for the Hack to work

JoergZ 09-16-2005 08:42 AM

Hi Maplewoods,

sorry, I have not tested the hack with 3.0.8. But as far as I see, you should insert the line "$DB_site->reporterror = 0;" above the line "$phraseinfo =....."

Best regards

Jörg

Fenriz 09-29-2005 10:33 PM

I have this hack on my 3.0.9 and now I need this hack for vBulletin 3.5 - to detect the browser-language automatic and show the board in the language of the user. Also could you help me to change the drop-down language menu in 3.5 to the flags.

thanx

JoergZ 09-30-2005 06:45 AM

Hi Fenriz !

Sorry, but until now I had no time to look closer at the version 3.5.0

Concerning the automatic detection of the laguage, maybe you can contact WildChild, if he can make a modification and publish it here. (He has done the modification for this hack too)

Concerning the flags instead of the pull-down menue, I will have a look at this, but I can't prmise you when, because I am quite busy in these days.


Best regards

J?rg

Fenriz 09-30-2005 04:47 PM

Hi JoergZ! Thank you for the answer. I've written to WildChild, as you suggested.
It would be also great if you make "the flags" instead of the pull-down menu!
I have your hack on the 3.0.9 here

JoergZ 09-30-2005 08:58 PM

Hi Fenriz !


For your flags, you only need to set this link:



for your forum it would be:



where x is the languageid

So it is the same as it is now, just "langid" instead of "guestlanguageid".


Concerning the automatic language-detection: I made it :) You find the hack here ! Please be so kind and test it and give me a feedback or write a new posting in the new hack thread.


Best regards

J?rg

Fenriz 10-04-2005 12:06 AM

Hei J?rg igjen! When I use http://www.yourforum/forum/index.php?langid=x link to a language, go in to a thread and click to choose another language, it redirects me to the index forum page. How I can stay in the thread and to have an opportunity to choose language without leaving this thread?
Could you help me?


All times are GMT. The time now is 11:35 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.01143 seconds
  • Memory Usage 1,740KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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