• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » One or more conditional operators (<?if?>) are not closed (Code Issues)
One or more conditional operators (<?if?>) are not closed
Mark-ucoz-co-uk
Posts: 134
Reputation: 0

Message # 1 | 4:32 AM
Hello I am trying to add the following code to my site as the title of this thread says I am having that error but I have looked over my code and don't see the error can you please help me?

Code
  <div data-role="main" class="ui-content">
    <a href="#myPopup" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all ui-icon-check ui-btn-icon-left">Login/Register</a>

    <div data-role="popup" id="myPopup" class="ui-content" style="min-width:250px;">
<?if($LOGIN_LINK$)?>
<div class="BlockCont">
<script type="text/javascript">
sendFrm549786=function(){
var o=$('#frmLg549786')[0],pos=_uGetOffset(o),o2=$('#blk549786')[0];
document.body.insertBefore(o2,document.body.firstChild);
$(o2).css({top:(pos['top'])+'px',left:(pos['left'])+'px',width:o.offsetWidth+'px',height:o.offsetHeight+'px',display:''}).html('<div align="left" style="padding:5px;"><div class="myWinLoad"></div></div>');
_uPostForm('frmLg549786',{type:'POST',url:'/index/sub/',error:function() {
$('#blk549786').html('<div align="left" style="padding:10px;"><div class="myWinLoadSF" title="Unable to execute query, try again later"></div></div>');
_uWnd.alert('<div class="myWinError">Unable to execute the request, try again later</div>','',{w:250,h:90,tm:3000,pad:'15px'});
setTimeout("$('#blk549786').css('display','none');",'1500');
}
});
}
</script>
<div id="blk549786" style="border:1px solid #50555d;position:absolute;z-index:82;background:url('http://s59.ucoz.net/img/fr/g.gif');display:none;"></div><form id="frmLg549786" action="/index/sub/" method="post" style="margin:0" onsubmit="sendFrm549786();return false;">
<div class="login_bg"><div class="login_icon"></div><input style="border:0px;font-family:Tahoma;color:#afafaf;" type="text" name="user" onFocus="if(value=='Username...'){value='';}" onBlur="if(value=='') {value='Username...';}" value="Username..." size="20" style="width:100%;" maxlength="50"/></div>
<div class="login_bg" style="margin:2px 0 0 0;"><div class="login_icon"></div><input style="border:0px;font-family:Tahoma;color:#afafaf;" type="password" name="password" onFocus="if(value=='Password...'){value='';}" onBlur="if(value=='') {value='Password...';}" value="Password..." size="20" style="width:100%" maxlength="15"/></div>
<div style="display:none;">
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr>
<td nowrap><input id="remmain" type="checkbox" name="rem" value="1" checked="checked"/><label for="remmain">Remember</label></td>
<td align="right" valign="top"><input class="loginButton" id="EnterUser" name="sbm" type="submit" value="Login"/></td>
</tr>
</table>
</div>
<div style="border:0px; border-top:1px solid #ccc; background:#f3f3f3; margin:-5px; margin-top:5px; padding:5px;">
<div style="float:right;"><div class="input_submit alt" onclick="$('#EnterUser').click()" style="padding:5px 10px;"><b>Login</b></div></div>
<div><a href="javascript://" rel="nofollow" onclick="new _uWnd('Prm','Lost password',300,130,{autosize:1,closeonesc:1},{url:'/index/5'});return false;" style="color:#999; text-shadow:0px 1px 0px #fff;">Forgot your password ?</a></div>
<div><a href="/index/3" style="color:#999; text-shadow:0px 1px 0px #fff;">Register to be a member </a></div>
<div style="clear:both"></div>
</div><input type="hidden" name="a" value="2" /><input type="hidden" name="ajax" value="1" /><input type="hidden" name="rnd" value="786" /> $LOGIN_FB$ $LOGIN_GOOGLE$ $LOGIN_TWITTER$</form>

</div>
<?else?>

<div class="BlockCont">

<div style="margin:-5px; margin-bottom:5px; border:0px; border-bottom:1px solid #ccc; background:#50555d; padding:5px; color:#FFFFFF;">
Hello, <b>$USERNAME$</b>!
</div>
<div style="margin:-5px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="padding:9px; border:0px; border-right:1px dotted #ccc; background:#50555d;" width="50px" valign="top">
<?if($USER_AVATAR_URL$)?>
<img title="$USERNAME$" src="$USER_AVATAR_URL$" border="0" width="50px" class="news_screen1">
<?endif?>
    </div>
  </div>

Check Out Rservices & RandomAndroid at: http://http://www.randomness-fun.com/ Hosted by Ucoz also come come check out our official Android IRC chat room at: http://www.randomness-fun.com/index/rservices_irc_chat/0-34
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 2 | 8:35 AM
Mark-ucoz-co-uk, insert one more <?endif?> to the end of the code.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
Mark-ucoz-co-uk
Posts: 134
Reputation: 0

Message # 3 | 10:26 AM
Quote bigblog ()
<?endif?>

thanks please lock thread problem solved I was so confused

Check Out Rservices & RandomAndroid at: http://http://www.randomness-fun.com/ Hosted by Ucoz also come come check out our official Android IRC chat room at: http://www.randomness-fun.com/index/rservices_irc_chat/0-34
uCoz Community » For Webmasters » Custom Solutions » One or more conditional operators (<?if?>) are not closed (Code Issues)
  • Page 1 of 1
  • 1
Search: