REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ban Page
#11
Yeah whatever. Can't anyone help me with this?
[Image: userbar.png]
Reply
#12
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'.
Reply
#13
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]
Reply
#14
Follow Matts code.
Reply
#15
I did and that the error I get so this seems to be a tuffy.
[Image: userbar.png]
Reply
#16
You have an extra { or } somewhere.
Reply
#17
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]
Reply
#18
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.

Correct:

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


Before it was this:

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

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


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)