MyBB Community Forums

Full Version: Avatar padding code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
Why you don't use from a CSS class instead of this code that is in "functions_post.php" (Line: 306)

$post['avatar_padding'] = "padding-right: 10px;";

My language is RTL and avatars will be shown at right side of pages. so i need change this code to set padding to left that seems not to be a good idea.

Thank you.
I agree.
Thank you Saeed. Smile
Anything new?
I'm also using rtl boards.

And even unrelated to rtl boards, why to put CSS inside PHP?
I'm very curious...
There are several occasions in the template where a direction is hard-coded actually.
But why? is it because of the option to put horizontal/vertical postbit?
I don't know, I agree that everything should be inserted to the CSS/theme.