MyBB Community Forums

Full Version: How to add Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: X6Cfd.png]

I am missing a Rate User button.

My Forums have all these buttons

[Image: a7PBB.png]

But they are not in the themes image folder (only the icons are)

[Image: gSpZJ.png]

So I'm guessing that it's lines of codes that make the back ground box for these buttons.

How do I make a Rate User Button?

My forums are www.imtiax.net
Have you tried this?

Go to templates - starforums templates - reputation templates -
reputation_addlink

Replace the code in there with this code :

<div class="float_right" style="padding-bottom: 8px;"><a 
href="Javascript:Mybb.reputation({$user['uid']});" 
class="buttons"><img src="{$theme['imglangdir']}/plus.png" title="Add 
Rep" style="vertical-align: middle;"> Add Rep</a></div>
That added the button but now if you click it nothing happens.
Do you have popups allowed and javascript enabled?
Turns out it was the code Justice gave me was wrong.

I looked at another theme's template and copied the code and it works fine

This is what worked

<div class="float_right" style="padding-bottom: 4px;"><a href="javascript:MyBB.reputation({$user['uid']});" class="buttons">Rate user</a></div>