Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: The Large Portion on March 14, 2004, 10:04:38 AM

Title: New template system
Post by: The Large Portion on March 14, 2004, 10:04:38 AM
By god i'm confused!  Hehe got the forum nicely installed and was hoping to change the theme to something like what the main site is...but I haven't got a hope in hell :(

In the future, can we expect a tutorial or some sort of write up for how to create your own template?  I'm sure this way is probably much easier but to the untrained eye it looks sooo complicated!

Title: Re: New template system
Post by: Redeye on March 14, 2004, 10:07:02 AM
Join the club  :(
Title: Re: New template system
Post by: bostasp on March 14, 2004, 10:07:37 AM
As far as I know, they are writing quite a bit of documentation for everything.

There is a little "tutorial" in this thread though: http://www.simplemachines.org/community/index.php?topic=3194.0
Hopefully that can be of some use.
Title: Re: New template system
Post by: The Large Portion on March 14, 2004, 10:12:27 AM
Some good and handy information there, cheer bostasp :)
Title: Re: New template system
Post by: Redeye on March 14, 2004, 10:14:39 AM
I've been playing around and this is the best advice I can give - ***I've no php knowledge*****

Make a copy of index.template.php.
Start looking through the copy and when you spot something that actually looks like english change it radically. I'm going through it and changing colors to bright red (#FF0000)to see what effect and where they show up. It's slow but effective. Just make notes of what changes.
eg:

298    <div style="background-color: #FF0000;"><div style="padding: 2px 30px;', $context['browser']['needs_size_fix'] ? ' width: 100%;' : '', '">';

This seems to be the background for the main index.

Best of luck.
Title: Re: New template system
Post by: The Large Portion on March 14, 2004, 10:20:39 AM
Lol, I've just read your other post and I have to agree with you - whilst you might be able to change more in SMF, the basic template system of Yabb SE was far, far easier to admin than this beast!  Still, this'll be a fun challenge to try and work out...time to get the ole' PHP for dummies book out :D
Title: Re: New template system
Post by: bostasp on March 14, 2004, 10:22:33 AM
Heh, I think you're right when you call it a "beast"!

The best way to learn it is just to play around :)
Title: Re: New template system
Post by: Ben_S on March 14, 2004, 10:45:19 AM
The YSE system may have been easier, but you couldn't do anything with it apart from change colours and the overall table width, which meant virtually all YSE boards looked the same.

The new system is sooo much better.
Title: Re: New template system
Post by: Peter Duggan on March 14, 2004, 12:17:56 PM
Quote from: The Large Portion on March 14, 2004, 10:04:38 AM
In the future, can we expect a tutorial or some sort of write up for how to create your own template?

Quote from: bostasp on March 14, 2004, 10:07:37 AM
As far as I know, they are writing quite a bit of documentation for everything.

So which came first, the chicken or the egg? ;)

Documentation has been planned for months, but there was limited point in documenting what was still a rapidly changing series of betas with substantive changes being made on a regular basis. Now that we're into public beta and aiming for RC and final, things are starting to happen on the doc front, but please remember that we're still talking *beta* so it's not all going to be ready overnight!