This would be redundant, and implementing this in the core template system would limit future outside-phpBB use (yes, outside-phpBB use- I find that the phpBB template system is the best one available for PHP, and I use it in many of my GPLed PHP projects). The functionality, using the <!-- IF ... --> syntax and related statements, is already there, i.e.mlimburg wrote:Firstly, the use of user/group as a core feature within the template. For example <if !group['admin']> would show content to those not of the admin group.
<!-- IF group eq 'admin' -->
You are an admin!
<!-- ELSEIF group eq 'supermod' -->
You are a supermod!
<!-- ELSEIF group eq 'moderator' -->
You are a moderator!
<!-- ELSEIF group eq 'user' -->
You are a normal user!
<!-- ELSE -->
You're something else? Huh?
<!-- ENDIF -->
This specific chunk of code would probably just show "You're something else? Huh?" no matter what, because the phpBB core doesn't register the 'group' variable in the template system, but the point is: The base functionality for this already exists; and: If anything, this should be implemented in the phpBB core, not the template system.