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-04-2005 03:35 AM

Hej Fenriz !

Without looking to the code, I don't know how to do that. I am not at home this week, but I will have a look at this next weekend.

Best regards

Jörg

Khashyar 10-24-2005 02:44 AM

Hi JoergZ,

Thank you for working to create a great hack.

I tried to install it on my VB 3.0.8 board (which has 14 languages), and even though the URL reads correctly- for example: (http://russianmeetingplace.com/forum...stlanguageid=8) - the langauge does not change, and remains English.

I previously installed a hack ("language_per_forum_langforum_vb3.0.7") which forces each foreign language forum into it's specific language, and I wonder if that is interfering with this hack? It makes a change to the global file, which may overside the language selection in sessions.php?

Thanks for your thoughts,

Khashyar

Khashyar 10-24-2005 05:10 AM

Hi JoergZ,

Do you know whether your hack is compatible with Andreas' "Set language by Forum" hack (which sets a language to a forum by changing the global.php file, which I believe overrides your hack's language settings in sessions.php).

Thank you for any ideas as to how to allow both hacks to co-exist.

Khashyar

JoergZ 10-24-2005 05:26 AM

I will have a look at the other hack. But probably they are not working together.

BR

Jörg

Khashyar 10-24-2005 05:30 AM

That would be great if you had time to look at them....

The other hack really does not change that much code, but it certainly seems to be negating your hack (which I would love to install and use for my foreign language guests).

Khashyar

Khashyar 10-24-2005 05:42 AM

Hi J?rg,

I tried to reinstall your hack again, and it still is not working for me.

the link http://www.russianmeetingplace.com/f...stlanguageid=2 should change the language to German, but the language is remaining English.

This means that the language Id change is not being recognized or initiated by the seesions.php code.

I wonder why?

I will double-check the changes that I made to the sessions file...

Khashyar

Khashyar 10-24-2005 06:08 AM

The code seems to be o.k. in my sessions.php file.

I installed the browser detect version of your hack (version #3), if that makes any difference.

If you can help me make your hack work in my forum, I would really appreciate it.

Khashyar

Khashyar 10-24-2005 06:23 AM

Hello J?rg,

In the forum language select hack, there are a couple of code blocks that need moved around, but here is essentially what is added within the global.php file (if this helps you understand what might be the conflict) :

Quote:

// Fetch Language Override if specified
if ($foruminfo['languageid'] AND $foruminfo['languageid'] != $bbuserinfo['languageid'] AND $foruminfo['languageid'] != $vboptions['languageid'])
{
$language = $DB_site->query_first("SELECT languageid" . fetch_language_fields_sql(0) . " FROM " . TABLE_PREFIX . "language WHERE languageid = " . intval($foruminfo['languageid']));
$bbuserinfo = array_merge($bbuserinfo, $language);
I am assuming that I can post small blocks of codes from a hack, as long as the entire hack is not posted.

Thanks again for your help with this,

Khashyar

Khashyar 10-24-2005 06:35 AM

I commented out the added code to global.php, and the guest registration hack was still not working, so there must be some other issue involved.

Also, I uninstalled the version 3 hack, and installed the version 1 of the hack, and it was still not displaying the correct languages.

However, when I go into my control panel and change a language used, I am able to do that and the language is visible.

Any ideas would be appreciated.

Thanks,

Khashyar

Khashyar 10-24-2005 08:04 PM

Hi JoergZ,

I found out why the software was not working on my 3.0.8 version of VB...

In the 3.0.8 sessions.php file, there are 2 instances in the file with this same code:

Quote:

// get default language
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");
That code above (which we need to comment out or replace), occurs in the beginning of the 3.0.8 session.php file, as well as in the end.

I replaced that code where it occured in the beginning of the file, rather than at the end of the file, and your hack was not working for me.

However, when I replaced the instance of that code where it occured at the end of the sessions file, and the hack worked for me.

(Perhaps this will help someone else who wants to install the hack in VB 3.0.8).

Your hack is an excellent and useful one, J?rg.

Thanks again for sharing it.

Khashyar


All times are GMT. The time now is 07:42 PM.

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.01096 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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