Note: I am familiar with creating new style for 2.x
Task: I need a hint on howto create a new style (myStyle) then be able to switch between myStyle and subSiver.
1. Use ACP > Style
2. Create new style: myStyle
3. from: subSilver
4. submit
Now, what is next?
Do I have to copy/paste subSilver directory, and rename to myStyle?
What files in what style directory should I hack?
Thanks,
ngungo
Create new style based on subSilver
-
- Registered User
- Posts: 2
- Joined: Mon Dec 04, 2006 1:30 am
Re: Create new style based on subSilver
I think you need to duplicate the files then edit the config file for the style, and change the name and details there...
There are other people here better suited to answering this though.
There are other people here better suited to answering this though.
Re: Create new style based on subSilver
If you want to completely copy the style.. (but not change any html between subsilver and mystyle) you can do it via ACP. If you want to seperate the two and alter the html, you need to copy the files to a new style folder.... unless you just want to change the colors. You can do that via ACP and the built in CSS functionality.
Re: Create new style based on subSilver
Pendulum2004 wrote: I think you need to duplicate the files then edit the config file for the style, and change the name and details there...
Since the functionality of phpBB3 is so elegant, editing config file is kinda stone age aproach, would you agree?
-
- Registered User
- Posts: 397
- Joined: Tue Jul 20, 2004 6:21 am
- Location: Rotterdam, The Netherlands
- Contact:
Re: Create new style based on subSilver
ngungo wrote:Pendulum2004 wrote: I think you need to duplicate the files then edit the config file for the style, and change the name and details there...
Since the functionality of phpBB3 is so elegant, editing config file is kinda stone age aproach, would you agree?
don't know for sure, buttum.. asking and then answering it..
-
- Registered User
- Posts: 2
- Joined: Sat Dec 09, 2006 4:12 am
Re: Create new style based on subSilver
I need some help in that area, too. I'd like my message boards to match the rest of my website.
- DoubleJ
- Registered User
- Posts: 105
- Joined: Thu Jan 13, 2005 4:19 pm
- Location: The Netherlands
- Contact:
Re: Create new style based on subSilver
You can create a new style via the acp.
But a better way (in my opinion) is to completely copy the subsilver folder.
Then rename the folder.
Within this folder you will find the following files:
styles/yourstyle/style.cfg
styles/yourstyle/imageset/imageset.cfg
styles/yourstyle/theme/theme.cfg
styles/yourstyle/templates/template.cfg
in these files you can specify a name for the imageset/theme/template and the style. You can also add a version and copyright to it.
After altering these files, they should show up in your acp, ready to be installed.
And then you can start editing.
Note that the values of the CFG files are stored in the database, and with the images that means that if you replace an image with a new image with other dimensions you have to alter it both in your db and your cfg file.
Hope this helps out a bit.
But a better way (in my opinion) is to completely copy the subsilver folder.
Then rename the folder.
Within this folder you will find the following files:
styles/yourstyle/style.cfg
styles/yourstyle/imageset/imageset.cfg
styles/yourstyle/theme/theme.cfg
styles/yourstyle/templates/template.cfg
in these files you can specify a name for the imageset/theme/template and the style. You can also add a version and copyright to it.
After altering these files, they should show up in your acp, ready to be installed.
And then you can start editing.
Note that the values of the CFG files are stored in the database, and with the images that means that if you replace an image with a new image with other dimensions you have to alter it both in your db and your cfg file.
Hope this helps out a bit.
DoubleJ - Blah
Re: Create new style based on subSilver
Thank you so much DoubleJ. I will try it on the New Year holidays. Thanks again!
-
- Registered User
- Posts: 12
- Joined: Thu May 11, 2006 5:36 am
Re: Create new style based on subSilver
I've tried to copy the directory, download subsilver and rename everything, ect... and i still can't get it to work, every time i change something the images don't load...
- DoubleJ
- Registered User
- Posts: 105
- Joined: Thu Jan 13, 2005 4:19 pm
- Location: The Netherlands
- Contact:
Re: Create new style based on subSilver
Silver9990 wrote: I've tried to copy the directory, download subsilver and rename everything, ect... and i still can't get it to work, every time i change something the images don't load...
THe config files are saved within the database.
This includes the info of the images.
Make sure you edit both the database and the config files if you alter an image.
DoubleJ - Blah