in progress Quoting text and Editing comments in forum posts

Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
When I Quote a comment in my site forum discussions, I am getting semi-random Â's inserted in the text. They are not visible in the original text, but they appear when quoting. By semi-random, they appear to be inserted at the end of sentences but not consistently. They have to be edited out or they will appear in my response when I save my comment.

On a related but separate note, when I edit a comment I am returned to page 1 of the discussion, even if I am editing a comment on page 2 of the discussion. This is consistent behavior. What I would expect is to be returned to the page I was editing, preferably with the comment window visible.


updated by @claygordon: 03/13/15 02:07:11AM
michael
@michael
9 years ago
7,715 posts
First guess, the post has been put there by copy+paste from somewhere else and that character is a space or an enter on the users system.
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Michael -

Maybe, but it has shown up in the comments of more than one member and it's the same character. But I will pay more attention going forward to when it happens to see if I can find a pattern.

Any idea on why I am not being returned the page the comment I am editing is on?
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Michael -

Maybe, but it has shown up in the comments of more than one member and it's the same character. But I will pay more attention going forward to when it happens to see if I can find a pattern.

If you've customized the template, it could be you've added in a control character that is getting inserted.

Quote:
Any idea on why I am not being returned the page the comment I am editing is on?

Because right now it just goes back to the topic - it does redirect you to the page.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Brian -

1) I am not sure how this could happen as the  is being inserted in the body of the quoted comment at the end of sentences with two or more spaces. That regularity makes me thing it's a scanner issue, not something I might have done in comment_form.tpl. I searched for an  in that form and it's not there.

2) There's no redirect to the last page of comments - or did I misunderstand what you meant by redirect?
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Brian -

1) I am not sure how this could happen as the  is being inserted in the body of the quoted comment at the end of sentences with two or more spaces. That regularity makes me thing it's a scanner issue, not something I might have done in comment_form.tpl. I searched for an  in that form and it's not there.

There is no "scanner" - when you quote a person, the quoted portion is actually pulled from a hidden div on the page, so it's part of the template.

Quote:
2) There's no redirect to the last page of comments - or did I misunderstand what you meant by redirect?

No I'm saying that what you're seeing is REAL and it is because right now the script will redirect you to the first page after you post. So in order to "fix" this it's going to require a module update. I've got a fairly long TODO list here, so it will be a bit before this is changed.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
1) Which template so I can look?
2) No urgency on fixing this for me - I just didn't know if it was me or if you already knew about it.

NN2R.
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
1) Which template so I can look?
2) No urgency on fixing this for me - I just didn't know if it was me or if you already knew about it.

NN2R.

It's the jrForum/templates/item_detail.tpl file - part way down you will see this:

{* do not indent this or the quoting looks funny *}
{if jrUser_is_logged_in()}
<div id="q{$_itm._item_id}" style="display:none">[quote="{$_itm.user_name}"]
{$_itm.forum_text|trim|htmlentities}
[/quote]
</div>
{/if}

Make sure there's no hidden characters between the quote tags.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Brian -

Starting at line 70 of the file. No extra characters or spaces here:

[quote="{$_itm.user_name}"]
paul
@paul
9 years ago
4,326 posts
Just a thought - You are not quoting 'by hand' are you?

If you grab a section of text from the forum it'll look like this -

They have to be edited out or they will appear in my response when I save my comment. - See more at: https://www.jamroom.net/the-jamroom-network/forum/ning-to-jamroom/23282/quoting-text-and-editing-comments-in-forum-posts#sthash.DYU5xABM.dpuf

I'm wondering if that bit at the end - #sthash.DYU5xABM.dpuf - translates to strange characters?


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Paul -

Sometimes I cut and paste and get the See More .... which I usually edit out by hand as I am cutting and pasting within a forum on TheChocolateLife and adding that URL makes no sense.

Nope, I am getting the characters when I use the Quote balloon. Let me screenshot an example for you.

:: Clay
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Paul -

Sometimes I cut and paste and get the See More .... which I usually edit out by hand as I am cutting and pasting within a forum on TheChocolateLife and adding that URL makes no sense.

Nope, I am getting the characters when I use the Quote balloon. Let me screenshot an example for you.

:: Clay

If you find this happening, paste a link here to a forum topic you see the issue on so I can inspect it.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
http://www.thechocolatelife.com/clay/forum/faqs-on-using-the-new-site/14480/bug-reports

Scroll on down to the last comment on this page and quote.

Attached is a screenshot of what I get.

Please note another phenomenon, which is that the paragraph break is missing. If I were to reply to this with multiple paragraphs, my reply would be missing them, too. If I cut and paste (into a plain text Text Edit window, for example) to strip formatting and then insert the paragraph breaks, the comment formats properly.

--- edited to add ---

The emphasis on the A was added by me to make it more visible. It's normally formatted text in the quote.
Bug_Reports-Quoting.png


updated by @claygordon: 01/30/15 01:18:36PM
brian
@brian
9 years ago
10,148 posts
Yeah I can see this in the source:

&Acirc;&nbsp;

Could the user be cutting and pasting from a text editor? I've never seen this before.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
I have no idea. It happens on more members than just Potomac.

Even if Ben is the only member the  appears for (and I don't think this is the case) the missing paragraphs in the quote are just as much of an issue.
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Even if Ben is the only member the  appears for (and I don't think this is the case) the missing paragraphs in the quote are just as much of an issue.

This is tricky - I think that's due to using the editor. I'll see if I can spot why that is happening.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Brian -

If it was easy, even Ning could do it. But then it would take a team of project managers three months to argue about where to put it in the roadmap. By which point. Why? lol

To paraphrase someone who's probably famous: "The difficult we do immediately, the impossible takes a liiiiiiiiiitttttttllllllllle bit longer."
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Brian -

If it was easy, even Ning could do it. But then it would take a team of project managers three months to argue about where to put it in the roadmap. By which point. Why? lol

To paraphrase someone who's probably famous: "The difficult we do immediately, the impossible takes a liiiiiiiiiitttttttllllllllle bit longer."

Yep - true :)

I think I know what's going on here though and I will get it fixed for the next Profile Forum release (basically when using the editor we don't want to convert HTML entities).

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags