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)

Merjawy 07-23-2004 05:32 AM

Now to the strange part :)

I did install the first part of the hack, edited sessions.php and register.php and I stopped right there for now

I change the default to other than en and also did that somewhere little down the hack,

anyway
now everything looks cool, but while I was still admin I ponited my browser to the forum adding the ?&guestlanguageid=1 and then 2
ofcourse I am not a guest so that didn't do nothing :)

I loged out, now I did that again and it worked, BUT when I used 1 I get english which is not the default language and not #1 in sessions.php and when I do 2 I get the default lang... now thats fine I can live with it and I am sure I can fix it too

this is what made me post now
I noticed in my nabar now I have 2 new links
Mark all forums as read
Open buddly list

now why they showing up in nav bar now?
I checked navar and they are there and uncommented but they never show up in my navbar on two sites, now after this hack they show in all tempates on this one site

so for now I had to comment them out in my navbar till I figure out why they showing


I looked at both sites and the navra is the same

non the less, this hack is great and I am gonna use it even if my name pops in navbar :)


:)

Merjawy 07-23-2004 06:00 AM

Its me.. I knew it :)

I was messing with settings, and I disabled the use of DHTML menu under vB options and I got a phone call, took me away from what I was doing when I came back, I installed the hack and thats when I saw what I did before the hack

so nevermind, the problem is fixed :)

Merjawy 07-23-2004 10:05 PM

All systems good to go mate :) thanks

theres one little issue, for now I managed to over come it but it needs fix
I use a portal (vBadvanaced CMPS) in the root and my forum in a directory under it, all work fine but when a guest is on portal (root) they change language link won't work, it will just take them to my root directroy where I have index.html as a front-end loader (which will load index.php of the portal once clicked).

a guest in forum, they click the lang change, the URL will be /forum/index.php?guestXXXXX

a geust in portal, they click the lang change, the URL will be /?guestlanguageXXXXXXXXX

that might work if I only had 1 index in my root, but I have 2 :) index.html loads first then it loads index.php once clicked


I managed to temp fix it by adding a "/" at the begining of the varialble ($vboptions[forumhome].php?XXXXXXXXXXXXXXXXXXXXXX)

This makes it take the guest to the main root index.php (portal) no matter where the guest clicked the lingo change (in portal or forum)

I hope that made any sence :) but for now it works non the less

thnx again

next step is installing the change for members :) .. can't wait

Merjawy 07-23-2004 10:14 PM

Quote:

Originally Posted by JoergZ
O.k., here we go:

To change the language use the following line in the navbar template:

PHP Code:

 <tr><td class="vbmenu_option"><a href="changelanguage.php?$session[sessionurl]languageid=1">Name of language 1</a></td></tr
<
tr><td class="vbmenu_option"><a href="changelanguage.php?$session[sessionurl]languageid=2">Name of language 2</a></td></tr



J?rg


can I change Name of language 1 / Name of language 2 to
$vbphrase[lang01] / $vbphrase[lang02] ?


thnx

JoergZ 07-23-2004 10:17 PM

Yes of course ! It was only an example :)

Nice to hear, that it works for you. Concerning the portal-thing, sorry, but I have no portal, so I don't thought about, that the link won't work in this case ;)

Merjawy 07-24-2004 12:59 AM

Thank you sir , well done... just that little thing about portal as most people do use portals, and for me I use 2 indexes :) ..

Installed on one site and soon on another :)

Merjawy 07-24-2004 10:52 PM

Sweet..
I managed to make it a drop down menu for memeber/guests as I have about 6 languages and can't put them all in navbar :)

The link will show always, but the options for guests will show to guests and will only show member options for members :) love it

JoergZ 07-24-2004 11:03 PM

Fine.. :) I think for members it is not really necessary, because no one changes the language after he selected it once, but I think for guests it should be standard... Well, maybe in 3.1.0 :)

alexisbellido 07-31-2004 12:35 AM

Thank you very much JoergZ for such a useful hack. I have just installed in my english / spanish forums.

Best regards!

Eagle Creek 08-11-2004 10:06 AM

PERFECT, GREAT, FANTASTIC!! I was so hard looking for this
!
!
Thank you!
¡
¡

bajabob 08-12-2004 04:29 PM

Hey,
I'm trying to install it now, and I'm not sure how to do the last step, where you wrote to add a phrase to the group GLOBAL and translate them as I want. where should I add it? and what exactly should I add/translate?
Thanks!

JoergZ 08-12-2004 05:27 PM

You must add them in AdminCP -> Phrase Manager

Then click on "Add new phrase"


Phrase Type is GLOBAL

Varname is as described in my hack

translation as you want :)



Best regards

J?rg

Eagle Creek 08-13-2004 06:03 PM

Important question:

Is it compatible with VBindex?

JoergZ 08-13-2004 09:47 PM

Sorry, i am not using VBindex.

But somehow it should work with that together too..

I don't know if someone already use it with VBindex.


Best regards

Jörg

Eagle Creek 08-14-2004 04:25 AM

Thanks for reply

nighteyes 08-23-2004 10:46 AM

Awesome hack thanks :D Installed.

W.J 09-06-2004 10:28 AM

Much appreciation for this hack. Thanks
Using option 3.

Is there anyay to add the language parameter id to a particular forum?
Already have this which works:
Code:

http://example-domain.com/index.php?guestlanguageid=3
Anyway to make this work:
Code:

http://example-domain.com/forumdisplay.php?f=14?guestlanguageid=3

JoergZ 09-06-2004 05:37 PM

Yes, a link like

works too.



Best regards

J?rg

tkeil69575 11-03-2004 08:57 AM

excellent hack - works fine in vb 3.03 too :)

wfp 12-09-2004 07:01 AM

excellent hack but how about user registration choice?

I run a board, default language, Japanese. Board has this browser language mod added so an GUEST english user sees the site in english. He registers in english. Then logs in and has to somehow navigate through a JAPANESE page to somehow find the user CP and go into a JAPANESE user CP to change his language to english.

Most english users can not read Japanese.

The language selection should be at registration as it is on our phpbb.

JoergZ 12-09-2004 08:34 AM

Well... it should work.

Guest select English, register, and during registration the english is written in his profile as default-language. Check if you made the modifications in register.php correct.


Best regards

Jörg

Eagle Creek 12-09-2004 01:33 PM

Thanks, I just wanted to ask a question like that.

Does the forum goes to the standard browser language? And can the guest select an other language if they want?

JoergZ 12-09-2004 01:40 PM

Yes and yes :D

In the description of the hack, you will find how to add an menue-point for selecting the language. When the user selects manually a language, this one has priority over the automatic detected language.


J?rg

wfp 12-09-2004 03:40 PM

Found it, installed & works great. Thank You!:nervous:

Eagle Creek 12-09-2004 06:02 PM

Quote:

Originally Posted by JoergZ
Yes and yes :D

In the description of the hack, you will find how to add an menue-point for selecting the language. When the user selects manually a language, this one has priority over the automatic detected language.


J?rg

Cool :)

Thank you :)

Fenriz 12-21-2004 12:10 PM

Could anyone tell, how to make returning to the page guest was previously viewing after guest switched to another language (for example by link http://example-domain.com/forumdispl...stlanguageid=3)?
I am asking because guest always goes to the main page after switching languages..

JoergZ 12-21-2004 12:31 PM

Sorry, but without re-writing the complete hack, it is not possible. The procedure for changing the language (interpreting the parameter &guestlanguage=x) is only in the index.php

(Maybe there is a way, to recognise from where the link was called, so you can redirect back to that page, but I don't know how.)

Jörg

Eagle Creek 01-05-2005 01:38 AM

https://vborg.vbsupport.ru/attachmen...id=22750&stc=1

:ermm: :ermm:

And please don't tell but I need glasses butt tell me how to solve ?

So I want to have:
1. text to it
2. the text in the dropdown menu bigger

JoergZ 01-05-2005 08:53 AM

Eagle,

check all changes you did in the template navbar. There must be the error somewhere..

Eagle Creek 01-05-2005 03:02 PM

Quote:

Originally Posted by JoergZ
Eagle,

check all changes you did in the template navbar. There must be the error somewhere..

I did, I even re-dit it..

Uuhm.. I guess I have to revert the template and try again?

Eagle Creek 01-05-2005 03:12 PM

Quote:

Originally Posted by Eagle Creek
Uuhm.. I guess I have to revert the template and try again?

Still it doesn't work..

It stays a triangle without text next to it and when I click it's still extreme small :(

JoergZ 01-05-2005 05:53 PM

O.k.

Which version of the hack have you installed ?

Eagle Creek 01-05-2005 06:07 PM

Quote:

Originally Posted by JoergZ
O.k.

Which version of the hack have you installed ?

V3 Guest Languageselection by JoergZ and WildChild english.txt

************************************************** **************
**** ****
**** Language-Selection for not logged-in users ****
**** ****
**** Version 3.0 ****
**** ****
**** (c)Copyright by JoergZ and WildChild ****
**** ****
**** Modification of this hack is only allowed for private ****
**** use. Publishing and distribution of the modified hack ****
**** is not allowed. ****
**** ****
************************************************** **************
**** ****
**** If you have installed more than one language, in ****
**** Version vB 3.0.0 RC4 there is for guests no ****
**** chance to select another language than the default. ****
**** ****
**** This hack in Version 3.0 detects automatic the ****
**** browser-language. ****
**** ****

JoergZ 01-05-2005 10:16 PM

For all others information:


We have solved the problem via PN. Eagle made a mistake with the phrases. So no problem with the hack at all.

Jörg

Inzagi 01-13-2005 05:41 PM

It works brilliant with vb 3.05 :squareeyed:

Rastus 02-01-2005 06:49 PM

Quote:

Originally Posted by JoergZ
For all others information:


We have solved the problem via PN. Eagle made a mistake with the phrases. So no problem with the hack at all.

J?rg

what was the fix? I'm having the same issue.


edit:

I fixed it. :)

Eagle Creek 02-01-2005 09:05 PM

Quote:

Originally Posted by Rastus
what was the fix? I'm having the same issue.


edit:

I fixed it. :)

How can I give up AND an forum ID AND an language ID in the link?!

http://www.antispywareoffensief.nl/f...splay.php?f=51
http://www.antispywareoffensief.nl/f...stlanguageid=3

But I want a direct link to that forum in language 3

JoergZ 02-02-2005 05:06 PM

The only way I see for that is, that you modify the changelanguage.php you find in this posting.

Maybe parsing the forum-id when calling changelanguage.php, and the setting the correct redirect.


Best regards

J?rg

Eagle Creek 02-02-2005 05:43 PM

Btw, is het full 3.0.6 compatible?

JoergZ 02-03-2005 07:24 AM

Yes, it is working with 3.0.6 too


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.01471 seconds
  • Memory Usage 1,830KB
  • 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)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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