forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: kaptainkory on July 28, 2005, 08:30:10 pm

Title: Revisions to themes.inc.php
Post by: kaptainkory on July 28, 2005, 08:30:10 pm
In themes.inc.php, FIND (line 758):

Code: [Select]
                                        <a href="delete.php?msg_id={MSG_ID}&what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0px" align="middle" /></a>
REPLACE WITH:

Code: [Select]
                                        <a href="delete.php?msg_id={MSG_ID}&amp;what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0px" align="middle" /></a>

FIND (line 802):

Code: [Select]
                                <table width="100%" cellpadding="0px" cellspacing="0px">
                                        <tr>
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
                                                <input type="hidden" name="event" value="comment_update" />
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
                                                <td>
                                                <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
                                                </td>
                                        </tr>
                                        <tr>
                                                <td width="100%">
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>
                                                </td>
                                                <td class="tableb_compact">
                                                </td>
                                                <td>
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                                </td>
                                                </form>
                                        </tr>
                                        <tr>
                                                <td colspan="3"><img src="images/spacer.gif" width="1px" height="2px" /><br /></td>
                                        </tr>
                                </table>

REPLACE WITH:

Code: [Select]
                                <form name="f{MSG_ID}" method="post" action="db_input.php">
                                <table width="100%" cellpadding="0px" cellspacing="0px">
                                        <tr>
                                                <td>
                                                <input type="hidden" name="event" value="comment_update" />
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
                                                <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
                                                </td>
                                        </tr>
                                        <tr>
                                                <td width="100%">
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>
                                                </td>
                                                <td class="tableb_compact">
                                                </td>
                                                <td>
<input type="submit" class="comment_button" name="submit" value="{OK}" />

</td>
                                               
                                        </tr>
                                        <tr>
                                                <td colspan="3"><img src="images/spacer.gif" width="1px" height="2px" /><br /></td>
                                        </tr>
                                </table>
</form>


FIND (line 757):

Code: [Select]
                                        <a href="javascript:;" onclick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0px" align="middle" /></a>
REPLACE WITH:

Code: [Select]
                                        <a href="javascript:;" onclick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0px" align="middle" alt="{EDIT_TITLE}" /></a>

FIND (line 776):

Code: [Select]
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
REPLACE WITH:

Code: [Select]
                                                <form name="f{MSG_ID}" method="post" action="db_input.php">

Thanks.
Title: Re: Revisions to themes.inc.php
Post by: Joachim Müller on July 29, 2005, 07:20:18 am
looking into this (self-assign).
Title: Re: Revisions to themes.inc.php
Post by: Joachim Müller on July 29, 2005, 07:45:18 am
fixes committed to cvs (include/themes.inc.php and themes/sample/theme.php). Thanks for spotting and reporting those items.