IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Theme Support, Flexibility or Ease of use
Stormtrooper
post Apr 6 2009, 08:06 AM
Post #1


PsychoGeneral


Group: Administrators
Posts: 20,578
Joined: 28-March 01
From: Silver Spring, MD
Member No.: 1



PsychoStats themes are extremely flexible and have used "Smarty Templates" to separate any PHP coding from the presentation. But there's still a lot of "logic" in the themes that probably shouldn't be in the themes. And a theme has dozens of files that make up the overall stats website. This can be very cumbersome for users who want to make simple changes.

I'm toying with some ideas on changing the way themes are done to make it easier to alter common elements like menus, colors, headers, etc... but remove most logic out of the theme which would make them less robust but a lot easier to 'skin' for the average user who knows nothing about HTML or CSS. But is this a good idea?'

Ps3.2 introduced "parent - child" themes, but as I look back at this, I think it just complicates things. And I've noticed that out of all the themes that the community has made all of theme are nothing more than some style/color changes. No one attempts to change the overall look of the stats. So is there really a need for this system?

Your thoughts?


--------------------
Stormtrooper
Before posting new questions please do the following:
Go to the top of the page
 
+Quote Post
coach
post Apr 7 2009, 01:59 AM
Post #2


PsychoNewb


Group: Members
Posts: 37
Joined: 15-February 07
From: Melbourne,Victoria,Austra
lia.
Member No.: 65,398



I think simple is the way to go. More chance of people making some of their own changes if it was simplified.

As well the people that can already modify heavily would still be able to so anyway.

But this way you please more with simplicity.
Go to the top of the page
 
+Quote Post
pc349bds
post Apr 7 2009, 07:00 AM
Post #3


PsychoInfant


Group: Members
Posts: 4
Joined: 23-December 08
Member No.: 69,853



You could do both have a simple one that is put on with the default install and editable with a GUI. Then have a complex one with all the stuff you have now then the GUI would be turned off. So you would have a noob mode for those of use that are lazy and a advanced mode for those of use that are master coders.
Go to the top of the page
 
+Quote Post
Brad
post Apr 7 2009, 09:25 AM
Post #4


PsychoNewb


Group: Beta Testers
Posts: 65
Joined: 3-October 05
From: Michigan
Member No.: 43,823



If you think it's more likely people will actually make new ones, if it were more simple too, then I'd go that route. Basically, whichever route would leave to a bigger variety of layouts.


--------------------
Go to the top of the page
 
+Quote Post
Stormtrooper
post Apr 7 2009, 05:32 PM
Post #5


PsychoGeneral


Group: Administrators
Posts: 20,578
Joined: 28-March 01
From: Silver Spring, MD
Member No.: 1



Well, I do think to have more themes made, the number of files involved needs to be lessened (which is why I did the parent -> child theme support in 3.2; but no one cared anyway). So, chances are I'm going to completely change the way themes are done.


--------------------
Stormtrooper
Before posting new questions please do the following:
Go to the top of the page
 
+Quote Post
Drek
post Apr 7 2009, 05:43 PM
Post #6


PsychoJunkie


Group: Beta Testers
Posts: 349
Joined: 31-October 02
From: Canada
Member No.: 3,295



I think the system you used with PS 3.x was good, I just think that many, such as myself, didn't understand how it worked. And perhaps you should take it as a compliment that people were so happy with what you did with the stock theme, that no one felt the pressing need to create a new one.

I think also there is a level of complexity in theme design for PS 3.x that is pretty daunting. PS 3.x is fairly complex, and creating a new theme from scratch, or even doing some serious modifications is a very big job. I know that even the modifications I made to colours etc. took some effort on my part.


--------------------
Debian 5.0 Lenny 64 bit
Linux 2.6.26.8 custom kernel
MySQL 5.0.51a
Apache 2.2.9
PHP 5.2.6
Perl 5.10.0
Go to the top of the page
 
+Quote Post
Stormtrooper
post Apr 7 2009, 06:36 PM
Post #7


PsychoGeneral


Group: Administrators
Posts: 20,578
Joined: 28-March 01
From: Silver Spring, MD
Member No.: 1



/nods. As much as I tried to simplify the styles in the theme it ended up being very complex. The interface is rather large in PS3 so it makes sense for there to be a lot of files that make up the theme.

I'm happy with the overall theme, for the most part. I may change the layout a bit but I mainly plan to make changes to how the theme is built. Maybe with less files overall. Afterall, a lot of the stats pages are the same basic design so there isn't a need to have a completely separate html file for each page. Instead a more generic page can be created that can be reused for multiple pages (since the tables are dynamically created in code and not in the theme).


--------------------
Stormtrooper
Before posting new questions please do the following:
Go to the top of the page
 
+Quote Post
DirtyDave
post Apr 8 2009, 09:50 PM
Post #8


PsychoNewb


Group: Members
Posts: 25
Joined: 9-September 08
Member No.: 69,146



Storm, I found the themes real easy to modify. Anybody can download firebug and/or web developer bar addons for firefox and go anywhere on any of the elements and find out the exact lines and exact coding. Took me only like 5 minutes to modify a theme. I had no probs. For example...this is what I have PS3 looking like for my servers:

http://skulshockcommunity.com/stats/sso/


--------------------
http://skulshockcommunity.com



72.51.60.220:27015 [____Skul`Shock____] (HL2DM)
72.51.60.221:2705 [____Skul`Shock Regulars____] (HL2DM)
72.51.60.221:27035 [____Skul`Shock Teamplay____] (HL2DM)
72.51.60.220:27035 [____Skul`Shock 2v2____] (HL2DM)
64.22.86.162:27015 [____Skul`Shock South____] (HL2DM)
69.12.96.88:27015 [____Skul`Shock HURT LOCKER____] (HL2DM)
98.193.141.32:27015 [____NASHVILLEDJ's SKUL`SHOCK____] (HL2DM)
69.28.220.142:27015 [___Skul`Shock {RW}oSok Private___] (HL2DM
72.51.60.223:27015 [____Skul`Shock Fortress____] (TF2)
72.51.60.222:27015 [____Skul`Shock Campaign____] (L4D)
72.51.60.222:27035 [____Skul`Shock Versus____] (L4D)
72.51.60.223:27035 [____Skul`Shock Versus Private____] (L4D)
Go to the top of the page
 
+Quote Post
jtp10181
post Apr 10 2009, 07:52 PM
Post #9


PsychoGeneral


Group: Beta Testers
Posts: 3,147
Joined: 10-April 03
From: Madison, WI
Member No.: 4,134



I think most people are satisfied with your layout and just like to make the colors match thier site or clan colors. If there was a simple way to change the colors and images most people would happy.


--------------------
Game Server Rental and Web Hosting: http://www.thekingpin.net
Go to the top of the page
 
+Quote Post
ToXedVirus
post Apr 19 2009, 08:54 AM
Post #10


PsychoNewb


Group: Members
Posts: 32
Joined: 19-January 09
Member No.: 70,006



QUOTE (DirtyDave @ Apr 9 2009, 05:50 AM) *
Storm, I found the themes real easy to modify. Anybody can download firebug and/or web developer bar addons for firefox and go anywhere on any of the elements and find out the exact lines and exact coding. Took me only like 5 minutes to modify a theme. I had no probs. For example...this is what I have PS3 looking like for my servers:

http://skulshockcommunity.com/stats/sso/


This theme is horrible, but the actual point is, that you just changed some colors, thats it.
No overall redesign, thats what storm is talking about.
Go to the top of the page
 
+Quote Post
Stormtrooper
post Apr 19 2009, 11:04 AM
Post #11


PsychoGeneral


Group: Administrators
Posts: 20,578
Joined: 28-March 01
From: Silver Spring, MD
Member No.: 1



In my development of Ps4.0 I"ve come to a hybrid combination that allows flexibility and still ease of use for simple color changes. But simply, the main css files for the theme are processed as templates which means variables can be used for various colors and will eventually be changeable in the ACP. But the theme is still 100% flexible in design at the same time.


--------------------
Stormtrooper
Before posting new questions please do the following:
Go to the top of the page
 
+Quote Post
Drek
post Apr 19 2009, 12:51 PM
Post #12


PsychoJunkie


Group: Beta Testers
Posts: 349
Joined: 31-October 02
From: Canada
Member No.: 3,295



QUOTE (Stormtrooper @ Apr 19 2009, 02:04 PM) *
But simply, the main css files for the theme are processed as templates which means variables can be used for various colors and will eventually be changeable in the ACP.


I really like that. smile.gif


--------------------
Debian 5.0 Lenny 64 bit
Linux 2.6.26.8 custom kernel
MySQL 5.0.51a
Apache 2.2.9
PHP 5.2.6
Perl 5.10.0
Go to the top of the page
 
+Quote Post
ZERO ibis
post Apr 21 2009, 08:03 PM
Post #13


PsychoNewb


Group: Members
Posts: 36
Joined: 3-July 07
Member No.: 66,606



Yea it took me a while to program my own code to add up online time so I could display it in signatures but people that wanted to change how the data was outputted could always modify the php code.

The way I see how it should be, theme controls only how it looks; php scripts control the values and their processing.

Currently I know that you use smarty classes to convert the user online times, last connected date ect. I know that you will still want to store this data in sql as seconds to be more efficient. If you want the code to convert the seconds into actual output like how the smarty class does pm or e-mail me and I can send you the code to use in the next version. I wrote it all myself from scratch in php.


--------------------

Go to the top of the page
 
+Quote Post
Stormtrooper
post Apr 23 2009, 09:35 AM
Post #14


PsychoGeneral


Group: Administrators
Posts: 20,578
Joined: 28-March 01
From: Silver Spring, MD
Member No.: 1



I understand your point, which is essentially to "separate program logic and presentation." Which is the whole point of having 'themes' in the first place. But PS outputs some very complex pages and a simple theme without any logic just won't do it.

So smarty allows a theme author to use a little more logic w/o having to know PHP coding (and the syntax is a little easier). This is an age-old argument that developers have with each other. Templates are good, Templates are bad, Everything should be done in straight PHP, without templates it just gets too complicated, etc... It goes back and forth smile.gif.

Personally, I like Smarty. It allows easy theme changes with minimal effort of programming knowledge (of course you have to understand the syntax of the engine though).


--------------------
Stormtrooper
Before posting new questions please do the following:
Go to the top of the page
 
+Quote Post
cladiron
post May 10 2009, 04:47 PM
Post #15


PsychoNewb


Group: Members
Posts: 10
Joined: 29-April 08
Member No.: 68,302



QUOTE (Stormtrooper @ Apr 6 2009, 10:06 AM) *
PsychoStats themes are extremely flexible and have used "Smarty Templates" to separate any PHP coding from the presentation. But there's still a lot of "logic" in the themes that probably shouldn't be in the themes. And a theme has dozens of files that make up the overall stats website. This can be very cumbersome for users who want to make simple changes.

I'm toying with some ideas on changing the way themes are done to make it easier to alter common elements like menus, colors, headers, etc... but remove most logic out of the theme which would make them less robust but a lot easier to 'skin' for the average user who knows nothing about HTML or CSS. But is this a good idea?'

Ps3.2 introduced "parent - child" themes, but as I look back at this, I think it just complicates things. And I've noticed that out of all the themes that the community has made all of theme are nothing more than some style/color changes. No one attempts to change the overall look of the stats. So is there really a need for this system?

Your thoughts?


i think that would be that main reason to do it.
I have only seen 1 that has peeked my interest, but i couldn't use it because it was from an earlier version of PS.

i think it's too confusing to edit as is.
anyone agree ?
Go to the top of the page
 
+Quote Post
SHinOkung
post Apr 13 2010, 02:28 PM
Post #16


PsychoInfant


Group: Members
Posts: 1
Joined: 13-April 10
From: Bangkok
Member No.: 72,826



Thank you for any comment and this article.


--------------------
Go to the top of the page
 
+Quote Post
lachesis
post Yesterday, 03:05 AM
Post #17


PsychoNewb


Group: Members
Posts: 41
Joined: 26-December 08
Member No.: 69,863



i've copied theme to themes directory, but it does not showing in themes.php.. that is strange. do i need to run stats.pl, or something to make it shown?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

View New Posts ·
 



RSS Lo-Fi Version Time is now: 7th September 2010 - 01:55 AM