strunk
Forum Replies Created
-
Forum: Plugins
In reply to: Thumbnail HTML addition for upload.phpI found one small typo in this version of
upload.php
. It writes its link like this:<img/>
, so if you try to validate your page, you getend tag for
that is not open. To fix this, just replace line 224 with this modified line:
$piece_of_code = "This code will display the thumbnail, linked to the full-sized image:
"."This code will display the full-sized image:
<img src="". get_settings('fileupload_url') ."/$img1_name" alt="$imgdesc" />";
Best,
S.Forum: Fixing WordPress
In reply to: Wrong month in quicktag.js onlyAwesome, worked like a charm.
One other thing I noticed that someone might want to change at some point is that times are given without leading zeros; for example nine minutes and seven seconds past five PM displays as17:9:7
.Forum: Plugins
In reply to: Thumbnail HTML addition for upload.phpAs a latecomer, let me also say that this is an awesome and very useful contribution. Thanks!
S.Forum: Fixing WordPress
In reply to: Wrong month in quicktag.js onlyThat must be it. It seems odd to me that months would be zero-based and days wouldn’t . . .
Anyway, would someone mind posting and telling me how to add one to the number returned by the function, since I know no JS?
Thank you,
S.Forum: Fixing WordPress
In reply to: I’m proud of this quicktag trick!OK, I got that to work. Thanks for the good tip. I was stymied a bit by not realising that my browser caches .js files as well as .html files, but it all worked out.
Forum: Fixing WordPress
In reply to: I’m proud of this quicktag trick!Shucks. Well, I’ll get back to work on it. Thanks for the reference.
Forum: Fixing WordPress
In reply to: Can I insert text with CSS?OK, so you can insert a variable into the
:before
pseudo-element, as long as it’s a variable that is specified inside the HTML tag you are styling with:before
.
Here’s my CSS:
ins:before {
content: attr(datetime);
}
And here’s my output:2004-7-25T13:29:52-4:00 Now with bonus Velvet Underground reference!
If I’m reading the W3C spec right, I can have either a variable (one variable) or text, but not both. Also, I wonder why the
ins
tag is returning last month instead of this month? Anyway, that’s pretty neat.
Here’s the W3C ref:
https://www.w3.org/TR/REC-CSS2/generate.html#contentForum: Fixing WordPress
In reply to: Can I insert text with CSS?OK, it looks like it can maybe be done with the
:before
pseudo-element:
https://www.webmasterworld.com/forum83/3891.htm
THat would be pretty cool. I don’t know if there’d be a way to insert a variable corresponding to the date, but it looks like I could at least insert “Update–” or something like that.
Here’s a ref from the W3C:
https://www.w3.org/TR/REC-CSS2/selector.html#before-and-afterForum: Fixing WordPress
In reply to: Can I insert text with CSS?Yeah, I would guess that maybe this is something to be done with PHP rather than with CSS, since CSS is supposed to be presentation, seperated from content. But while I know some CSS, I know no PHP.
Forum: Fixing WordPress
In reply to: What does <ins> do?Awesome. I’ve seen that usage of del tags for sure.
By the way, I had to take the braces off of “ins” so it wouldn’t get parsed. I can avoid that by using backticks, right? If so would someone . . . umm . . . please tell me where to find the backtick on my keyboard? I’ve found the pipe and the tilde, but I swear I can’t find the backtick.Forum: Fixing WordPress
In reply to: Tabs or whitespace in entries??This will work too, though it’s a bit kludgy:
Surround EACH LINE with <pre></pre> HTML tags.
Here’s an example. Instead of typing:
Hi there!
type:
<pre> Hi there!</pre>
You can’t just surround an entire multiple-line chunk with one <pre></pre> tag because WP automatically writes tags at each line break, and your XHTML won’t validate with “preformatted” tags surrounding “paragraph” tags. There’s probably a more elegant way to deal with this by altering the CSS, but I’m not sure what it is.Forum: Fixing WordPress
In reply to: Tabs or whitespace in entries??This will work too, though it’s a bit kludgy:
Surround EACH LINE with <pre></pre> HTML tags.
Here’s an example. Instead of typing:
Hi there!
type:
<pre> Hi there!</pre>
You can’t just surround an entire multiple-line chunk with one <pre></pre> tag because WP automatically writes tags at each line break, and your XHTML won’t validate with “preformatted” tags surrounding “paragraph” tags. There’s probably a more elegant way to deal with this by altering the CSS, but I’m not sure what it is.Forum: Fixing WordPress
In reply to: Tabs or whitespace in entries??Hi,
Did you ever get an answer to this? I’m having the same problem–I sometimes post code snippets, and indentation is very helpful there.