These two bytes may not matter to you...

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: These two bytes may not matter to you...
« Reply #150, on October 16th, 2011, 01:15 AM »
Need to answer post above...
A quick one though.

The index template declares this in the header: <meta charset="utf-8">
However, SMF/Wedge already specifies the charset in the *HTTP headers*. So I boldly tried to remove the line and... It worked. However, when validating the page, while it's seen as valid, it adds a warning that I should be specifying the charset in the document itself, to help people view the files offline (save to disk).
It absolutely makes sense, I'd say. But I still don't see the point in having the charset specified twice.
So I'm wondering... Wouldn't it make sense to just skip specifying the charset in the http headers, and focus on the document itself?
The only drawback, AFAIK, is that anything before the charset declaration might be seen as ISO, but then again, I used to have '©' in the copyright line, and it wasn't correctly output, even though the headers declared the charset correctly. This is why I rewrote it to use (c) instead. So at this point, I'm not sure declaring charsets in http headers has any point... (?)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: These two bytes may not matter to you...
« Reply #151, on October 16th, 2011, 01:28 AM »
Can we rely or otherwise ensure that the file headers are sent correctly? If we can rely on the header being correct (like we set it ourselves, for example) then we can strip it from the file, at least in theory.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: These two bytes may not matter to you...
« Reply #152, on June 10th, 2012, 05:09 PM »
(Crap, I'm unable to find in the admin area where I can set up, locally, the need to confirm my password when accessing the admin area... I tried to search for 'admin', but it didn't find anything...)
Quote from Arantor on September 15th, 2011, 01:47 AM
My understanding was that topicseen is an older item, legacy from 1.1 or somesuch, but I have no idea offhand if that's still the case or not.
I'm trying to figure out what topicseen is for, and it just doesn't make sense...
Here's a little anecdote of what I had today.
A two-page topic on my local install, all posts marked as unread. Back to the parent board. Clicking the New icon. Getting to the page. Notice that the URL doesn't have "?seen" in it (unlike the homepage stuff). Reload page: the first post still gets the 'new' icon... (As long as I refresh the page.) It doesn't happen here, it's probably due to a stat bug in the database. I just did a recount operation and now it works as expected. Still, that's interesting: there's a minor bug in Wedge that causes num_replies to be wrong (possibly when using post moderation or ignoring users or reverse order for posts), and having num_replies wrong will break a lot of things... (including hiding any posts that are after the recorder number of replies...)

Anyway, that's not what my post was about.
Whether I use the messageindex link or the homepage link, the results are the same. Internally, it acts as if it had a 'seen' variable in the URL. So, then, what's the point in indicating the variable at all...? It's a waste of space...
Perhaps it's just the same with boardseen, I don't know.
We certainly should consider accessing the boardseen cache thoroughly when posting. We've been discussing this yesterday somewhere else -- it just doesn't make sense at all, this feature in SMF... And if the Wedge authors don't understand it, maybe it needs some more work.
Re: These two bytes may not matter to you...
« Reply #153, on June 10th, 2012, 05:11 PM »
Also... Woohoo, bug?
Found this in the post below the one I just replied...
It doesn't have the single quotes. But they're definitely in there internally. It also shows that way in Preview mode...
Quote from Nao on November 7th, 2010, 01:03 PM
Bienvenue dans l'installateur du Forum Simple Machines !
Quote splitterI see what you mean now I've seen it, very cleverotallyrandomcontentthatwilldefinitelyoverflowfromthisbox.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: These two bytes may not matter to you...
« Reply #154, on June 10th, 2012, 05:14 PM »
Quote
(Crap, I'm unable to find in the admin area where I can set up, locally, the need to confirm my password when accessing the admin area... I tried to search for 'admin', but it didn't find anything...)
As mentioned months ago, it was disabled. Add a new value to the settings table, securityDisable, and set it to 1. Production servers should not have this value installed.
Quote
We certainly should consider accessing the boardseen cache thoroughly when posting. We've been discussing this yesterday somewhere else -- it just doesn't make sense at all, this feature in SMF... And if the Wedge authors don't understand it, maybe it needs some more work.
Let's put that statement into context in case anyone thinks there's arrogance about. I would say at this point we know the code at least as well as its original authors do currently. Much of the underlying logic is years old and that its original authors have probably forgotten how it works by now, so we're picking it apart after the fact. And we have no definite understanding on that part, it's basically magic.

I agree that the board-is-read stuff should be better cached, but I'm not entirely clear right now exactly best to achieve that.

At what point does a board become entirely read? When there are no topics with unread items in?
Quote
Also... Woohoo, bug?
Found this in the post below the one I just replied...
It doesn't have the single quotes. But they're definitely in there internally. It also shows that way in Preview mode...
Why am I getting the feeling it's related to not converting quotes to their entity form like they used to?