MyBB Community Forums

Full Version: Change spacing between stars?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How would I increase the gap between these stars:

[Image: zHPHeD.png]
Open ./inc/functions_post.php and find;
$post['userstars'] .= "<img src=\"".$post['starimage']."\" border=\"0\" alt=\"*\" />";
and add &nbsp; like this;
$post['userstars'] .= "<img src=\"".$post['starimage']."\" border=\"0\" alt=\"*\" />&nbsp;";
Unnecessary work. Using &nbsp; to create white space between things is also not a very good solution in my opinion.

Go to Admin CP > Templates & Style > Templates > Your Template Set > Post Bit Templates > postbit. Find:

{$post['userstars']}

Replace with:

<div class="userstars">{$post['userstars']}</div>

Go to Admin CP > Templates & Style > Themes > Your Theme > global.css > Advanced Mode. Copy and paste this at the bottom:

.userstars img {
	margin-right: 5px;
}

Change 5px to whatever you like.
(2012-06-15, 05:06 PM)Fábio Maia Wrote: [ -> ]Unnecessary work. Using &nbsp; to create white space between things is also not a very good solution in my opinion.

Go to Admin CP > Templates & Style > Templates > Your Template Set > Post Bit Templates > postbit. Find:

{$post['userstars']}

Replace with:

<div class="userstars">{$post['userstars']}</div>

Go to Admin CP > Templates & Style > Themes > Your Theme > global.css > Advanced Mode. Copy and paste this at the bottom:

.userstars img {
	margin-right: 5px;
}

Change 5px to whatever you like.
That's only for post bit. On a profile the stars haven't changed?
Go to Admin CP > Templates & Style > Templates > Your Template Set > Member Templates > member_profile.

Find:

{$userstars}<br />

Replace with:

<div class="userstars">{$userstars}</div><br />