MyBB Community Forums

Full Version: why not all mods cant work in different style?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i bit frustating using mybb
every mod i add using different style,some of them will not work properly
why this is could happens?how to solve?upgrading alredy but no result
Ummm... what? I'm going to take a guess and say: Wrong Section!
* Why; cause templates of some themes are too different from the Default ones; so the needed template changes can't take place. Nothing a plugin author can do about it;

* HowtoSolve; Manually change your templates; view
Nice little tut Lex. Yeah it's easy to make the manual changes on templates from plugins but it does need to be explained for new users of mybb.
thanks for your reply........
but i cank workin' out...
still failed...
example:i use usergrouplegend.php plugin
$db->insert_query(TABLE_PREFIX."templates", $template);
	
	require MYBB_ROOT."/inc/adminfunctions_templates.php";
	find_replace_templatesets("index", '#{\$whosonline}#', "{\$whosonline}\n{\$user_legend}");
}

function usergrouplegends_deactivate() {
	global $db;
	$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title='usergroup_legend'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='uot'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='legendsdontshow'");
	rebuildsettings();

	require MYBB_ROOT."/inc/adminfunctions_templates.php";
	find_replace_templatesets("index", '#(\n?){\$user_legend}#', '', 0);
}
then tell me how to replace...
please giude me
and sorry for my ignorance im newbie on mybb.......

regards
That plugin aint compatible with the new templates since ( 1.2.10 i think ); {$whosonline} is now in the index_boardstats template.
LeX- Wrote:That plugin aint compatible with the new templates since ( 1.2.10 i think ); {$whosonline} is now in the index_boardstats template.
oh..
so how to make it possible for 1.2.12 then?
or maybe,can you give a list the working list of 1.2.12 mods?!

so sorry,im very blank out here...
please help...
No answer lex?Sad
Try adding {$user_legend} after {$whosonline} in your index_boardstats template.