MyBB Community Forums

Full Version: trow1/trow2 Rather Than {$bg_color}
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Am I correct in thinking that on the member_profile_warninglevel and all the other member_profile_* templates it is better (query wise) to put the actual trow1/2 value rather than {$bg_color}?

After completing your theme and you want to minimise queries, surely this is better?

I may be mistaken but the less {$} stuff around, the better. Please correct me if I am wrong.


Switching;
<tr>
	<td class="[b]{$bg_color}[/b]"><strong>{$lang->warning_level}</strong></td>
	<td class="[b]{$bg_color}[/b]"><a href="{$warning_link}">{$warning_level}</a> {$warn_user}</td>
</tr>

For:
<tr>
	<td class="[b]trow2[/b]"><strong>{$lang->warning_level}</strong></td>
	<td class="[b]trow2[/b]"><a href="{$warning_link}">{$warning_level}</a> {$warn_user}</td>
</tr>


Thank you very much!

So much for "support". 40+ views and I have yet to see a comment.
$bg_color doesn't use any mysql queries.
Thank you for clearing that up sir! Much appreciated, seriously. I'll stick to the {$bg_color} then.

Thanks again.