MyBB Community Forums

Full Version: Auto-formatting users' replies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, can anybody please help me:

What I want is adding some text before and after user reply - for example,
tag to the beginning and
tag to the end, so all user posts will be aligned by width without user interruption.
Can I do it some way? I dont know PHP well and dont want to broke my forum on e.g. editing post in future, so asking advise here...

Sorry if such question already appeared here, didnt find it.
I'm sure you can just add the HTML for the formatting you want directly to the template for that page. Go here:

AdminCP > Templates > Modify/Delete > *your template* > Expand > Post Bit Templates > postbit

Find:
<div id="pid_{$post['pid']}">
<p>
{$post['message']}
</p>
</div>

Whatever HTML you want before the message, place it above {$post['message']}. Whatever HTML you want after the message, place it below {$post['message']}.
Galen
thanks a lot! It works and its so beautiful and simple way to fix it that im really in a shame to find it...

Arigato godzaimasu ^_^