PHP – Kevin Gulling http://www.kevingulling.com Game Development, VR, and more Wed, 23 Sep 2015 16:14:29 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.13 81085834 SMF – Change Colors Using CSS w/out a New Theme or Mod https://kevingulling.com/2015/06/smf-change-colors-using-css-wout-a-new-theme-or-mod/ https://kevingulling.com/2015/06/smf-change-colors-using-css-wout-a-new-theme-or-mod/#comments Thu, 11 Jun 2015 12:12:46 +0000 https://kevingulling.com/?p=440 I recently did an install of an SMF (or Simple Machines Forum) for another site. I wanted to keep the basic stock theme, but change some the color scheme to match the website. After performing a search on Google and Bing, I couldn’t find any options other than downloading a new Theme. It wasn’t hard […]

The post SMF – Change Colors Using CSS w/out a New Theme or Mod appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
I recently did an install of an SMF (or Simple Machines Forum) for another site. I wanted to keep the basic stock theme, but change some the color scheme to match the website. After performing a search on Google and Bing, I couldn’t find any options other than downloading a new Theme. It wasn’t hard to find the file I was looking for with a little digging around in the Administration Center. From The Administration Center you will want to look for the ‘Themes and Layout’ link. Click this. Now look for the ‘Modify Themes‘ option. From here there is a link to ‘Browse the templates and files in this theme‘. At this point you will see a file system similar to using an ftp. Open the CSS folder and find the index.css file.
Main > Administration Center > Modify Themes > Browse the templates and files in this theme > css > index.css

Changing SMF colors css

SMF index.css (no style.css)

This is specific to the current default SMF ‘Curves’ theme and probably doesn’t pertain to many other themes. There is also an ‘Images’ folder, from which you can download and alter the images via image editing software to further customize your color scheme. You will most likely want to edit an image called main_block.png or something similar.

I’m not going to go much into editing of the CSS, but if you have basic knowledge of HTML/CSS you can easily find the colors and change them. I like to use pink, #ff00ff (or #fab haha) to easily spot the changes. For extensive editing, I suggest copying the code from the box and pasting it into an editor such as Notepad++ to make your life easier.

Hope this helps some other SMF newbs! With that being said, I’m a newb, and didn’t read any SMF documentation (who needs directions?) and I’m not sure how editing these files will effect updates or other mods. Not my fault if you lose your forum for trying to make pretty pink borders 😛

The post SMF – Change Colors Using CSS w/out a New Theme or Mod appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
https://kevingulling.com/2015/06/smf-change-colors-using-css-wout-a-new-theme-or-mod/feed/ 1 440
Who Killed the Internet Explorer? What is Spartan? https://kevingulling.com/2015/03/who-killed-the-internet-explorer-what-is-spartan/ Sun, 22 Mar 2015 10:30:27 +0000 https://kevingulling.com/?p=389 “Microsoft announced that they will no longer develop new versions of Internet Explorer” Edit: Spartan is now ‘Edge’. An intelligent decision in my opinion, now they can use the old ‘E’ icon that users are familiar with. The death of the Internet Explorer has the internet in an uproar today. On the 20th (don’t quote […]

The post Who Killed the Internet Explorer? What is Spartan? appeared first on Kevin Gulling - Game Development, VR, and more.

]]>

“Microsoft announced that they will no longer develop new versions of Internet Explorer”

Edit: Spartan is now ‘Edge’. An intelligent decision in my opinion, now they can use the old ‘E’ icon that users are familiar with.

Who Killed Internet Explorer?The death of the Internet Explorer has the internet in an uproar today. On the 20th (don’t quote me on that, I never saw the press release, but hundreds of sites are claiming they did) Microsoft announced that they will no longer develop new versions of Internet Explorer. Who killed it? Well, for those of you who have only had a smart phone in your lifetime, there’s a chance you’ve never heard of Internet Explorer. Internet Explorer was the dominant leader in the usage share of web browsers for many years, post 1990’s. Netscape Navigator held the title for most of the 90’s, but Internet mogul: AOL or “America Online” bought Netscape some time around the turn of the century, and drove it straight into a wall, leaving the tracks clear for Internet Explorer to begin it’s browser conquest. How does a browser go from commanding a whopping 96% of the usage share down to as low as 11.5% in just a decade? And why are they ending support with numbers around 15-20% this year?

  • 1994 – Netscape founded.
  • 1995 – Internet Explorer released with Windows 95*
  • 1999 – Netscape acquired by AOL.
  • 2002 to 2004 – Microsoft’s new giant, Internet Explorer commands upwards of ninety percent of the browser usage share.
  • 2007AOL canceled development of Netscape Navigator, leaving it unsupported as of 1 March 2008
  • 2014 – Microsoft discusses unveiling a new browser, “Spartan”, along with Windows 10
  • 2015 – Internet Explorer calls it quits, IE 11 being the last supported version.
  • This Summer – Microsoft is to launch Windows 10 with it’s new browser: Spartan

So it’s not necessarily the case that Microsoft is throwing in the towel in the browser wars, but rather throwing a new warrior into the war. And who won wars better than Spartans? We’ll soon see if Microsoft does the name any justice.

Download the last version of IE:

Are you a die hard IE fan for whatever messed up reason? The download page for Internet Explorer 11 is still up (for now) http://windows.microsoft.com/en-us/internet-explorer/download-ie so this is your chance to get what is supposedly the last version.

The post Who Killed the Internet Explorer? What is Spartan? appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
389
PHP Dynamic Copyright Date Script https://kevingulling.com/2014/11/51/ Sun, 30 Nov 2014 12:40:33 +0000 https://kevingulling.com/?p=51   Never update the copyright date at the bottom of your php pages again! Copyright (Your dynamic date). There are many scripts that accomplish this available out there, but most are javascripts that reflect the users time/date. If your user has their clock set back a year, your copyright date will be set back a […]

The post PHP Dynamic Copyright Date Script appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
newyears_php_pro_tip

 

Never update the copyright date at the bottom of your php pages again!

Copyright (Your dynamic date).

There are many scripts that accomplish this available out there, but most are javascripts that reflect the users time/date. If your user has their clock set back a year, your copyright date will be set back a year as well. Avoid this and keep your content looking fresh with the following simple code:

 

<?php
    $dateyr = date(‘y’);
    echo”&copy;20″.$dateyr.” yourwebsitehere.com”;
    ?>

 

That’s it, you’re good to go until 2100. We could easily accommodate for the rollover to 2100, but that’s another line or two of code that most of us will never need…

The post PHP Dynamic Copyright Date Script appeared first on Kevin Gulling - Game Development, VR, and more.

]]>
51