Revisions to themes.inc.php Revisions to themes.inc.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Revisions to themes.inc.php

Started by kaptainkory, July 28, 2005, 08:30:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kaptainkory

In themes.inc.php, FIND (line 758):

                                        <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:

                                        <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):

                                <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:

                                <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):

                                        <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:

                                        <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):

                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">

REPLACE WITH:

                                                <form name="f{MSG_ID}" method="post" action="db_input.php">


Thanks.

Joachim Müller

looking into this (self-assign).

Joachim Müller

fixes committed to cvs (include/themes.inc.php and themes/sample/theme.php). Thanks for spotting and reporting those items.