QUOTE(alex1985 @ Jun 10 2008, 05:48 AM)

Hi, do you know any tutorials that is somehow is dedicated to creating kind of templates for your web-site?!
There are loads of ways to make a template for your site, depending on what sort of template you are looking for. You can go from a simple HTML/CSS page with PHP just used to add dynamic content, to a full-blown template engine, such as Smarty or the one included in the Zend Framework. Or, you can go for something between the two, sort of writing your own mini template engine specifically for your site. Until you know which you want to do, it is very hard to recommend tutorials.
QUOTE(alex1985 @ Jun 10 2008, 05:48 AM)

Let's say when a user goes to his or her profile there will a button which is called "Choose Template", for instance, after that the templates of your web-site stored on your server, will become active. This is the first point.
Store in the database a list of themes, along with the information that allows you to load each one (the path to a CSS file for example). Then, along with your user data, store the user's preference for a theme. Then, in your template, look up what theme the user wants, and load the relevant files.
QUOTE(alex1985 @ Jun 10 2008, 05:48 AM)

The second thing, how can I make the templates generally? With respect to font, alignments, buttons, other graphics or even hide some buttons or functions of the web-site?
Font, alignment, images and all page layout factors are controlled by CSS.
Hiding buttons and features would use PHP and some sort of permissions system to determine who has access to which parts of the site.
Reply