The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Assigning substyle to language
Hi!
I am running a forum in three languages. The language is selected automatically from the used subdomain. I have "created" a plugin for that reason. Now i wanted that forum titles and descriptions are replaced with the help of replacement variables in each substyle. I haven't found another way to bind languages to styles, so here is how the code of the plugin looks: Code:
if ($_SERVER['HTTP_HOST'] == "en.domain.com") { $_REQUEST['langid'] = 3; $_REQUEST['styleid'] = 4; } elseif ($_SERVER['HTTP_HOST'] == "de.domain.com") { $_REQUEST['langid'] = 2; $_REQUEST['styleid'] = 3; } else { $_REQUEST['langid'] = 16; $_REQUEST['styleid'] = 5; } problem a.) Now the replacement variables only work when user is logged in! When user is browsing as guest variables are not replaced. Maybe wrong hook? problem b.) Another problem is vbseo which i use. Even user is logged in (and title/description) is replaced correctly, the path still points to the variable like domain.com/forum/title1 instead of domain.com/forum/animals Thanks for your help. lapinkulta |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|