techker Posted December 1, 2009 Share Posted December 1, 2009 Hey guys i have this : <?php if ( $this->objval($_obj,'group_label') != "general") { ?> <div class="datainfo profile" id="profile_data_<?php echo isset($_obj['rowcnt']) ? $_obj['rowcnt'] : "{rowcnt}"; ?>_content" style="display: none"> <dl class="datainfo"> <?php if (!empty($_obj['profile_fields'])){ if (!is_array($_obj['profile_fields'])) $_obj['profile_fields']=array(array('profile_fields'=>$_obj['profile_fields'])); $_tmp_arr_keys=array_keys($_obj['profile_fields']); if ($_tmp_arr_keys[0]!='0') $_obj['profile_fields']=array(0=>$_obj['profile_fields']); $_stack[$_stack_cnt++]=$_obj; $_cnt['profile_fields']=count($_obj['profile_fields']); foreach ($_obj['profile_fields'] as $rowcnt=>$profile_fields) { $profile_fields['rowcnt']=$rowcnt; $profile_fields['rowpos']=$rowcnt+1; $profile_fields['rownum']=$rowcnt%2+1; $profile_fields['rowtotal']=$_cnt['profile_fields']; $profile_fields['rowfirst']=$rowcnt==0?1:0; $profile_fields['rowlast']=($rowcnt+1)==$_cnt['profile_fields']?1:0; $_obj=&$profile_fields; ?> <dt><?php echo isset($_obj['field_name']) ? $_obj['field_name'] : "{field_name}"; ?>:</dt> <dd> <?php if ( $this->objval($_obj,'field_value') ) { ?> <?php if ( $this->objval($_obj,'field_type') == "checkbox") { ?> <?php echo vldext_break($_obj['field_value']); ?> <?php } else { ?> <?php echo isset($_obj['field_value']) ? $_obj['field_value'] : "{field_value}"; ?> <?php } ?> <?php } else { ?> {lang:"core","user_ Parse error: syntax error, unexpected $end in /home/open2sha/public_html/new/templates/sexypeople/tmp/account_home_tpl.php on line 167 is it because im missing ; Quote Link to comment https://forums.phpfreaks.com/topic/183513-syntax-error/ Share on other sites More sharing options...
cags Posted December 2, 2009 Share Posted December 2, 2009 Which line is 167? Quote Link to comment https://forums.phpfreaks.com/topic/183513-syntax-error/#findComment-969709 Share on other sites More sharing options...
techker Posted December 2, 2009 Author Share Posted December 2, 2009 i reuploaded the script and it works now..my vps is acting up!thx Quote Link to comment https://forums.phpfreaks.com/topic/183513-syntax-error/#findComment-969714 Share on other sites More sharing options...
cags Posted December 2, 2009 Share Posted December 2, 2009 At least it's sorted for you. Don't forget to click 'Topic Solved' (bottom left corner of the thread). Quote Link to comment https://forums.phpfreaks.com/topic/183513-syntax-error/#findComment-969717 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.