MyBB Community Forums

Full Version: Rep Button?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Not sure if this has been asked, used the search & nothing!

What it is, I am trying to find out the code for a button to be added to the Post Bit to direct to a user's "Add Reputation" instead of going through the UserCP first. Found out how to do it for an independence user, via linking, but how to do it like the Thanks Button.

Does anyone know what I'm talking about, or am I thinking to far outside the box?
Any suggestions on how to do this? Think its a good idea to had on any site!
I like the idea WaReZ...

I suppose it's quite easy when you boil it down a bit. Simply make a thanks button (there's a myBB GDK pack if you want a default looking one), and add it to the template you want it to appear on.

For example if you want the button to be on a post (maybe next to the PM button), just edit the postbit_pm template and dump this code before or after the PM text (with a bit of fiddling):

<a href="javascript:MyBB.reputation({$post['uid']});"><img src="path to image" alt="alt text" title="title text" /></a> 

A bit simple, and will still appear if the reputation system is turned off, but should get the job done.

Smile
Big thanks man, it works too, would give you a rep, but the site doesn't do them Big Grin

Would a big THANK YOU be ok?
I find it funny that a good feature like reputation is disabled here Undecided

I suppose it will suffice, lol... really, glad I could help Smile
(2008-08-28, 03:31 PM)Tom.M Wrote: [ -> ]I find it funny that a good feature like reputation is disabled here Undecided

To prevent abuse like someone getting a bad rep for not providing a mod fast enough or something. Just so stupid people can't make others look bad for no reason.