MyBB Community Forums

Full Version: Reputation Color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Currently in my postbit it shows "Reputation: 7"

How do I get rid of the color on the 7? I want it to look like the other text, remove the bold too.
(2010-11-07, 04:06 AM)Dialatic Wrote: [ -> ]Currently in my postbit it shows "Reputation: 7"

How do I get rid of the color on the 7? I want it to look like the other text, remove the bold too.

.reputation_positive {
color: green;
}


In global.css

Can't seem to find where it makes it bold though...
Thanks a lot Disturbed. ^.^

The bold isn't a big issue.. Just wanted color gone. Thank you.
bump.. Can someone help me find where it makes it bold?
It's a bit messy. Open /inc/functions.php, lines 2732 - 2747.

$display_reputation .= "<strong class=\"";

	if($reputation < 0)
	{
		$display_reputation .= "reputation_negative";
	}
	elseif($reputation > 0)
	{
		$display_reputation .= "reputation_positive";
	}
	else
	{
		$display_reputation .= "reputation_neutral";
	}

	$display_reputation .= "\">{$reputation}</strong>";

Simply replace strong with span (located in the first and the last variable). You could probably get rid of the colors and the bold all at once by modifying the get_reputation() function, but if I were you just replace strong with span.
Thanks a lot. Smile

I need help with one more thing too. Might as well post it here instead of making another thread.

Instead of when posting a thread, having "no icon" enabled by default, how can I set it to pick "paper.png" as the default icon, and they can change it if they want something else? I want ALL threads to have icons, none of them allowed to pick "no icon".
I just figured out a way to do what you asked, it's a bit messy but it works.

Now, could you be more specific on how you want it to be shown, so I can give you a straight answer?
What do you mean how I want it shown?

I just want the "no icon" option removed from "NEWTHREAD/NEWREPLY" and automatically make them use the icon that I set as default, or another if they pick a different one.
1. Pick the icons you want and upload them.
2. Go to a new thread page.
3. View the source code of that new thread page.
4. Find the id of the icon you want to be used by default. It can be found in the source code. Each icon option is coded like so, whereas 6 (inside value) is the id of the icon:

<label><input type="radio" name="icon" value="6" /> <img src="images/icons/wink.gif" alt="Wink" /></label>

5. Go to Admin CP -> Templates & Style -> Templates -> Your template set -> Ungrouped Templates -> posticons
6. Replace all the code inside the posticons template with this:

<tr>
<td class="trow1" valign="top" colspan="2">{$iconlist}<input type="radio" class="radio" name="icon" value="{example}" checked="checked" style="display: none;" /></td>
</tr>

7. Replace {example} with the actual id, which you found in step 4.

And that should work just fine. You can always revert the template back to default if it doesn't work out for you.
(2011-03-07, 10:29 PM)faviouz Wrote: [ -> ]1. Pick the icons you want and upload them.
2. Go to a new thread page.
3. View the source code of that new thread page.
4. Find the id of the icon you want to be used by default. It can be found in the source code. Each icon option is coded like so, whereas 6 (inside value) is the id of the icon:

<label><input type="radio" name="icon" value="6" /> <img src="images/icons/wink.gif" alt="Wink" /></label>

5. Go to Admin CP -> Templates & Style -> Templates -> Your template set -> Ungrouped Templates -> posticons
6. Replace all the code inside the posticons template with this:

<tr>
<td class="trow1" valign="top" colspan="2">{$iconlist}<input type="radio" class="radio" name="icon" value="{example}" checked="checked" style="display: none;" /></td>
</tr>

7. Replace {example} with the actual id, which you found in step 4.

And that should work just fine. You can always revert the template back to default if it doesn't work out for you.

It works! Thank you SO much. Smile


Edited it a bit.. But thanks!

<tr>
<td class="trow1" style="vertical-align: top"><strong>{$lang->post_icon}</strong></td>
<td class="trow1" valign="top" colspan="2">{$iconlist}<input type="radio" class="radio" name="icon" value="25" checked="checked" style="display: none;" /></td>
</tr>
Pages: 1 2