![]() |
Public Display of Affection (reputation display)
Allow your users to easily "agree" or "disagree" with a post-- rather than having them make a whole new post, you can simply use the existing reputation system.. which is meant for exactly this purpose.
Purpose: This hack makes each post's reputation visible to everyone. You can turn this on and off per forum. Modifications: 2 additions to admincp/forum.php, 2 template additions, 1 query Install Time: 10 minutes Difficulty: Easy Screenshot attached of a post with reputation comments! cheers, vBMechanic EDIT: changed functions_showthread.php edit, file changed 5:49PM PST |
/me will install very soon
|
I love you :)
|
I must admit, I love you too!
*group hugs* |
Love is all around us... but before I install... is there anyway of moderating these public display of affections? :) I wouldn't want to create a way for people to be circumvent my moderators.
|
very nice, i take, thank :)
|
Good point-- it does not have any moderation capability and it does not take into consideration the user's ignore list. It is quite basic! Maybe I will add these features to an upgrade.
|
nice idea, still it could be 5 stars, not more, the rating maximum
|
Quote:
|
If one of your users has a problem using the system you can simply take away reputation priveledges I guess. ;)
|
cool hack ..i install thank you :)
|
nice
|
I installed this hack and it works great.
However, most of my members seem to prefer to have the reputation comments not publicly. Question: If I want to uninstall it, how would I reverse this my SQL query? Code:
ALTER TABLE `forum` ADD `showaffection` SMALLINT(6) UNSIGNED DEFAULT "0" NOT NULL |
Quote:
|
Quote:
|
Rather than the comments, I just want a little thumbs up or down if they gave positive rep or not -- is there a way to do that with this hack?
|
Well, this hack doesn't work under 3.0.1... I don't think.
I installed it twice and I can't get anything to show under the posts yet it doesn't throw any errors. |
Quote:
|
Quote:
|
Quote:
|
OK I looked over the install routine and I didn't see anything that would prevent it from working in 3.0.1 or 3.0.2; nothing much has changed.
If you're using postbit_legacy, did you make that change during the install? "Alter template 'postbit', BELOW:" Did you take that line in the instructions and instead alter postbit_legacy ? |
Hello,
installed everything as explained, but I get this error-message when I try to read a thread: Quote:
Any suggestions? |
Figured out the problem. Prefixes missing o_O
|
*install*
|
Finally got around to installing this. This is exactly what I wanted.
I added this to the postbit_fuction template to show the rep only to the perosn that made the post. A compromise between those who wanted it and those who didnt. PHP Code:
|
Quote:
What'd you do to fix this? :nervous: |
erm, what's with the moderateablities?
|
Not meaning to seem impatient, but its been 12 days. Can someone help me?
|
Is there an SQL Query that can be used to turn it on on all boards?
|
Hey guys,
I installed this on our forums, and wouldnt you know that our users found a vulnerability almost right away. Seems that if the users put any HTML or JAVA code inside the comments, it actually renders when the page loads. For example: Quote:
Im sure I dont have to tell you what a malicious hacker can do with something like this. So, I'd propose this fix to the existing code. Inside the functions_showthread.php, find this code: Code:
// START PUBLIC DISPLAY OF AFFECTION hack Code:
eval('$post[\'affectionbits\'] .= "' . fetch_template('postbit_affectionbit') . '";'); Code:
// Fix for HTML entities Other than that, this is a great hack. Im using it on 3.0.6 on 5 forums... |
^ ^
thanks a lot! :D |
Would there be any way to alter this hack so that users can turn it on or off for their posts/comments? So if one user doesn't want their rep (given or received) shown publically they can turn it off. Any way to do that easily? Or would that be too difficult...
|
this is a great hack, I'd love to see it updated with some of the features listed here.
|
With this hack, members can now post HTML in the reputation. Great way to generate abuse.
|
Has anyone gotten this mod to work for 3.0.7?
|
Quote:
|
Nevermind. I figured it out on my own, but I figured I'd go ahead and post the solution here as some other person had the same problem and no one answered them.
Quote:
That should work. |
Anyone get this to work with 3.0.8?
|
Quote:
<div>$post[affection]</div> in the legacy postbit too (took me a while to find) |
Will this work with 3.5 or does it need code changes.
|
All times are GMT. The time now is 01:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|