Log in

View Full Version : Edit comment in blog does not work


Jalo
08-28-2011, 08:51 PM
Hi All,

I can't edit comments posted in the blogs. The little icon isn't clickable.
When I copy the url from the icon (blog_post.php?do=editcomment&bt=117) and paste that in the address bar it works.

Disabling all ajax features works but I'd like to keep the ajax features.

So I tried to fix it by changing the code. My knowledge is basic so I don't know the consequences this might have. Can someone check it for me please:

This is the original code:

<img src="$stylevar[imgdir_misc]/blog/edit.gif" alt="$vbphrase[edit_comment]" border="0" class="inlineimg" id="comment_edit_$response[blogtextid]" />

When I removed the id it seems to work (I can click the icon and edit the comment):

<img src="$stylevar[imgdir_misc]/blog/edit.gif" alt="$vbphrase[edit_comment]" border="0" class="inlineimg" />

Hope someone can tell me whether removing the id has any consequenses.

With kind regards,
Jalo

Lynne
08-28-2011, 11:54 PM
It shouldn't matter. But, the question is more *why* does it matter. The id should simply be a unique id for that post. Is $response[blogtextid] actually putting out a value?

Jalo
08-30-2011, 09:17 AM
How can I check that?

Lynne
08-30-2011, 04:21 PM
You can look in the page source and see if a value is getting output there.