Buying Looking for a programmer to fix a little issue

Discussion in 'Programming' started by Divvy, Mar 1, 2011.

  1. #1
    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:
    [​IMG]

    UTF-8:
    [​IMG]

    Please, someone...?
    PM with your price
     
    Divvy, Mar 1, 2011 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    try changing your editor encoding
     
    gapz101, Mar 1, 2011 IP
  3. Scoding

    Scoding Well-Known Member

    Messages:
    1,091
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    155
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    change all <<<HTML to " and all HTML; to ";


    Should work
     
    Scoding, Mar 1, 2011 IP
  4. Divvy

    Divvy Well-Known Member

    Messages:
    785
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #4
    Hello saulyx,

    Thank you for trying help me... but that trick didnt work :(
     
    Divvy, Mar 1, 2011 IP
  5. kazimn

    kazimn Active Member

    Messages:
    256
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    75
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Dear Sir? I can't see the problem. Let me know I will fix it for free. Many thanks
     
    kazimn, Mar 2, 2011 IP
  6. Devitor

    Devitor Peon

    Messages:
    57
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    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.
     
    Devitor, Mar 3, 2011 IP
  7. Divvy

    Divvy Well-Known Member

    Messages:
    785
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #7
    Hello guys, thank you for your replies but I already solved my problem :)
     
    Divvy, Mar 3, 2011 IP