I am struggling at putting my custom code in one of the frontend controllers page.php and not loosing it after update. In WordPress we are using child themes for this purpose, so I am talking about the equivalent in vBulletin. The code that I am placing in the index method of page.php
/*CUSTOM SCRIPT*/
ob_start();
include($_SERVER['DOCUMENT_ROOT'].'/core/packages/tag_categories/widget.php');
$cat_list = ob_get_contents();
ob_end_clean();
//advertise module
ob_start();
include($_SERVER['DOCUMENT_ROOT']."/core/packages/advertise/widget.php");
$advertise = ob_get_contents();
ob_end_clean();
$advertise = explode("&&&&&", $advertise);
$templater->registerGlobal('categories', $cat_list);
$templater->registerGlobal('advertise', $advertise[0]);
$templater->registerGlobal('more_advertise', $advertise[1]);
$templater->registerGlobal('more', $advertise[2]);
$templater->registerGlobal('learn_more', $advertise[3]);
/*CUSTOM SCRIPT*/
After updating the version, the code is lost.