Create new style based on subSilver

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
ngungo
Registered User
Posts: 13
Joined: Sun Nov 26, 2006 12:25 am

Create new style based on subSilver

Post by ngungo »

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

Pendulum2004
Registered User
Posts: 2
Joined: Mon Dec 04, 2006 1:30 am

Re: Create new style based on subSilver

Post by Pendulum2004 »

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.

Ectoman
Registered User
Posts: 192
Joined: Sat Dec 15, 2001 3:53 pm
Location: Denver CO
Contact:

Re: Create new style based on subSilver

Post by Ectoman »

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.

ngungo
Registered User
Posts: 13
Joined: Sun Nov 26, 2006 12:25 am

Re: Create new style based on subSilver

Post by ngungo »

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?

Uchiha Nick
Registered User
Posts: 397
Joined: Tue Jul 20, 2004 6:21 am
Location: Rotterdam, The Netherlands
Contact:

Re: Create new style based on subSilver

Post by Uchiha Nick »

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..
Image

FawcettUniverse
Registered User
Posts: 2
Joined: Sat Dec 09, 2006 4:12 am

Re: Create new style based on subSilver

Post by FawcettUniverse »

I need some help in that area, too. I'd like my message boards to match the rest of my website. :?

User avatar
DoubleJ
Registered User
Posts: 105
Joined: Thu Jan 13, 2005 4:19 pm
Location: The Netherlands
Contact:

Re: Create new style based on subSilver

Post by DoubleJ »

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.
DoubleJ - Blah

ngungo
Registered User
Posts: 13
Joined: Sun Nov 26, 2006 12:25 am

Re: Create new style based on subSilver

Post by ngungo »

Thank you so much DoubleJ. I will try it on the New Year holidays. Thanks again!

Silver9990
Registered User
Posts: 12
Joined: Thu May 11, 2006 5:36 am

Re: Create new style based on subSilver

Post by Silver9990 »

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...

User avatar
DoubleJ
Registered User
Posts: 105
Joined: Thu Jan 13, 2005 4:19 pm
Location: The Netherlands
Contact:

Re: Create new style based on subSilver

Post by DoubleJ »

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

Post Reply