Add to Google

Template Chooser?

Pages: 1, 2
free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Template Chooser?

alex1985
Hi, do you know any tutorials that is somehow is dedicated to creating kind of templates for your web-site?!

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.

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?

Reply

kobra500
Well I would assume the PHP include funtion has something to do with it which I suppose would change the look of the site whilst keeping the text the same. I don't know of any tutorials but you will probably find some here [HERE]

Reply

alex1985
Thanks, but not really useful!!! I need only the good and trusted tutorials that I can rely on them and follow to expand my knowledge of PHP language.

Reply

Live-Dimension
This is an interesting prospect, and I played with it for quite some time. In the end, I realised that most people won't stay long enough to change themes so it wouldn't matter so much.

There's a few ways to do it. I went and made a page, then put php include tags everywhere. For example,
CODE
<?php include ("pages/news.php"); ?>
<?php include ("pages/home.php"); ?>

These contained the raw data for the pages. Using variables in the url, I was able to change theme and page according to what the user wanted.

Reply

gogoily
Well, lots of forum codes got this function, you can read their PHP codes to figure out.

Reply

alex1985
Its not really the right one!!! Any more replies?

Reply

rvalkass
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

alex1985
Wait, many templates are actually based on CCS. Do you know anything about this issue?

Reply

alex1985
Any thoughts so far?

Reply

rvalkass
QUOTE(alex1985 @ Jun 11 2008, 09:46 PM) *
Wait, many templates are actually based on CCS. Do you know anything about this issue?


I presume you mean CSS? CSS stands for Cascading Style Sheets, and they determine the look and position of HTML elements on screen. Such things as colour, width, height, fonts, etc. I suggest you search for some CSS tutorials to learn how CSS works, and makes your templates much easier to work with.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Recent Queries:-
  1. php scripts template chooser free - 27.68 hr back. (1)
  2. "template chooser" smarty - 918.47 hr back. (1)
Similar Topics

Keywords : template, chooser,

  1. [php]diffrent Type Of Template [id] With Includes ;)
    (13)
  2. Php Template Class I Started
    and a good way to see how to fail template class (1)
    Althought it works, and maybe some users can even use this class for some simpler websites, this is
    not a good way to create class. I cant really explain why, and i'm publishing it so maybe people
    with more experience in template design can help me figure out how to create PHP templates. Looking
    forward for your answers. some of the variables and directories are in croatian, but i don't
    think that matters when you look at with programmers eyes. First my index.php file looks like
    this... CODE <?php     include ("includes/showSiteClass.php"&#....
  3. Error With Joomla Template
    cant find function (1)
    Hello! I am working on my template in Dreamweaver and i am using joomla extensions for
    dreamweaver! When i start my page with joomla stand alone server(jsas) i get this errors on the
    bottom of the page! QUOTE Warning:
    mosloadcomponent(w:/www/Joomla/components/com_banner/banner.php) : failed to open stream: No such
    file or directory in w:\www\Joomla\includes\frontend.php on line 66 Warning:
    mosloadcomponent(w:/www/Joomla/components/com_banner/banner.php) : failed to open stream: No such
    file or directory in w:\www\Joomla�....
  4. Tpl (template System) And Php
    Question (2)
    Hi all i search about tpl and php i want make and learn how can use tpl (template system ) in php do
    you link or tutorial ? plz post here or if you know plz paster here simple sample about php and tpl
    thanks more Proper spelling is required as a Trap17 member. Refrain from using slang spelling. ....
  5. Name The Customized Template
    for my look and feel (12)
    i have a easy to use and easy to expand php look and feel but dont know what to name it. It allready
    has a great folder structure and some ok tools. Also you can make your own extensions and change
    allmost EVERYTHING. I have bg images, bg colors, nice look but it uses tables. i have it currently
    working in firefox and IE, the only good ad free browsers. Original title "I Need A Name." What
    you need is better topic title. This is the only caution note. ....
  6. Extra Page With Same Template
    (0)
    I've installed Coppermine (online photoalbum manager) on My Webpage but i would like to add an
    extra(s) page with other content. I mean, building an extra page with the same template/theme in in
    the site. I guess some scripts have to be copied into a new page, but i don't know which ones...
    I'm not familiar (enough) with coding.. The menu,backgroundcolor, css and footer should be the
    same.... I hope someone can help me with this, thanks in advance! /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> (spread the knowledge /wink.gi....

    1. Looking for template, chooser,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for template, chooser,

*MORE FROM TRAP17.COM*
advertisement



Template Chooser?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE