Jump to content
  • Advertisement
Sign in to follow this  
sathenzar

PHP templates and strings?

This topic is 4811 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone, I was wondering what would be the best way to go about applying a users template to a website would be. For ex. let's say I have forums. If I want my users to be able to add their own template that maps out over the webpage. What would be the best way? Thanks in advance. [Edited by - sathenzar on September 12, 2005 10:23:46 PM]

Share this post


Link to post
Share on other sites
Advertisement
If I'm not being specific enough, I mean like how to I take a template they specify and load it so it will still function? Like phpBB has template ability. How do I achieve that? Thanks in advance.

Share this post


Link to post
Share on other sites
I would do something like this:

Design the site so that the appearance is completely controlled by CSS. Then to change the layout of your page you only need to tweak the stylesheet. Once you have that you can create a set of stylesheets. Add a 'User stylesheet' field to the table in your database that describes your user which holds which of your set of stylesheets the user has chosen to use. Finally, when you output the page, selectively link whichever stylesheet the user has chosen.

Share this post


Link to post
Share on other sites
Thank you, I had thought of doing somthing to that effect.I didn't know the exact way of going about it. But thanks for your input. You just cleared the path on how I'm going to do this.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!