Design Simply

Simplicity in design, photography & code.


Archive for the 'Code' Category

How to Setup Syntax Highlighting in MediaWiki

Monday, June 16th, 2008

Steps for setting up GeSHi (Generic Syntax Highlighter) on MediaWiki:

  1. Download GeSHi (Generic Syntax Highlighter).
  2. Upload geshi.php and the geshi folder to your MediaWiki extensions folder.
  3. Create GeSHiHighlight.php using this source code.
  4. Copy the following line to your LocalSettings.php file.
    include("extensions/GeSHiHighlight.php");
  5. Add code to a MediaWiki page using <pre> tags.
    <php><?php echo "Hello World!"; ?></php>
    

More information about GeSHI can be found at http://qbnz.com/highlighter/.

Edit: Oops. I had posted the last step with <pre> tags instead of <php>. I’ve fixed it now. Thanks override!

PHP::Impact Names Most Influential PHP Apps

Friday, June 13th, 2008

Magento LogoPHP::Impact recently named sixteen PHP open source applications that have “changed the world” including two of my all-time favorite, much loved, and long used web phenomenons, WordPress and Gallery. Ten years running is a long time for the popular, pragmatic, Design by Baxter (endoflevelboss.org)database-wielding phpMyAdmin to have been in high demand—I had no idea phpMyAdmin had been around that long. I am also very impressed to see Magento eCommerce on the list since it just came out of beta this March. So far, Magento is getting rave reviews and a few complaints. It will be interesting to see how these projects continue to evolve and change take over the world.

301 Redirects, Link Structure, XML Sitemaps, & Preferred Domain

Friday, August 24th, 2007

Google representative Matt Cutts advises using 301 redirects to establish a preferred www or non-www domain. URLs such as www.example.com, example.com, www.example.com/index.html, and example.com/home.asp all seem like they point to the same page, but all of them, in fact, could contain unique content. In order to cut down on a search engine cataloging said content more than one time, and therefore diluting search engine results pages (SERPs), you can use 301 redirects, a good internal link structure, xml sitemaps, and set your preferred domain in your Google Webmaster Central account. (more…)

SEOify Your WordPress with Description & Keyword Meta Tags

Wednesday, April 11th, 2007

Ever wonder how to SEOify your WordPress install? Here’s the code I used in my WordPress theme to use custom fields for description and keywords meta tags. The down side to using this method is that you have to modify it for any new customized meta tags you want to use. I really only wanted to customize the description and keywords meta tags, so this worked out great for me. (more…)



Copyright © 2000-2010 Sheri Bigelow. Proudly powered by WordPress and hosted by bluehost.
Log in. Valid XHTML 1, CSS 2. Entries (RSS) and Comments (RSS).