XMB Forum Software

[Resolved] Syntax Error

Plastic - 9-25-2012 at 02:51 AM

Full Board URL: http://www.heybritneyforums.com
XMB Version: 1.9.11

I got this error today when i tried to edit a member profile:

Quote:
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/heyforum/public_html/editprofile.php(280) : eval()'d code on line 44


I don't know if when I installed the additional member hack i made a mistake or something.

Attachment: editprofile.php (14kB)
This file has been downloaded 272 times

Mouser - 9-25-2012 at 07:12 AM

Hmm, looks like a template issue.

Could you attach the template "admintool_editprofile" in a TXT file to a post ?

Plastic - 9-25-2012 at 09:58 PM

Sure.

Attachment: admintool_editprofile.txt (9kB)
This file has been downloaded 1991 times


Mouser - 9-26-2012 at 06:04 PM

Yup. There is the mistake :)

Line 43 (error says line 44, but that's because it only notices it there)

Code:
<option value="Designer" $designerselect>{$lang['designer]}</option>


Should be this;
Code:
<option value="Designer" $designerselect>{$lang['designer']}</option>


Plastic - 9-26-2012 at 11:19 PM

Ops i see what was the problem, thanks mouser. :P

Plastic - 9-26-2012 at 11:24 PM

Oh just another fast question, if i want add another additional member status all i need to do is follow the same steps?. Idk if i need open a new topic for this.

Mouser - 9-27-2012 at 06:34 AM

I haven't seen the entire hack (link the one you used?). Depends on how the number is created in (I mean to recall) header.php .... then : Yes.

Plastic - 9-27-2012 at 08:28 PM

This one.