Current time: 05-24-2012, 09:15 AM Hello There, Guest! (LoginRegister)


Rep Button?
08-27-2008, 06:05 AM
Post: #1
Solved: 1 Year, 7 Months, 3 Weeks, 1 Day, 19 Hours, 10 Minutes, 49 Seconds ago Question Rep Button?
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?
Find all posts by this user
08-28-2008, 08:30 AM
Post: #2
Solved: 1 Year, 7 Months, 3 Weeks, 1 Day, 19 Hours, 10 Minutes, 49 Seconds ago RE: Rep Button?
Any suggestions on how to do this? Think its a good idea to had on any site!
Find all posts by this user
08-28-2008, 09:54 AM
Post: #3
Solved: 1 Year, 7 Months, 3 Weeks, 1 Day, 19 Hours, 10 Minutes, 49 Seconds ago RE: Rep Button?
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):

Code:
<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
Find all posts by this user
08-28-2008, 02:30 PM
Post: #4
Solved: 1 Year, 7 Months, 3 Weeks, 1 Day, 19 Hours, 10 Minutes, 49 Seconds ago RE: Rep Button?
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?
Find all posts by this user
08-28-2008, 03:31 PM
Post: #5
Solved: 1 Year, 7 Months, 3 Weeks, 1 Day, 19 Hours, 10 Minutes, 49 Seconds ago RE: Rep Button?
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
Find all posts by this user
08-28-2008, 08:02 PM
Post: #6
Solved: 1 Year, 7 Months, 3 Weeks, 1 Day, 19 Hours, 10 Minutes, 49 Seconds ago RE: Rep Button?
(08-28-2008 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.

Reps me if you Heart me.
My Site: Alex Sage
[Image: 18.jpg]
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication