REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rep Fuck Button Information | Troubleshooting | Editing | Download!
#21
(Apr 08, 2012, 01:30 AM)Pedobear Wrote:
(Apr 08, 2012, 01:03 AM)uzi Wrote: For some strange reason it appears for all my usergroups, but only Admins have the permission to access the page.

Any way of hiding the button from every other usergroup?

Edit the repfuck.php page in cpanel it has the usergroups allowed change it to your User group or the ones you want to be able to use it.

Code:
AFTER:

$delete_button = '';

ADD:

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\" />";
}

Change this:
Code:
if(!in_array($mybb->user['usergroup'], array('1', '2', '3','4',)))

To your desired allowed usergroups.

Got it working now. Thank you very much.
Reply
#22
(Apr 08, 2012, 01:43 AM)uzi Wrote:
(Apr 08, 2012, 01:30 AM)Pedobear Wrote:
(Apr 08, 2012, 01:03 AM)uzi Wrote: For some strange reason it appears for all my usergroups, but only Admins have the permission to access the page.

Any way of hiding the button from every other usergroup?

Edit the repfuck.php page in cpanel it has the usergroups allowed change it to your User group or the ones you want to be able to use it.

Code:
AFTER:

$delete_button = '';

ADD:

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\" />";
}

Change this:
Code:
if(!in_array($mybb->user['usergroup'], array('1', '2', '3','4',)))

To your desired allowed usergroups.

Got it working now. Thank you very much.

Np mate, thats what I'm here for.
Reply
#23
Thanks for this, couldn't get it to work earlier.
Now I've also made it admin only Big Grin
Reply
#24
this is fucking awesome thanks for this bro.
Reply
#25
:D
(Oct 30, 2011, 10:05 PM)Hopsin Wrote: Very nice man.

going to implement this now.
Reply
#26
This is a amazing plugin love you (nohomo)
Reply
#27
This looks like a great plugin if only i could get this code right ;D
Reply
#28
Thank you, I'll deffinatly be trying this
Reply
#29
Thanks for this! Putting it on my site for sure
Reply
#30
This looks exciting. I will use it now.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] RepFuck Button Oliver Evans 140 61,193 Jun 29, 2017, 06:08 PM
Last Post: juv3
  Looking for the upgrade button D1LeX 2 2,683 May 15, 2014, 05:38 PM
Last Post: Kornox
  [REQUEST] Rep fuck button. KyleFYI 12 6,001 Sep 26, 2011, 11:53 PM
Last Post: F4T4L 3RR0R

Forum Jump:


Users browsing this thread: 1 Guest(s)