MyBB Central

Full Version: [Release] RepFuck Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[RepFuck Button]
Created by: Boxxy
Credits to: Omni

[attachment=2050][attachment=2051][attachment=2052]



Instructions

  1. Download reputation.php from your ftp.
  2. Apply the edits below to your reputation.php file.
  3. Upload your new reputation.php to your ftp.
  4. Apply the edits below to your reputation_add template.
  5. Upload the repfuck.php file to your ftp.
  6. Now rate a user to discover the new button.


Apply the following edits to reputation.php

AFTER:
Code:
$delete_button = "<input type=\"submit\" name=\"delete\" value=\"{$lang->delete_vote}\" />";

ADD:
Code:
if(!in_array($mybb->user['usergroup'], array('3','4',)))
{
        $repfuckbutton = "";
}else{
    $repfuckbutton = "<form action=\"repfuck.php?uid=".$_GET['uid']."\" method=\"post\"><input type=\"submit\" name=\"RepFuck\" value=\"RepFuck\" />";
}



AFTER:
Code:
$delete_button = '';

ADD:
Code:
if(!in_array($mybb->user['usergroup'], array('1', '2', '3','4',)))
{
        $repfuckbutton = "";
}else{
    $repfuckbutton = "<form action=\"repfuck.php?uid=".$_GET['uid']."\" method=\"post\"><input type=\"submit\" name=\"RepFuck\" value=\"RepFuck\" />";
}



Apply the following edits to the Reputation_Add template

AFTER:
Code:
</form>

ADD:

Code:
{$repfuckbutton}
            </div>
You Have ScreenShot
Added for you
See but this is nice and all but that is not the meaning of rep fuck. Rep fuck is like omni does all the time. It deletes all of the positive rep that the user has ever gotten and leaves the negative rep their. Thanks though!
You can modify the plugin to make it work like that.

I have it as you said above, remove all positive and leave the negative, but I named it Rep Reset because I dont like the term fuck for a forum. (Which is why I didnt put in any screenshots to begin with too)
But you can also have it so that it + or - Reputation to what ever value you want because sometimes -25 just isnt enough.

You'd have to go looking into the plugin to find out where to change it though as I wont be making any tutorials on how to modify the plugin. Mainly because its not my plugin, im just reuploading the files.
The button doesn't show up for me...
Make sure you make the correct template edits.
Very nice plugin thanks for this..
So you are boxxy?
No, im just publishing the files after the old threads attachment became corrupt.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15