Topic: How do I add a style?

Hello,
How do I add a style so punbb would see it? Only copying it to style directory doesnt change anything.
Best regards,
FlashT

Re: How do I add a style?

Give it it's own directory like this: forumroot/style/nameofstyle

Re: How do I add a style?

And its not there on style list.

Re: How do I add a style?

Steps to add your own style:

  • Make a directory with the name of your style;

  • Place all the files of the style to this directory;

  • Create the "<FORUM_ROOT>/style/<YOUR_STYLE_NAME>/<YOUR_STYLE_NAME>.php" file in the directory. This file will contain php code with links to your css files or some other things you need. For example, here is the content of this file for Oxygen style:

<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_cs.css" />
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie7.css" /><![endif]-->