Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Closed]: Accidently turned bbcode in comments off  (Read 3077 times)

0 Members and 1 Guest are viewing this topic.

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
[Closed]: Accidently turned bbcode in comments off
« on: July 01, 2008, 09:40:11 pm »

Hello.

I do not know how I made it, but when I enter a link in comments, I get the letters (...) back. I guess bbcode is turned off somehow.

Do you have a guess what I deleted or is there a switch for the admin anywhere. I did not find the solution.

Here is the code of my theme.php

Code: [Select]
// start editing comments
// HTML template for the display of comments
if (!isset($template_image_comments)) {  //{THEMES}
if ($CONFIG['pms_enabled'] && !isset($template_image_comments)) {
$pm_link = "<cite><a href=\"".(PM_LINK)."{AUTHOR_ID}\"><img src='{THEME_DIR}images/pm.gif' width=\"16\" height=\"11\" border=\"0\" alt=\"Send PM\" /></a></cite>";
}
$template_image_comments = <<<EOT
<table align="center" width="600" cellspacing="1" cellpadding="0" class="comments">

        <tr>
                <td>
                        <table width="100%" cellpadding="0" cellspacing="0">
                           <tr>
                                <td class="tableh2_compact" nowrap="nowrap">
                                       <b> {MSG_AUTHOR} </b>

<!-- BEGIN ipinfo -->
                                                                                 ({IP})
<!-- END ipinfo -->
</td>


                                <td class="tableh2_compact" align="right" width="100%">
<!-- BEGIN report_comment_button -->
     <a href="report_file.php?pid={PID}&amp;msg_id={MSG_ID}&amp;what=comment" title="{REPORT_COMMENT_TITLE}"><img src="images/report.gif" width="16" height="16" border="0" align="middle" alt="{REPORT_COMMENT_TITLE}" /></a>
<!-- END report_comment_button -->


<!-- BEGIN buttons -->
                                        <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="0" align="middle" /></a>

<!-- END buttons -->
                                </td>
                                <td class="tableh2_compact" align="right" nowrap="nowrap">
                                        <span class="comment_date">[{MSG_DATE}]</span>
                                </td></tr>
                        </table>
                </td>
        </tr>
        <tr>
                <td class="tableb_compact">
<p>
                        <div id="cbody{MSG_ID}" style="display:block">

                        {AVATAR} {MSG_BODY}</div>
                        </div>
</p>
                        <div id="cedit{MSG_ID}" style="display:none">
<!-- BEGIN edit_box_smilies -->
                                <table width="100%" cellpadding="0" cellspacing="0">

                                                <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}" />
                                                <tr>
                                                <td>
                                                   <input type="text" name="msg_author" value="{MSG_AUTHOR_EDIT}" class="textinput" size="25" />
                                                </td><td>
                                                </tr>
                                                <tr>
                                                <td width="80%">
                                                        <textarea cols="40" rows="6" class="textinput" name="msg_body" onselect="storeCaret_f{MSG_ID}(this);" onclick="storeCaret_f{MSG_ID}(this);" onkeyup="storeCaret_f{MSG_ID}(this);" 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="1" height="2" /><br /></td>
                                        </tr>
                                </table>
                                {SMILIES}
<!-- END edit_box_smilies -->
<!-- BEGIN edit_box_no_smilies -->
                                <table width="100%" cellpadding="0" cellspacing="0">
                                        <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_EDIT}" class="textinput" size="25" />
                                                </td>
                                        </tr>
                                        <tr>
                                                <td width="100%">
                                                        <textarea class="textinput" name="msg_body" rows="6" style="width: 550px;">{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="1" height="2" /><br /></td>
                                        </tr>
                                </table>
<!-- END edit_box_no_smilies -->
                        </div>
                </td>
        </tr>
</table>
EOT;


Thank you, regards, Dietmar
« Last Edit: July 02, 2008, 07:48:48 am by Joachim Müller »
Logged

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
Re: Accidently turned bbcode in comments off
« Reply #1 on: July 01, 2008, 09:57:31 pm »

It is not theme.php nor displayimage.php which causes the problem.

bbcode works [url]. Just not the automatic recognition of a link (html?)

regards, Dietmar

Logged

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
Re: Accidently turned bbcode in comments off
« Reply #2 on: July 01, 2008, 11:01:44 pm »

you can close this thread. i post a answer in the "themes, skins..." forum
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Accidently turned bbcode in comments off
« Reply #3 on: July 02, 2008, 07:49:57 am »

i post a answer in the "themes, skins..." forum
I guess you're refering to the thread "Add quicktags"
Logged

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
Re: [Closed]: Accidently turned bbcode in comments off
« Reply #4 on: July 02, 2008, 09:29:48 am »

Yes, forgot to link it.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.