The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Converting a code to plugin ...
I've seen this code some where ,I really don't know who is the really author of ,but he has my gratitude .
This is a code to seperate this admin language from the rest of the forum ,but this one requires file editing .Can some one convert it to a plugin please . The code is : In the file includes/init.php find: Code:
// Set up user's chosen language if ($vbulletin->GPC['langid'] AND !empty($vbulletin->languagecache["{$vbulletin->GPC['langid']}"]['userselect'])) { $languageid =& $vbulletin->GPC['langid']; vbsetcookie('languageid', $languageid); } else if ($vbulletin->GPC[COOKIE_PREFIX . 'languageid'] AND !empty($vbulletin->languagecache[$vbulletin->GPC[COOKIE_PREFIX . 'languageid']]['userselect'])) { $languageid = $vbulletin->GPC[COOKIE_PREFIX . 'languageid']; } else { $languageid = 0; } Code:
if (VB_AREA == 'AdminCP') { $languageid = 1; // make sure to replace this value with an actual languageid } can any one do that please ? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|