1
我'vBulletin 3產品開發人員,我想爲vBulletin 4驗證碼:更換模板字vBulletin 4
//hook name : parse_template
$vbulletin->templatecache['NAVBAR'] = str_replace("word", "replace", $vbulletin->templatecache['NAVBAR']);
我'vBulletin 3產品開發人員,我想爲vBulletin 4驗證碼:更換模板字vBulletin 4
//hook name : parse_template
$vbulletin->templatecache['NAVBAR'] = str_replace("word", "replace", $vbulletin->templatecache['NAVBAR']);
您可以運行的模板被加載後,才代碼。如果您想強制加載模板,請使用
$bootstrap->load_style();
$bootstrap->process_templates();
(確保$ bootstrap在您的上下文中可用)。
一種更簡單的方法(但不是最優化)是渲染任何模板,並強制加載例如tempaltes,
vB_Template::create('NAVBAR')->render();
而在此之後導航條(以及其他緩存模板)將在$ vbulletin-> templatecache陣列可用。
謝謝Sure Drnoyan – 2012-09-15 10:38:40