Jump to content

Hooks replacing <if> or <foreach> content instead of adding it around.


Bartosz Misiak

Recommended Posts

Posted

I believe the title explains everything.
It would be an easy step forward to allow developers to create hooks, which would hide the normal content from <if>/<foreach> and add their own HTML. To allow multiple hooks to replace the same statement, IP.Board should simply discard the old content and add contents from hooks in it's place.

So if there was:

<div class='profilePic'><if test="showProfilePicture:|:$showProfilePicture"><img class='pic' /></if></div>

A developer could achieve replacing the profile picture with an avatar:

<div class='profilePic'><img class='avatar' /></div>



Regards.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...