On 2002-01-24 17:36, PurpleSmurf wrote:
mirex: are you goging to View->Source? cause thats the html. the spolier code is in the php files, it's something like this "http://forums.qhimm.com/includes/bbcode.php" or maybe .tpl. and i don't really know the phpBB 1.4x file structure and i'm sure it's in a different area. oh, and only qhimm and sain have access to those as far as i know. oh and don't goto to that it won't show you anything.
Here's how phpBB2 works.
phpBB2 uses .tpl(template) files to include it's HTML, the files are included into the generated HTML file so you end up downloading msg text + HTML(template) together everytime you view a page.
Here's how things work here on Qhimm's Forums:-
We run a very strange version of phpBB here

Certain common HTML information is stored in .JS files so you don't end up downloading them everytime you decide to view them. (JS files are cached)
You won't notice the advantage of this if you view just one page. In fact, just viewing one page might make you d/l more than needed.
I use this method to improve on the current gzip compression method. Since the board "compresses" information across many pages instead of a single one, you save download time.

In an ideal situation, all HTML is stored into JS files, so you only d/l the msg data. I haven't found the time to do that yet though, only a small amount of html uses .JS files at the moment.

The styles are stored in a .CSS file.
Spoiler tags, code tags, etc are stored in PHP files which in turn parse the message BEFORE it is downloaded. Therefore, what you see has already been parsed on the server.