View Full Version : How to add new style sheet?
hexonxonx
12-12-2005, 05:38 PM
Can you give me instructions on how to add new style sheets in the admin panel so members can use them?
Thanks
natio :: phpFox
12-13-2005, 02:13 PM
If you want to create a new theme and for it to be added in the admin panel,
Follow these steps: ( Lets say the name of the theme is phpfox )
1. Create a folder in the "/inc/css/" folder and name is: phpfox
2. Create a index.php in that new folder. The index.php will be the main css file.
You can look at other folders in the "/inc/css/" to work off and understand what is needed in this file.
3. Create a info_css.php in the "/inc/css/phpfox/" folder.
In that file you will have to add this:
Content visible to registered users only.
This is used to link this css style to a html them, which is called "new"
4. Now create a folder called "phpfox" in the "/inc/img/" folder.
Any image used in the phpfox theme should be placed in this new image folder.
By default you should have 6 images in that new folder which you can copy from any of the other styles. These 6 images are used on for example the main page and when rating images. Here are the 6 needed images:
1. button_back.gif
2. button_fw.gif
3. button_pause.gif
4. button_play.gif
5. line3.gif
6. line5.gif
You can take these images from another style and simply copy them to the new phpfox folder you created in the "/inc/img/" folder. Which you can then open them up in like photoshop and change the colors to fit your new theme.
That should be it, once that is all in place you can then go to your admin panel and go to "Install Style" and you should then find the new style ready to install.
hexonxonx
12-13-2005, 03:03 PM
Great that works! Thanks!
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.