to get your Templates works in file system mode :
1- create a templates called template_dump && chown noboy.users template_dump.
2- turn on your debug mode
$config['Misc']['debug'] = true;
3- go to :https://FORUM_NAME.com/admincp/template.php?do=createfiles&dostyleid=your_active_style
4 - move the template_dump under includes (mv template_dump includes/vb_templates) for security resoans J .
5 - in includes/class_core.php --> vb_Templates class search for protected static function fetch_template($template_name)
6- instead of DB fetch , you can file_get_contents (DIR. '/includes/vb_templates/'.$template_name.'htm');
7- remark $config['Misc']['debug'] = true; and test your system
now you have the templates as a file system , for style vars and that staff you can work on it in easy way
1- create a templates called template_dump && chown noboy.users template_dump.
2- turn on your debug mode
$config['Misc']['debug'] = true;
3- go to :https://FORUM_NAME.com/admincp/template.php?do=createfiles&dostyleid=your_active_style
4 - move the template_dump under includes (mv template_dump includes/vb_templates) for security resoans J .
5 - in includes/class_core.php --> vb_Templates class search for protected static function fetch_template($template_name)
6- instead of DB fetch , you can file_get_contents (DIR. '/includes/vb_templates/'.$template_name.'htm');
7- remark $config['Misc']['debug'] = true; and test your system
now you have the templates as a file system , for style vars and that staff you can work on it in easy way
Comment