This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Forward Slashes in the Comments


avatar
wright 42
From: -
Forward Slashes in the Comments

If someone uses quotation marks in their comments a forward slash is placed in front of it.

For example...

\"Artyom\"

Update: It only seems to happen if I edit the post.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Forward Slashes in the Comments
avatar
OP 42
From: -
Okay not a problem thanks.
1 Re: Forward Slashes in the Comments
avatar
Editor
0
From: -
That's almost impossible after there are huge code changes. 2.1.0 is a major release with around 50 new features.

The 2.0.x branch will be still supported, so there is no rush to upgrade to 2.1.x immediately.
1 Re: Forward Slashes in the Comments
avatar
OP 42
From: -
Will there be a list of the code changes for 2.1.0 or an easy way for me to implement just the changes?
1 Re: Forward Slashes in the Comments
avatar
Editor
0
From: -
Yes, fixed in both 2.0.7 and 2.1.0
1 Re: Forward Slashes in the Comments
avatar
OP 42
From: -
Great thanks. Are these all things that you have fixed in the latest version? If so is there a way to get a list of the changes so I can manually go through and correct them as a lot of my files have been customized and I do not want to overwrite them.
1 Re: Forward Slashes in the Comments
avatar
Editor
0
From: -
Here the fix for the admin section:

1) /cadmin/articles/admineditarticlecomment.php

Find:
$input_articlecomment_parsed = $input_articlecomment_text;


and replace with:
$input_articlecomment_parsed = $system -> dechomp( stripslashes( $input_articlecomment_text ) );


2) /cadmin/articles/admindoeditarticlecomment.php

Find:
$input_articlecomment_parsed = $input_articlecomment_text;


and replace with:
$input_articlecomment_parsed = $system -> dechomp( $input_articlecomment_text );
1 Re: Forward Slashes in the Comments
avatar
OP 42
From: -
When I edit a comment in the back end to add breaks in the text it shows up in the back end with the breaks. However when I access the comment via the site it is still one big massive block of text. I have uploaded your file and fixed the typo in the template...

Update: I just set the edit time to 9999999 so I could edit older comments when logged in as an admin. If I edit the comments via the web site and not the back end it works fine. The formatting changes made in the back end do not impact the comments on the website.
1 Re: Forward Slashes in the Comments
avatar
Editor
0
From: -
No I only replaced it and have checked numerous times.

I attached the modified file that I used.

Also users are complaining that they cannot edit their own posts.

I see. There is a typo in template articles_summary_comment_options_edit.

Replace:
<a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}news{$insert['param_action']}editcomment{$insert['param_id']}{$insert['articlecomment_id']}"><img src="https://www.contentteller.com/images/button_edit.gif" alt="" /></a>


with:
<a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}editcomment{$insert['param_id']}{$insert['articlecomment_id']}"><img src="https://www.contentteller.com/images/button_edit.gif" alt="" /></a>

   articlesdocommentedit.zip
1 Re: Forward Slashes in the Comments
avatar
OP 42
From: -
No I only replaced it and have checked numerous times. Also users are complaining that they cannot edit their own posts.
1 Re: Forward Slashes in the Comments
avatar
Editor
0
From: -
Sounds like you didn't replaced the code but removed it.
1 Re: Forward Slashes in the Comments
avatar
OP 42
From: -
Okay that fixed the problem but now when I edit a post it looses its formatting, for example paragraph breaks are now gone and the text is all jumbled together.
1 Re: Forward Slashes in the Comments
avatar
Editor
0
From: -
Open /modules/articles/articlesdocommentedit.php in an editor and replace:

$input_message_parsed = $system -> dechomp( $input_message );


with:

$input_message_parsed = $system -> dechomp( $input_message_parsed );

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.