TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 30, 2024, 04:53:04 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 147
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 123
  • Total: 123

Theme Tutorial

Started by nanbread, May 06, 2005, 12:42:37 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

nanbread

I did a search for this but couldn't find any results. So, would it be possible for someone to write a little tutorial about making themes for TP?

IchBin

That would require A LOT of work. I hope someone will do it.

Bjørn

Basically it just making a theme for SMF. ;) The added sideblocks and article template comes "afterwards" and draws upon the SMF theme.

But they don't have to. I plan to make some examples of layouts/tempaltes that can either be a normal "portal" look, like BlocZone - or look like a site which seem to have the forum as just a section, not revealing that it IS in fact the engine. ;) Its all in the templates.

The one thing that is missing for that to be possible, is section-specific blocks. So that a block can be on a single page only, and that page actually seem like a stand-alone page with some info drawn into it.

I guess more like an CMS than a portal.

....but back to your question about tutorials on making themes..I will try to do some , but as IchBin says, it does take some work to write up.

nanbread

Yeah I totally agree with the amount of work. Right now the only part that I don't really understand is how the side blocks are added and what file you have to edit to add them... could someone point this out to me?

Something a little easier would be for someone to create a blank template that people can just add on/modify. It would make the learning process a lot easier especially if you know how the regular SMF theming system works.

Thanks.

IchBin

That wouldn't be too bad of an idea. Make like a default Tinyportal template that you can show examples on what goes where and how to change specific things. Although at the moment, Bloc is a little busy with the new release I'm guessing. ;)

Kindred

Actually, that part is pretty much already done. :)

In the TinyPortal apckage, look for the .MOD files.

Anything that adjusts "Themes/default/XXX.template.php" needs ot be done to any theme that you want to TP....

That's what I did for the Sitra Theme
(of course, I also had to move some things around beause the Sitra theme was designed a little oddly to begin with)

but, seriously, it's just a matter of looking through the .MOD file and reviewing what template files are changed in what way...

IchBin

Yes but how do your write the rest of the theme? That's my point. I know how to convert a theme for Tinyportal I did some of Blocs themes conversion for him. I'd just like to have a place to refer to that says where and what code needs to be in all the different template files like board.index, template.index, message.index etc.

Bjørn

Thats a major task..but not impossible.

IchBin

I realize that. That's why I don't expect you to do it. :) It would be nice if all the themes for SMF where very well documented with comments. Bloc you do a pretty good job on this keep it up.

Nokonium

For some just changing colours may be enough, knowing style controls what bits and also where colours are set in templates what and where. You have to start somewhere and not all peeps who do their own themes want to modify templates, me included. I understand what I'm doing with style sheets but not php.