MyBB Community Forums

Full Version: Template Editing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to make the template editing upon plugin install just place you code at the end of a template? Because there isnt really anything I can replace Toungue

EG: I wantto place {$guest_inline} at the end of the postbit template Smile
Try this;
find_replace_templatesets("postbit", "#".preg_quote('</tbody>
</table>')."#i", '</tbody>
</table>{\$guest_inline}');
"#$#D" might work
Unfortunately neither work Confused

And I can't just replace "</table>" for obvious reasons Toungue
Well then, $db-> is your friend... Toungue