The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Code needed checking please...:)
PHP Code:
I have no idea why it's wrong lol - unexpected '{' apparently Thank you |
#2
|
||||
|
||||
Take out the last } and it will work.
|
#3
|
||||
|
||||
Umm maybe this may work better?
PHP Code:
|
#4
|
||||
|
||||
Nothing seems to be working :/
Edit: I messed around with it a little and now have problems with both of thses codes. I think they're cancelling each other out Code:
if ($bbuserinfo[usergroupid]==6) { if ($imginfo[0]>$amw or $imginfo[1]>$amh) { eval("standarderror(\"".gettemplate("error_aabd")."\");"); } } elseif ($bbuserinfo[usergroupid]==5) { if ($imginfo[0]>$smmw or $imginfo[1]>$smmh) { eval("standarderror(\"".gettemplate("error_smabd")."\");"); } } elseif ($bbuserinfo[usergroupid]==7) { if ($imginfo[0]>$mmw or $imginfo[1]>$mmh) { eval("standarderror(\"".gettemplate("error_mabd")."\");"); } } elseif { if ($imginfo[0]>$avatarmaxdimension or $imginfo[1]>$avatarmaxdimension) { eval("standarderror(\"".gettemplate("error_avatarbaddimensions")."\");"); } } Code:
if ($bbuserinfo[usergroupid]==6) { if ($filesize>$amfs) { eval("standarderror(\"".gettemplate("error_avatartoobig")."\");"); // file size too big exit; } } elseif ($bbuserinfo[usergroupid]==5) { if ($filesize>$smmfs) { eval("standarderror(\"".gettemplate("error_avatartoobig")."\");"); // file size too big exit; } } elseif ($bbuserinfo[usergroupid]==7) { if ($filesize>$mmfs) { eval("standarderror(\"".gettemplate("error_avatartoobig")."\");"); // file size too big exit; } } elseif ($filesize>$avatarmaxsize) { eval("standarderror(\"".gettemplate("error_avatartoobig")."\");"); // file size too big exit; } } The error i get is Parse error: parse error, unexpected '{', expecting '(' in /home/******/*******/forum/member.php on line 1409 Thanks for any help |
#5
|
||||
|
||||
What exactly is line 1409?
|
#6
|
||||
|
||||
PHP Code:
|
#7
|
||||
|
||||
RAAAH! *bump*
Please help - people with custom avs can't change them and people can't view profiles! |
#8
|
|||
|
|||
The second code has an extra '}', I believe.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|