1.6.x

Rep Fuck Button [MyBB Central]

Submitted by Deleted_44, , Thread ID: 327

Thread Closed

RE: Rep Fuck Button [MyBB Central]

#2
17-01-2015, 12:39 PM
Infinite Wrote:
When shit gets hectic, and -1 rep is not enough. You need to RepFuck!

Version
1.0

What does it do?
Pretty much adds a button for certain usergroups to absolute destroys someone's rep. GG.

Installation
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.

Edits
Apply the following edits to reputation.php

After:

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

Add:

PHP 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:

PHP Code:
$delete_button ''

Add:

PHP 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:

PHP Code:
</form

Add:

PHP Code:
{$repfuckbutton}
      </
div

Plugin Link

Download Link
Content locked
This content has been locked. Please login or register in order to unlock it.



Here's my secret ++ way how to really do it.

Content locked
This content has been locked. Please login or register in order to unlock it.

Users browsing this thread: 1 Guest(s)