possible new style to be in development...

User avatar
spaceace
Site Owner
Site Owner
Posts: 901
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada
Contact:

possible new style to be in development...

Post by spaceace » Mon Mar 07, 2011 8:30 pm

been wanting to make a style that can change colours with the users time of day. this would consist of 2 or more stylesheets. and since i simplified the stylesheet that i'm using in my new styles, i think i can pull this off now. only thing i'm waiting for now is for someone to go over a piece of javascript to see if it will do the job or not. if you know js and would like to have a look and let me know if it will work or not, here it is
Code: Select all
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time<10)
  {
  document.write("<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" media="screen, projection" />");
  }
else if (time>10 && time<16)
  {
  document.write("<link href="{T_THEME_PATH}/day.css" rel="stylesheet" type="text/css" media="screen, projection" />");
  }
else
  {
  document.write("<link href="{T_THEME_PATH}/evening.css" rel="stylesheet" type="text/css" media="screen, projection" />");
  }
</script>
just so everyone knows, it will not be something that i'm going to be doing right now as i have to move and get a few other things sorted before i can start on it. only thing i do know right now is that it will be based off of my Midnightspace style for the first run and then the Concept style for the second. and also, in the future, i could even produce stylesheets of different colours for members to download so they could mix and match their own colours sets :D
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

User avatar
Gnome!
Site Admin
Site Admin
Posts: 328
Joined: Mon May 24, 2010 8:26 am
Location: Australia..The worlds Largest island.
Flag: Australia

Re: possible new style to be in development...

Post by Gnome! » Mon Mar 07, 2011 8:52 pm

ohhhhhh I'm gonna love this once you get it all sorted :D
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!

Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.

User avatar
spaceace
Site Owner
Site Owner
Posts: 901
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada
Contact:

Re: possible new style to be in development...

Post by spaceace » Mon Mar 07, 2011 8:53 pm

i think i'm even going to like it as i've never seen anyone do it yet ;)
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

User avatar
duesmandella
Donor
Donor
Posts: 55
Joined: Tue Jan 18, 2011 6:33 pm

Re: possible new style to be in development...

Post by duesmandella » Mon Mar 07, 2011 9:16 pm

WHo thinks of this stuff lol
Its a great idea im suprised im just hearing of it now
Last edited by duesmandella on Tue Feb 26, 2013 10:29 am, edited 2 times in total.

User avatar
Gnome!
Site Admin
Site Admin
Posts: 328
Joined: Mon May 24, 2010 8:26 am
Location: Australia..The worlds Largest island.
Flag: Australia

Re: possible new style to be in development...

Post by Gnome! » Tue Mar 08, 2011 12:50 am

Space,

I passed this onto a friend in the know and this is what he said.

Kevin ******
That will be cool. I can't think of anyone who has done that with phpbb. He does have an issue with his javascript though. The lines like this one:
Code: Select all
document.write("<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" medi...a="screen, projection" />");

should looks something like this:

document.write('<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" media="screen, projection" />');
Note the difference in quotes before and after the parenthesis. I'll be waiting to see that idea in action :)
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!

Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.

User avatar
spaceace
Site Owner
Site Owner
Posts: 901
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada
Contact:

Re: possible new style to be in development...

Post by spaceace » Tue Mar 08, 2011 7:16 am

Gnome! wrote:Space,

I passed this onto a friend in the know and this is what he said.

Kevin ******
That will be cool. I can't think of anyone who has done that with phpbb. He does have an issue with his javascript though. The lines like this one:
Code: Select all
document.write("<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" medi...a="screen, projection" />");

should looks something like this:

document.write('<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" media="screen, projection" />');
Note the difference in quotes before and after the parenthesis. I'll be waiting to see that idea in action :)
thanks Gnome! :D that's exactly the kind of response i'm looking for :D
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

User avatar
Gnome!
Site Admin
Site Admin
Posts: 328
Joined: Mon May 24, 2010 8:26 am
Location: Australia..The worlds Largest island.
Flag: Australia

Re: possible new style to be in development...

Post by Gnome! » Tue Mar 08, 2011 7:17 am

Your welcome Sir :D

I'm trying to convince him to join ;)
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!

Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.

User avatar
spaceace
Site Owner
Site Owner
Posts: 901
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada
Contact:

Re: possible new style to be in development...

Post by spaceace » Tue Mar 08, 2011 7:21 am

sounds like it would be a good addition to the site :D
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

User avatar
Gnome!
Site Admin
Site Admin
Posts: 328
Joined: Mon May 24, 2010 8:26 am
Location: Australia..The worlds Largest island.
Flag: Australia

Re: possible new style to be in development...

Post by Gnome! » Tue Mar 08, 2011 7:22 am

I totally agree :D
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!

Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.

User avatar
spaceace
Site Owner
Site Owner
Posts: 901
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada
Contact:

Re: possible new style to be in development...

Post by spaceace » Tue Mar 08, 2011 8:26 am

hopefully, now that this is brought to light, nobody does it and beats me to it :lol:
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest