How to create a style?

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Ideas Centre
Locked
User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

How to create a style?

Post by Stoker 4.0 » Fri Jun 06, 2014 2:59 pm

Hello,

Just taking a look at 3.1 and was wondering how to create a style for this version?
Cant find any documentation on this.

User avatar
PixelFool
Registered User
Posts: 200
Joined: Mon Mar 04, 2013 10:54 am
Location: Australia
Name: Brad Veryard

Re: How to create a style?

Post by PixelFool » Sun Jun 08, 2014 9:31 am

It's the same as previous versions, minus the imageset, so go to root/styles copy and paste prosilver rename the folder to whatever you want it called, then edit all the .cfg files under that root.

User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: How to create a style?

Post by Stoker 4.0 » Sun Jun 08, 2014 9:41 am

Thanks.
What about adding a credit for the style? How is that done?

nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: How to create a style?

Post by nicofuma » Sun Jun 08, 2014 9:45 am

The major difference is about the inheritance: you can inherit an other style (called A) and redefine only a few templates. But you can also create a style called B which inherit A (and so prosilver) etc...

For tve credits it didn, it changed: edit the style's config file
Member of phpBB Development-Team
No Support via PM

User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: How to create a style?

Post by Stoker 4.0 » Fri Jun 20, 2014 5:41 pm

Thanks for your answer but editing the style config file doesnt make the credit line to appear in overall_footer.html?

User avatar
david63
Jr. Extension Validator
Posts: 15048
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: How to create a style?

Post by david63 » Fri Jun 20, 2014 5:44 pm

Taking a simplistic view - if you cannot work out how to add a credit to a style then should you be creating one in the first place?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
t_backoff
Former Team Member
Posts: 6995
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: How to create a style?

Post by t_backoff » Fri Jun 20, 2014 5:46 pm

So edit overall_footer.html? :?

User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: How to create a style?

Post by Stoker 4.0 » Fri Jun 20, 2014 6:23 pm

david63 wrote:Taking a simplistic view - if you cannot work out how to add a credit to a style then should you be creating one in the first place?
tmbackoff wrote:So edit overall_footer.html? :?
Wow, somebody is in the "being nice" corner today?
Thanks for lifting me up here ;)

Okay, maybe its just me being wild here...
Just thought that 3.1 would have a smarter inheritance...
I mean, creating a style that inherites prosilver 100% and then have to create a overall_footer.html just because of the style credit line... Well, that just seems plain stupid to me.

and when looking in overall_footer.html for 3.1 finding this line <!-- EVENT overall_footer_copyright_append --> ....
Im not sure if you guys can follow me here?

User avatar
t_backoff
Former Team Member
Posts: 6995
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: How to create a style?

Post by t_backoff » Fri Jun 20, 2014 6:40 pm

Sorry, I didn't realize we had a template event for this. In that case, create a new directory named event under the template directory, create a file called overall_footer_copyright_append.html and place your copyright in there.
Stoker 4.0 wrote:I mean, creating a style that inherites prosilver 100% and then have to create a overall_footer.html just because of the style credit line... Well, that just seems plain stupid to me.
This is the way it is in 3.0.x

User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: How to create a style?

Post by Stoker 4.0 » Fri Jun 20, 2014 7:26 pm

Have tried it, but on Beta4 there is no success with it.

User avatar
t_backoff
Former Team Member
Posts: 6995
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: How to create a style?

Post by t_backoff » Fri Jun 20, 2014 7:45 pm

I'll see what I can come up with later tonight. I'm not able to test right now.

User avatar
t_backoff
Former Team Member
Posts: 6995
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: How to create a style?

Post by t_backoff » Sat Jun 21, 2014 1:20 am

It seems the only way to achieve this is to edit the overall_footer.html file.

User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: How to create a style?

Post by Stoker 4.0 » Sat Jun 21, 2014 4:31 am

Thanks for your answer :)

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: How to create a style?

Post by Oyabun1 » Wed Jul 23, 2014 12:23 pm

Bit late, but, Add Template Listeners
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

User avatar
t_backoff
Former Team Member
Posts: 6995
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: How to create a style?

Post by t_backoff » Wed Jul 23, 2014 4:14 pm

Those are only for extensions. Ulrik is trying to do this for a style.

Locked

Return to “[3.1.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests