MyBB Community Forums

Full Version: Reputation NOT WORKING! Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello.
On my MyBB, when I click to rep someone's post, a message appears saying "You Did Not Specify a User to Give Reputation to."
Please help. How do I fix this!?
URL and test account please?
(2011-07-07, 06:59 PM)faviouz Wrote: [ -> ]URL and test account please?

Username: TestAcc
Password: pass

URL: VectorGaming.x10.mx
And your URL, please? I can't login without the URL.
(2011-07-07, 07:13 PM)faviouz Wrote: [ -> ]And your URL, please? I can't login without the URL.

Yes, sorry.

VectorGaming.x10.mx
Can anyone help? I can't figure it out...
Is there a file I have to edit, or...?
Hmm, your theme doesn't seem to be outputting the user and the post's ID.

1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Post Bit Templates > postbit_rep_button.

2. Copy and paste the contents of the template here.
(2011-07-07, 08:58 PM)faviouz Wrote: [ -> ]Hmm, your theme doesn't seem to be outputting the user and the post's ID.

1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Post Bit Templates > postbit_rep_button.

2. Copy and paste the contents of the template here.

<a href="javascript:MyBB.reputation({$post['uid']},{$post['pid']});"><img src="{$theme['imglangdir']}/postbit_reputation.gif" alt="{$lang->postbit_reputation}" title="{$lang->postbit_reputation}" /></a>
There's a typo in the code. Replace the postbit_rep_button template with this:

<a href="javascript:MyBB.reputation({$post['uid']},{$post['pid']});"><img src="{$theme['imglangdir']}/postbit_reputation.gif" alt="{$lang->postbit_reputation}" title="{$lang->postbit_reputation}" /></a>
(2011-07-07, 09:16 PM)faviouz Wrote: [ -> ]There's a typo in the code. Replace the postbit_rep_button template with this:

<a href="javascript:MyBB.reputation({$post['uid']},{$post['pid']});"><img src="{$theme['imglangdir']}/postbit_reputation.gif" alt="{$lang->postbit_reputation}" title="{$lang->postbit_reputation}" /></a>

Which part was a typo?
AND THAT DIDNT WORK. PLEASE HELP!
I'm pretty sure you didn't give me the code of the MyBB Gamer theme. For one, your rate user image is named as rateuser.png, and in the code you gave me, it's calling rateuser.gif which doesn't exist and would throw a broken image. Clearly, that is not the case. Secondly, the UID and the PID are not being output, which leads me to the conclusion that the code has indeed been modified.

You need to go to Admin CP > Templates & Style > Templates > myBB Gamer Templates > Post Bit Templates > postbit_rep_button. Then replace the template with:

<a href="javascript:MyBB.reputation({$post['uid']},{$post['pid']});"><img src="{$theme['imglangdir']}/rateuser.png" alt="{$lang->postbit_reputation}" title="{$lang->postbit_reputation}" /></a>
Pages: 1 2