REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ban Page
#1
Can someone point me to the plugin where I can limit the users who can see the ban page? Cause I can't find the damn thing!
[Image: userbar.png]
Reply
#2
There isn't a plugin to limit who can see the ban page, there's just a plugin to show the ban page. To limit it you just need a conditional.

PHP Code:
if(!in_array($mybb->user['usergroup'], array('3','4','6')))
{
    
error_no_permission();
}
else
{
... 
Reply
#3
(Mar 19, 2010, 11:29 AM)MattR Wrote: There isn't a plugin to limit who can see the ban page, there's just a plugin to show the ban page. To limit it you just need a conditional.

PHP Code:
if(!in_array($mybb->user['usergroup'], array('3','4','6'))
{
    
error_no_permission();
}
else
{
... 
Oh ok thanx but where do I add this code? lol
[Image: userbar.png]
Reply
#4
You must add the code in the plugin to show the ban page Wink
Reply
#5
Just put this:

PHP Code:
if(!in_array($mybb->user['usergroup'], array('3','4','6'))
{
    
error_no_permission();


anywhere after global.php has been included.
Reply
#6
LOL I added it and everything got fucked up Tongue I fixed it back.
There is this in the bans.php
Code:
if(!$mybb->user['uid']){
error_no_permission();
}
Maybe there is a way just to edit this?
[Image: userbar.png]
Reply
#7
(Mar 20, 2010, 11:55 AM)AXVIS Wrote: LOL I added it and everything got fucked up Tongue I fixed it back.
There is this in the bans.php
Code:
if(!$mybb->user['uid']){
error_no_permission();
}
Maybe there is a way just to edit this?

I also want to have it for my bans.php page so only TF tech and staff can see it Tongue
Reply
#8
(Mar 20, 2010, 01:14 PM)Snooopy` Wrote:
(Mar 20, 2010, 11:55 AM)AXVIS Wrote: LOL I added it and everything got fucked up Tongue I fixed it back.
There is this in the bans.php
Code:
if(!$mybb->user['uid']){
error_no_permission();
}
Maybe there is a way just to edit this?

I also want to have it for my bans.php page so only TF tech and staff can see it Tongue

You know the first thing you should do is stop stealing Onyx themes.
[Image: userbar.png]
Reply
#9
(Mar 20, 2010, 11:55 AM)AXVIS Wrote: LOL I added it and everything got fucked up Tongue I fixed it back.
There is this in the bans.php
Code:
if(!$mybb->user['uid']){
error_no_permission();
}
Maybe there is a way just to edit this?

Right, just change that to to code I gave... I'm not sure what the problem is.
Reply
#10
(Mar 20, 2010, 03:01 PM)AXVIS Wrote:
(Mar 20, 2010, 01:14 PM)Snooopy` Wrote:
(Mar 20, 2010, 11:55 AM)AXVIS Wrote: LOL I added it and everything got fucked up Tongue I fixed it back.
There is this in the bans.php
Code:
if(!$mybb->user['uid']){
error_no_permission();
}
Maybe there is a way just to edit this?

I also want to have it for my bans.php page so only TF tech and staff can see it Tongue

You know the first thing you should do is stop stealing Onyx themes.

I have not stolen onyx trhemes, that is not my forum. I work for that company behind that forum.

also, Um, that is a freee theme, I found it for the owner on a website, it was free.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  MyBB change index page? Yoshistr 7 4,167 Aug 21, 2017, 07:40 AM
Last Post: Frances
  [Tutorial]Add page to mybb Angel 12 7,802 May 01, 2017, 02:27 PM
Last Post: actavis
Exclamation Adding fields to registration page not working tjroughrider 3 2,850 Mar 03, 2015, 04:02 PM
Last Post: tjroughrider
  Tabbed menu only works on /index.php page? MrNova 3 2,113 Apr 21, 2014, 08:51 PM
Last Post: Ace700
  How to Edit mybb portal page to input adsense v4vikash 1 1,613 Mar 24, 2014, 04:22 AM
Last Post: jackthomas087

Forum Jump:


Users browsing this thread: 1 Guest(s)