SMF Development > Feature Requests
Next SMF (2.1+)
Arantor:
A WP template is basically a HTML page. A demonstrative (but not accurate) example would be:
--- Code: ---<html>
<head><title><?php the_title(); ?></title></head>
<body>
<?php while(in_the_loop()) { ?>
<div>
<h3><?php post_title(); ?></h3>
<?php post_content(); ?>
</div>
<?php } ?>
</body>
</html>
--- End code ---
This gives you great customisation but it can't cope with complex intermixes of content (like in SMF). Oh, and it's a security issue, too.
IchBin™:
Escaping back and forth like that in PHP drives me bonkers. lol I think it makes the code look very ugly. Just my $.02.
Labradoodle-360:
Meh, not only is it ugly, but it's not as efficient to write imo.
emanuele:
It depends.
With such kind of style you don't have to deal with escape single/double quotes for example, you just put the block in and that's all.
When I'm giving support and I see someone that doesn't grasp the escape concept I start suggesting this kind of coding style (well in fact I did it only a couple of times... :P).
Zagdul:
--- Quote from: IchBin™ on May 22, 2012, 09:43:34 PM ---Escaping back and forth like that in PHP drives me bonkers. lol I think it makes the code look very ugly. Just my $.02.
--- End quote ---
Yeah, however SMF's current template system is far more complex than it needs to be. Part of the issue with it's development I feel is that it as a content management and forum system, it's far more clunky than other solutions out there.
Don't get me wrong, I like SMF and have been using it for years. However, it's one software I've always been afraid to update solely on the fact that it's mod system requires so many file writes that my entire site would break for 'security' improvements.
I think that whatever SMF's future is, I hope that it takes better advantage of a more modular template system that is more intuitive. This will allow for designers to not need to know/understand php and just focus on creating beautiful sites. It would make documentation simpler and more legible for the weekend coder to write plugins that interface. As it stands, a lot of simplification can be done to make Simple Machines, more... simple.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version