Example: add data after
Code:
<li id="forum1" class="forumbit_post L2">
on forumhome.
First variant: get needed data
$thread[‘mydata’] and use
str_replace in
template_compile hook to append it after <li
Second variant: add html to
forumhome_forumbit_level2_post template.
Code:
<li id="forum1" class="forumbit_post L2">{vb:raw thread.mydata}
Of course, for plugin creators, first variant is more suitable due simplest integration with different templates. In second variant we should manually add some code to templates.
So, from the position of performance which variant is better?