Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ Forum
➜ Test
➜ Testing templates
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
3 4
5
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #30 on Fri 21 Aug 2009 02:27 AM (UTC) |
Message
| Adding a 'Quote' button on each post would also be nice; I frequently find myself wanting to quote someone, but having to go back and copy it manually. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #31 on Fri 21 Aug 2009 02:43 AM (UTC) Amended on Fri 21 Aug 2009 03:06 AM (UTC) by Nick Gammon
|
Message
|
David said:
One thing I like in some forum software is that you can quote a message with attribution.
Like this? ...
David Haley said:
If this isn't hard, I think it'd be nifty. :-)
[quote=David Haley]
If this isn't hard, I think it'd be nifty. :-)
[/quote]
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #32 on Fri 21 Aug 2009 03:05 AM (UTC) |
Message
| I've fiddled with the style.css file to get a better looking quote box.
You need to refresh the page to see a nice border now. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Blainer
(191 posts) Bio
|
Date
| Reply #33 on Fri 21 Aug 2009 03:08 AM (UTC) |
Message
| Off topic but while we're asking for things a drop down box with all the forum links, would be good on http://www.gammon.com.au/forum/
Save clicking MUSH then Lua etc. | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #34 on Fri 21 Aug 2009 03:12 AM (UTC) |
Message
| See bottom of the page (Go to topic:).
That has a drop-down list of all available topics.
Twisol said:
Adding a 'Quote' button on each post would also be nice;
So far I have steered away from scripting on the web pages. I usually find I only want to quote part of a message anyway. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #35 on Fri 21 Aug 2009 03:14 AM (UTC) Amended on Fri 21 Aug 2009 03:15 AM (UTC) by David Haley
|
Message
|
Nick Gammon said: Like this? ...
Yup! :-) Thanks much! |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Blainer
(191 posts) Bio
|
Date
| Reply #36 on Fri 21 Aug 2009 03:14 AM (UTC) |
Message
| Man thats twice today. Sorry. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #37 on Fri 21 Aug 2009 03:20 AM (UTC) |
Message
|
Nick Gammon said:
Twisol said: Adding a 'Quote' button on each post would also be nice
So far I have steered away from scripting on the web pages. I usually find I only want to quote part of a message anyway.
Scripting? I was thinking more like just a button that would open the same reply entry box, but with the selected post quoted already inside. Wouldn't that just involve sending a post ID to the server along with the button press, and having the server send back the same page, but with the text field having a default of the quoted post?
EDIT: Also, if you can't tell, nested quote tags break horribly. >_> |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #38 on Fri 21 Aug 2009 03:30 AM (UTC) |
Message
| Balanced tags are easy in LPEG! Quick, Nick, rewrite the forum software in Lua!
;)
| Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #39 on Fri 21 Aug 2009 03:55 AM (UTC) |
Message
|
Hanaisse said: It looks great. You really do a wonderful job with this forum and the support to the community who use it. :)
It had to be said again. And yes, this is a cool new feature I just had to play with it. |
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #40 on Fri 21 Aug 2009 04:29 AM (UTC) |
Message
|
Quote:
... nested quote tags break horribly...
It isn't that easy to get them right. They never worked before, anyway. One problem I have is that people may open the quote and not close it. Now if you do nested quotes with something fancy like tables, then the whole rest of the page can be thrown out.
At present quoting looks like this:
<p class="quote">
<b>Quote:</b><br>
... your quote here ...
</p>
And the style for the quote is:
p.quote {
margin-left:5em;
margin-right:5em;
background-color:#FFEBCD;
border-width:1px;
border-style:solid;
border-spacing:10px 10px;
padding:1em;
font-size:90%;
}
That basically indents and colours the text, putting a box around it. The individual linebreaks are done with <br> (not </p>) so they don't close the "quote" paragraph.
If someone can show me some html/css that successfully indents quotes, and is also resistant to the missing [/quote] tag, I will be pleased to use it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #41 on Fri 21 Aug 2009 04:50 AM (UTC) Amended on Fri 21 Aug 2009 05:01 AM (UTC) by Twisol
|
Message
|
Nick Gammon said: If someone can show me some html/css that successfully indents quotes
Use <div> instead of <p>. I tested using only the `.quote` CSS class and a simple nested set of tags. The <p> tags failed to indent, but the <div> tags worked perfectly. (I changed the class from `p.quote` to `.quote`, obviously)
Nick Gammon said: and is also resistant to the missing [/quote] tag
One of many solutions I can think of is counting the number of start tags versus end tags; if there's a mismatch, do something (strip the extra ends if there's too many, or add extra ends to the end of a post if there's too few). This would have to be implemented server-side, but I very much doubt that arbitrary HTML/CSS can fix itself if there's a lack of an end-tag. (Some exceptions apply in quirks mode - I know that <p> was often used without an end tag - but it's not arbitrary)
EDIT: Also, it just so happens that a Quote button would help us quoters, because otherwise we have to copy their post as we see it. And if it contains \[quote\] or some variation thereof, then even though their post is fine, we'd be copying the un-fixed version. I ran into that problem with the second quote in this post.
EDIT 2: Multiple indents at the 5em level is a lot of indenting. 2em looks pretty good to me. This is more of a taste suggestion than a feature suggestion, though. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #42 on Fri 21 Aug 2009 04:59 AM (UTC) Amended on Fri 21 Aug 2009 05:02 AM (UTC) by WillFa
|
Message
| I think the problem is the parser handling recursion of the [] tags... I might be wrong though.
As for the CSS stuff
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<Title>Test</Title>
<body>
<style>
.quote > .quote { margin: 1em; border: 1px solid black;}
.quote { margin: 3em; border: 1px solid black;}
</style>
<Div class="quote">Test.
<div class="quote">Test2
<div class="quote">Test3
</div>
</div>
</div>
</body>
</html>
Should give you an effect you want.
The > is the child selector. It reads "Any element with class quote that is a child of any element with class quote"
It is listed first so that the more general .quote rule doesn't have precedence over it.
And Twisol's right, The P tag doesn't handle nesting. The problem shouldn't be the user forgetting the [/quote] tag since the php page is handling the parsing of that, not the browser's html/css engine. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #43 on Fri 21 Aug 2009 05:02 AM (UTC) |
Message
| Will, all I had to do was change the tags to div's and remove the specific 'p' element selector from the class. I don't know what kind of CSS voodoo you have there, some kind of recursive beast? :D |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #44 on Fri 21 Aug 2009 05:03 AM (UTC) Amended on Fri 21 Aug 2009 05:09 AM (UTC) by WillFa
|
Message
| Yea, I have the .quote > .quote so I can change the margins on the inner nested elements... having 5em margins inside a frame with 5em margins leaves too much dead space. :)
RE: your Edit 2 above: That's the voodoo recursive beast. ;) | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
205,653 views.
This is page 3, subject is 5 pages long:
1
2
3 4
5
It is now over 60 days since the last post. This thread is closed.
Refresh page
top