PDA

View Full Version : Streamlining theme?


Aimless
December 17th, 2005, 10:41 AM
I just took a look at the code for a random page, and it looks like there's a lot of room for optimisation. At the very least it should be possible to put the javascript code in a single .js file so that it can be cached on the user's computer, meaning that code wouldn't have to be downloaded from the server everytime the user looks at a thread.

Then there's much one can do with stylesheets. For starters, it'd make the pages even smaller, and CSS files are also usually cached on the user's comp :) From what I can tell, not a single member of NiH uses a browser that's so old that it can't support external .js and CSS files. So, hmm.

Thoughts? :o

Tundra
December 17th, 2005, 09:49 PM
Okay, not very professional of me, but my first thoughts in regard to that are "... wha?"
my next response is, Chris is really rather experienced with these things, and i'm sure there's a reason why he hasn't done it, and that he's heard of this sort of thing.

I'll tell him about this thread though.

bbcentral
December 17th, 2005, 10:06 PM
Hi there!
I agree, the forum could be optimised more.
I hadn't even noticed that the Morpheus theme used embedded javascript, it's bad programming on their part.
I've just moved all the javascript to an external file to improve the loading time of the site.
The Morpheus template is already using external CSS files, I don't think there's anything else I can do to improve that.

Aimless
December 17th, 2005, 10:25 PM
Thanks! :)

And yeah you're right, the only styling left in the source was for padding various elements. They could be put in the css file too but it's no biggie :)

*dances* I like the way you work it :o

Aimless
December 17th, 2005, 10:43 PM
I've been looking through the phpbb mods db... d'you by any chance know of any mods that can rpelicate the new vB style quick-reply? It's a lot like the system used on deviantart. Basically it means that when you use the quick-reply box, it won't take you to any new page, it'll just add your post 'neath the last post. Not sure if it uses iframes or some arcane dhtml nonsense, but yeah.

You can see it in action here: ataricommunity.com/forums/forumdisplay.php?s=&forumid=188

For a great deal of threads, most of us only use the QR box, which would make the notification page we see after replying kinda redundant :)

If you do post on Atari btw be sure to check out the awesome edit function! :) PHPBB should offer similar functionality out of the box soon enough i guess :)

Aimless
December 17th, 2005, 10:45 PM
Crazy bug... topics stay marked as "unread" even after they've been read :o

Aimless
December 17th, 2005, 10:49 PM
Hmm, so I clicked the log-out link and while I wasn't logged out at all, it did seem to fix the unread thread problem :o

bbcentral
December 17th, 2005, 10:55 PM
I can't see what it is because I don't want to register for the site (btw what clever person decided to show so many posts on a page? It took 35 seconds to load the entire page, one post at a time! :P)
My guess is it's using AJAX, a combination of Javascript and XML. It's quite complicated and as far as I know nobody has written a mod like that for phpBB yet.
As for the CSS, I'd prefer to leave that as it is, as modding the forum is quite a big job and I really hate doing it, because when it comes to upgrading to the new version I waste a a lot of time. Right now I'm in the middle of upgrading to version 2.0.18, and I've been at it solidly for the last 3 hours :)
I do like some of the features of VBulletin, but I refuse to give up 3 day's pay to buy it :)
Any bugs that you may be experiencing are more than likely due to the site being in the middle of the upgrade.

Aimless
December 17th, 2005, 10:59 PM
Yeah it prolly is AJAX :o Everything looks fine apart from crazy unread topics, keep up the awesome work dude =)

You can't fail. You're on a mission from glod, right :o

Btw, is this at all useful?

http://www.phpbb.com/phpBB/viewtopic.php?t=125251

EDIT: Also, CC always has lots of topics on the thread index page, we kinda made them do it :o

Aimless
December 17th, 2005, 11:16 PM
Par'n the multiple posts, but i just found out they seem to be working on an ajax mod for phpbb... :o :o

http://www.phpbb.com/phpBB/viewtopic.php?t=295604

http://www.phpbb.com/phpBB/viewtopic.php?t=313259

:) more great things to come!

cat_lover_4113
December 13th, 2006, 08:00 AM
Okay, not very professional of me, but my first thoughts in regard to that are "... wha?"

:lol: Don't worry Tundra. I didn't really get much of the post either :D