Hello friends, Im looking for someone to fix a little bug that my template have... my website: http://www.celebridadesdespidas.com (adult content) - when you click in "open", shows a menu popup full of code lines... is a mess! I think that the problem is in login.tpl file: <?php if ($is_logged == TRUE){ $login_panel = <<<HTML <div class="login-link"> HTML; if ($user_group[$member_id['user_group']]['allow_admin']) { $login_panel .= <<<HTML <a href="{$adminlink}" class="admin-link" target="_blank">ÀäìèÃöåÃòð</a> HTML; } else { $login_panel .= <<<HTML HTML; } $login_panel .= <<<HTML <a href="{$link_addnews}" class="add-link">Îïóáëèêîâà òü</a> <a href="{$link_profile}" class="profile-link">ÈÃôîðìà öèÿ î Âà ñ</a> <a href="{$link_pm}" class="pm-link">ÑîîáùåÃèÿ ({$member_id['pm_unread']} | {$member_id['pm_all']})</a> <a href="{$link_logout}" class="lu-link">Âûõîä</a> <div style="clear: both; height: 1px;"></div> </div> HTML; } else { $login_panel = <<<HTML <div class="l-color"> <form method="post" action='' style="margin: 0; padding: 0;"> <table width="200" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="140"> Âà øå èìÿ </td> <td valign="top" width="140"> Ãà ðîëü </td> </tr> <tr> <td valign="top" style="padding-top: 5px;"> <input name="login_name" type="text" class="login-input-text" title="Âà øå èìÿ Ãà ñà éòå" value="ëîãèÃ" onblur="if(this.value=='') this.value='ëîãèÃ';" onfocus="if(this.value=='ëîãèÃ') this.value='';" /> </td> <td valign="top" style="padding-top: 5px;"> <input name="login_password" type="password" class="login-input-text" title="Âà ø ïà ðîëü" value="ïà ðîëü" onblur="if(this.value=='') this.value='ïà ðîëü';" onfocus="if(this.value=='ïà ðîëü') this.value='';" /> </td> </tr> <tr> <td valign="top" colspan="2" style="padding-top: 7px;"> <input onclick="submit();" type="image" class="enter" src="{THEME}/images/enter.jpg" value="âõîä" /><input name="login" type="hidden" id="login" value="submit" /> <div style="float: left;padding: 7px 0 0 5px;" class="fix-moz"><a href="{$link_regist}" title="ðåãèñòðà öèÿ Ãà ñà éòå">Ãåãèñòðà öèÿ</a> / <a href="{$link_lost}" title="âîññòà ÃîâëåÃèå ïà ðîëÿ">Âñå çà áûë?</a></div> </td> </tr> </table> </form> </div> HTML; } ?> PHP: I changed from UTF-8 to windows-1251 only to translate the template language from Russian to English. See the differences with UTF-8 and windows-1251: windows-1251: UTF-8: Please, someone...? PM with your price
I did a mock up and tested this file on my own test server and worked fine. Is this the exact copy of the original file or has it been edited to be more readable? I would also check the file to make sure that there is no white space at all around the heredoc statements.