simunaqv
08-07-2007, 10:31 AM
Hello,
I have added an English section (forumid=128) to my Urdu forum (http://www.urduweb.org/mehfil). The default language of the forum is set to Urdu (langid=2). I want to automatically set the language of the English forums to English (langid=1). I have written the following plugin code for the init_startup hook:
if(($_REQUEST['forumid']==128) )
{
$_REQUEST['langid'] = 1;
}
else
{
$_REQUEST['langid'] = 2;
}
It works ok on forumdisplay but it goes back to the default language on showthread, newreply etc. I would appreciate any help in this regard.
Thanks,
I have added an English section (forumid=128) to my Urdu forum (http://www.urduweb.org/mehfil). The default language of the forum is set to Urdu (langid=2). I want to automatically set the language of the English forums to English (langid=1). I have written the following plugin code for the init_startup hook:
if(($_REQUEST['forumid']==128) )
{
$_REQUEST['langid'] = 1;
}
else
{
$_REQUEST['langid'] = 2;
}
It works ok on forumdisplay but it goes back to the default language on showthread, newreply etc. I would appreciate any help in this regard.
Thanks,