Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Code/Quote/Reply problem (text lost)

Quote Reply
Code/Quote/Reply problem (text lost)
Hi all,

Several people have complained about and noticed that while using the advanced editor, they will sometimes lose text following a

Quote:
Quote,


In Reply To:
Reply,


or

Code:
Code section.


The problem stems from the way the HTML generated by the Advanced editor is converted to forum Markup - specifically, if you clicked too close to the horizontal line closing the quote, reply, or code section you would actually be typing inside the table tag there, in an area that is discarded by the converter. I've applied a potential fix to the forum here; I encourage people to try it out and let me know if they notice any problems with the quote, reply, or code sections.

Eventually (v2?) I want to change the whole thing to get it away from using tables like it does now, but that would completely change the look and should probably go along with a new template set.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Code/Quote/Reply problem (text lost) In reply to
In Reply To:
Hi all,

Several people have complained about and noticed that while using the advanced editor, they will sometimes lose text following a

Quote:
Quote,


In Reply To:
Reply,


or

Code:
Code section.


The problem stems from the way the HTML generated by the Advanced editor is converted to forum Markup - specifically, if you clicked too close to the horizontal line closing the quote, reply, or code section you would actually be typing inside the table tag there, in an area that is discarded by the converter. I've applied a potential fix to the forum here; I encourage people to try it out and let me know if they notice any problems with the quote, reply, or code sections.

Eventually (v2?) I want to change the whole thing to get it away from using tables like it does now, but that would completely change the look and should probably go along with a new template set.


I hope it is a fix you can get to us soon! I hear from angry users every day who have typed out a long reply to a message only to find that it didn't post and they didn't save it before sending. It may be the single thing that my users complain about most.

Steve

Visit The Guitar Diner

Last edited by:

Boomer: Dec 18, 2002, 8:55 AM
Quote Reply
Re: [Boomer] Code/Quote/Reply problem (text lost) In reply to
Hi Boomer,

What I've changed is the HTML for the quote, reply, code, and pre markup tags, and their closing counterparts.

Basically, it involves adding:

<span contenteditable="false"> .... </span>

around the <table>...</table> in each tag.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Code/Quote/Reply problem (text lost) In reply to
I had that trouble. I could avoid that changing the html code for the tag.

I'm using this code:

HTML: <table border=0 cellpadding=0 cellspacing=0 width="100%"><!--reply--><tr><td width="2%"><hr width="100%" noshade size="1" color="#A1A576"></td><td width="10%" align=center><font size=1 face="Verdana,Arial,Helvetica">En Respuesta a</font></td><td width="80%"><hr width="100%" noshade color="#A1A576" size=1></td></tr></table><div style="margin-left: 30px">

Closing Tag HTML: </div><table border=0 cellpadding=0 cellspacing=0 width="100%"><!--/reply--><tr><td><hr width="100%" noshade size=1 color="#A1A576"></td></tr></table><br><br>

This solves my problem. Hope help Wink




http://www.webconferencia.net/
Quote Reply
Re: [Jagerman] Code/Quote/Reply problem (text lost) In reply to
I don't think this is fixed Jason.

See post two here...

http://gossamer-threads.com/...rum.cgi?post=226587;
Quote Reply
Re: [Jagerman] Code/Quote/Reply problem (text lost) In reply to
Hi, is this issue resolved yet?

I am having it happen on my Gforum.



Thanks for any help.



Mike

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] Code/Quote/Reply problem (text lost) In reply to
Any new word on this problem?
I still have complaints about it. Is it fixed in 1.20?
I still have 1.18
I tried what was suggested here and it did not fix it.

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [Jagerman] Code/Quote/Reply problem (text lost) In reply to
I facilitated my own fix in 1.1.8. Use at your own discretion.

Code:

Go to admin panel "Markup" menu, Modify, select quote and /quote:
HTML:
Replace current code with:
<blockquote><font size=1 face="Verdana,Arial,Helvetica">Quote:</font><hr color="#A1A576">

Closing Tag HTML:
Replace current code with:
<hr color="#A1A576"></blockquote>

Repeat for reply] and /reply
optionally replace for Code and Pre


Edit template include_post_html_common_write.html to add a message to user when quoting.

BEFORE
<br><br>
<input type="submit" class="button" name="do=<%this_do%>;basic_editor=1;basic_editor_switch=1" value="Switch to Basic Editor">
<%if current_user_id%>

INSERT
<%if message_quote%>
<%body_font%><font color=red>
When quoting a message, make sure you type your text after the bottom horizontal line or it will be lost.<%/body_font%>
<%endif%>


Add global var in admin panel "Templates" menu, Global Vars, New:

message_quote

sub { $IN->param("quote") and return 1 }

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum

Last edited by:

CRUZN8R: May 27, 2003, 11:21 AM
Quote Reply
Re: [CRUZN8R] Code/Quote/Reply problem (text lost) In reply to
Thanx CRUZN8R !

I'm using your Tip, and it's working very good! Also, visually, is a GOOD option for the quotes . Very cool Wink




http://www.webconferencia.net/
Quote Reply
Re: [CRUZN8R] Code/Quote/Reply problem (text lost) In reply to
I see that you have not posted since early 2004, but I am hoping to ask a few more questions related to your 2003 investigation into quoting reply functions. I badly need to be able to SELECT text from the original message (and not get the entire message as a quote) ... editing down is not a good solution for my users. I am just installing 1.2.3 version. I have your posted "fix" working right now, very nicely.
I have some javascript and some "quote" code from another program I am trying to slip into GF. Could we communicate on this? TIA.