MyBB Central
[Release] RepFuck Button - Printable Version

+- MyBB Central (http://www.mybbcentral.com)
+-- Forum: Mybb 1.6x Series Topics (http://www.mybbcentral.com/forum-34.html)
+--- Forum: MyBB 1.6x Member Release Plugins (http://www.mybbcentral.com/forum-38.html)
+--- Thread: [Release] RepFuck Button (/thread-7343.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


[Release] RepFuck Button - Oliver Evans - Sep 13, 2011

[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>



RE: [Release] RepFuck Button - ambrizal - Sep 14, 2011

You Have ScreenShot


RE: [Release] RepFuck Button - Oliver Evans - Sep 14, 2011

Added for you


RE: [Release] RepFuck Button - promoteboard - Sep 14, 2011

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!


RE: [Release] RepFuck Button - Oliver Evans - Sep 14, 2011

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.


RE: [Release] RepFuck Button - KyleFYI - Sep 22, 2011

The button doesn't show up for me...



RE: [Release] RepFuck Button - Oliver Evans - Sep 22, 2011

Make sure you make the correct template edits.


RE: [Release] RepFuck Button - SouR'D - Sep 22, 2011

Very nice plugin thanks for this..



RE: [Release] RepFuck Button - ComX - Sep 23, 2011

So you are boxxy?


RE: [Release] RepFuck Button - Oliver Evans - Sep 23, 2011

No, im just publishing the files after the old threads attachment became corrupt.