2009-12-16, 12:50 PM
2009-12-16, 05:57 PM
Probably in the Global Template Set.
2009-12-16, 10:22 PM
There is a "search" for templates by name in admincp.
To know the name of a template you want to edit simply view your source code and look for the comment tags that tell you the template name. More people need to know how to do this. It's ultra easy and 100% effective.
To know the name of a template you want to edit simply view your source code and look for the comment tags that tell you the template name. More people need to know how to do this. It's ultra easy and 100% effective.
2009-12-18, 12:31 PM
(2009-12-16, 10:22 PM)labrocca Wrote: [ -> ]To know the name of a template you want to edit simply view your source code and look for the comment tags that tell you the template name. More people need to know how to do this. It's ultra easy and 100% effective.
I did it and:
//EDIT TEMPLATES
require MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("index", '#\{\$forums\}#', '<!-- ASOI_3_I_T -->{$forums}');
find_replace_templatesets("index_boardstats", '#\{\$forumstats\}#', '{$forumstats}<!-- ASOI_3_I_B -->');
find_replace_templatesets("portal", '#\{\$latestthreads\}#', '{$asoi_latestthreads}');
find_replace_templatesets("portal", '#</table>#', '</table><!-- ASOI_3_P_B -->');
find_replace_templatesets("portal", '#<table#', '<!-- ASOI_3_P_T --><table');
But I need to find the ASOI template to edit it...
It only have the StyleSheet:
function asoi_is_installed()
{
global $db;
$query = $db->simple_select("themestylesheets", "*", "name='asoi.css'");
return ($db->num_rows($query) > 0);
}