PDA

View Full Version : How to get the $languageid in the blog_fpdata_postsave hook ?


arkadia
03-01-2011, 06:57 PM
hello,

How to get the $languageid in the blog_fpdata_postsave hook ?
i try $languageid or $vbulletin->userinfo['languageid'] without any succes :(

this is the hook i try to do :

If ($vbulletin->userinfo['languageid'] == 2) {
$currentlanguage="fra";
}
else If ($vbulletin->userinfo['languageid'] == 3) {
$currentlanguage="rus";
}
else {
$currentlanguage="usa";
}

$this->dbobject->query_write("INSERT INTO VB_BLOG_LANGUAGE(blogid,language) values (". $blogid .",'". $currentlanguage . "')");