REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ban Page
Yeah whatever. Can't anyone help me with this?
[Image: userbar.png]
Just corrected a typo in it but it would have been very helpful if you'd actually explained the error you had instead of just saying 'everything got fucked up'.
When I add the code you gave me I get this
Parse error: syntax error, unexpected '{' in /home/teamaxvi/public_html/bans.php on line 19
[Image: userbar.png]
Follow Matts code.
I did and that the error I get so this seems to be a tuffy.
[Image: userbar.png]
You have an extra { or } somewhere.
Well I figured that but not sure where lol I just added the code itself and hoping on it that it will work lol
And if I delete the {} symbols I get this
Parse error: syntax error, unexpected T_STRING in /home/teamaxvi/public_html/bans.php on line 20
[Image: userbar.png]
Yeah, I've seen the error now and added an extra ) to the end of the if statement in my first post, but I would have seen that sooner if you'd have given the syntax error message before.


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

Before it was this:

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

Works now everything is solved thank you so much. <3
[Image: userbar.png]

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

Forum Jump:

Users browsing this thread: 1 Guest(s)