MyBB Community Forums

Full Version: edit code postbit had error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i just ask my friend to fix and modified postbit templete..but HuhHuh


The following errors were encountered:

    A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.


these is postbit templete

{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <!--Posisi Atas Mulai-->
    <tr>
        <!--Isi Pesan Mulai-->
        <td class="{$altbg}" valign="top" >
            <table width="100%"><div class="postmessage">
                <tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
                <br />
                <div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
                        <div>
                            <div id="1" style="float:left; z-index: 1; position: Absolute;">
                            <br><img src="images/chameleon/arrowleft.png">
                            </div>
                            <div id="2" style="z-index: 0; padding: 5px;">
                                <fieldset style="background: #3BB9FF;border:2px solid #C3C3C3;-moz-border-radius:8px;-webkit-border-radius:8px;position: relative;">
                                {$post['message']}
                                </fieldset>
                            </div>
                        </div>
                </div>
                    {$post['attachments']}
                    {$post['signature']}
                    <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                            <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                    </div>
                </td></tr>
            </table>
        </td>
        <!--Isi Pesan Selesai-->
        <!--Postbit Mulai-->
        <td class="{$altbg}" width="150px" valign="top" style="white-space: nowrap; text-align: center;" >
            <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
            <div class=postbit>
            <span class="largetext">{$dummy} <a href="{$post['profilelink_plain']}" id="user_{$post['pid']}">{$post['username_formatted']}<img src="{$theme['imgdir']}/arrow_down.gif" alt="v" style="vertical-align: middle;" /></a></span></strong><br />
            <div id="user_{$post['pid']}_popup" class="popup_menu smalltext" style="display: none;">
                <div class="popup_item_container">
                <a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}" class="popup_item"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/pb/pbpr.png" style="vertical-align: top;">{$post['username_formatted']}</a>
                </div>
                            {$post['button_email']}
                            {$post['button_pm']}
                            {$post['button_find']}
                            {$post['button_www']}
            </div>
            <script type="text/javascript">if(use_xmlhttprequest == "1"){new PopupMenu("user_{$post['pid']}");}</script>
            <div><strong><span>{$post['usertitle']}<br /></div></span>
            <div><strong><span>{$post['useravatar']}<br /></div></span>
            <div><strong><span>{$post['userstars']}</div></span>
            <div><strong><span>{$post['groupimage']}</div></span>          
            <div><strong><span>{$post['user_details']}</div></span>
            </div>
        </td>
        <!--Postbit Selesai-->
    </tr>
    <!--Posisi Atas Selesai-->
    <!--Tombol Bawah Mulai-->
    <tr>
        <td class="trow2" style="vertical-align: middle;">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr valign="bottom">
                    <td align="left" ><span class="smalltext">{$post['button_rep']}</span></td>
                    <td align="right">
                        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thank you :tq:']}
                        <div class="fb-like" data-send="true" data-layout="button_count" data-width="50" data-show-faces="false" data-font="verdana">
                            <script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxx";}(document, 'script', 'facebook-jssdk'));</script>
                        </div>
                        {$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
                    </td>
                </tr>
            </table>
        </td>
        <td class="trow2" style="white-space: nowrap; text-align: center; vertical-align: middle;">
        <span class="smalltext">{$post['postdate']} {$post['posttime']}<br />{$post['iplogged']}</span>
        </td>
    </tr>
    <!--Tombol Bawah Selesai-->
    {$post['thxdsp_inline']}
</table>
    {$post['thxdsp_outline']}
    {myadvertisements[zone_3]}
which theme you are using?
(10-03-2012, 05:56 PM)godgifted Wrote: [ -> ]which theme you are using?

envira
chameleon
Try removing this part of the postbit :

{$post['thank you :tq:']}
                         <div class="fb-like" data-send="true" data-layout="button_count" data-width="50" data-show-faces="false" data-font="verdana">
                             <script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxx";}(document, 'script', 'facebook-jssdk'));</script>
                         </div>
i just see it
must change from {$post['thank you :tq:']} to {$post['thanks']}

thanks rep leefish