chacmool wrote:Don't like the scrollbars though...
I added them because with pre, it doesn't wrap by default. However, you could possibly tweak it with the white-space property.
chacmool wrote:I don't like the "double" black line there ... add [CSS] ... for punpost. I don't like the "double" black line there.
Notice how easy it would be to modify the design? Even just removing the border. You don't have to worry at all about knowing the inner PHP code of PunBB at all. The only thing better would be the mod that ps21 is making, so we don't have to worry about duplicating our efforts in modifying the HTML too.
Auron, for the hack-related article, I've already read it. Here's a quote
These two hacks are safe. Netscape 4 and Explorer 5 Mac are not being developed any more. What we have now are, for better or (usually) worse, the definitive, final versions of these browsers. There will never be a next version that could make a mess of your pages.
Hacks against dead browsers are safe, but hacks against the living aren?t. None of them. Ever.
IE 5 and 5.5 are dead. IE 6 has already fixed the CSS bug in "strict mode" (See MSDN article below). When he's talking about CSS hacks, he means ones like this: CSS hiding hacks chart (Dive Into Mark)
For the browser support chart from QuirksMode, I've seen that also. I suggest you re-read the page and look for the paragraph that mentions "Quirks mode" vs "Strict mode" ... With browsers in "strict mode" there's much better CSS support than in "quirks mode". But he only tested for "quirks mode".
ps21 wrote:Actually there is a far simpler way to make major changes to the look of PunBB and to make it skinnable without major code changes. ... The idea to be able to shuffle all the boards major elements around, set styles for a lot more individual elements and distribute quite advanced skins which consist simply of modified versions of main.tpl and a stylesheet. In other words, many of the advantages of a full templated skinning system without the performance overhead. You even end up with less code since a lot of the duplicated html from the various .php files is put in main.tpl only once. ... all those tables except for pun_main could easily be replaced with CSS. [Code Removed]
Sounds cool. If you did something like that, it might make it easier to have both worlds, a table-based layout and a CSS-based one, for those with a preference. However if you want to make PunBB more attractive to design folks, swapping to a CSS-based layout would be a dream come true. Then with knowledge of only CSS, or just a modern WYSIWYG editor, you can edit the layout entirely, no PHP or even HTML knowledge required ...
ps21 wrote:BTW. There is actually a BBS system called ProxyBB which is tableless and which is XHTML 1.1 strict compliant. I got the details from Forum Insider. A link to the board is below but I warn you, it breaks in IE5. Strangely enough, it breaks IE5 in pretty much the same way as Spots re-coded PunBB does.
http://forums.proxywiregen.com/
I knew there'd be a CSS-based BBS somewhere ... and the reason why it breaks is because of a mis-interpretation of the CSS specification. See "CSS Enhancements in Internet Explorer 6" [MSDN Article] for details. This is why I'd need the box model hack to fix it for IE5 and IE5.5, but don't need it for IE6.
ps21 wrote:... simply using CSS to mimic an existing table based layout seems to be silly. ... Much better to design a CSS based BBS from the ground up with a whole new approach to BBS design. You are also much less likely to encounter cross browser problems that way since they could be eliminated in the design itself rather than having to be coped with by hacks as an afterthought. A more practical approach for PunBb could be a hybrid solution. Remove tables for those elements that don't need them such as the header, spacers and probably the footers. Reduce the nesting of tables for the forum itself particularly where there only funciton is to create a border but keep the main output from the database in tabled.
Yes, it may seem silly at first glance, but once I'm finished, as Kennel mentioned, you'll be able to dramatically change the look of the forum just by changing a CSS file, without further touching the code at all. As for why I'm emulating it, it's so that you guys will take a CSS-transition seriously.
Personally, I find the table-based grid look to be very restrictive and I feel that as a web designer, there's an innovation in forum design coming, but won't happen until programmers learn more about web design and specifically implement a CSS-based layout with separation of code, both PHP and HTML, and CSS layout files, so that true web designers can play and tweak designs. Imagine CSS Zen Garden for PunBB? You can even do javascript-like image hovers and drop down menus, even tabs, with just CSS. Read alistapart for details.
Also, of course if you design a CSS style from scratch it will have less cross-browser problems, because you can avoid the box model error. However if you want pixel-perfect layout in IE5 with CSS, you really have to use the box model hack, there's no way around it. (Ask anyone) It won't change, but it's no excuse not to use CSS ...
Anyway, I'll keep working on it. When I get something final, I'll post it here, then try modding PunBB 1.1 for it ...