Category Archives: Development

Stay logged in with WordPress on Subdomains

A clients site performs some magic to show different content per subdomain. By default each subdomain asks you to login, which is a bit annoying. It would be convenient if admins of a single WordPress installation could stay logged in when they jump between subdomains. Due to unique requirements, we’re doing this without WordPress Multisite.

I found that all we needed to do was set the cookie domain and path in wp-config.php. At first it seemed only COOKIE_DOMAIN and COOKIEPATH would be needed, but it did not behave until COOKIEHASH was also set. You could probably set it to anything you like, I just had a defined variable already.

This may also work between WordPress installations across subdomains. I haven’t tested this theory. Both installations would require the same login details and this config. It is working with WordPress versions 3.8+.

RAWR-Designs

Some people may recognise me as the rejetto forum admin TSG, or from the official HFS facebook page that I created.

HTTP File Server Logo

8 years ago I was introduced to HTTP File Server by flynsarmy. HFS is a simple open source server application for Windows. I found the application to be a useful tool for practicing web design and programming. HFS still finds a place on my hard drive to this day. It is one of the easiest ways to share and access your files remotely.

After submitting a couple of templates, I began working with Giant Eagle. Richard was a fellow template builder on the HFS forum. Together we formed RAWR-Designs. Our goal was to create better quality applications and templates for HFS.

Projects

  • Thunderchicken of Glory template
  • Terayon template
  • RAWR-Template
  • RAWR-Player
  • Live 3 template
  • and our very own Thumbnail and Preview Generator.
RAWR-Designs.com Logo

We purchased a domain and hosted our own website to help support a growing forum community. 3 years have passed since active development, but there is still demand for our templates on the rejetto forum. Giant Eagle missed a renewal, the host has taken ownership of the domain. I’ve decided to add a mirror of the files on my personal website.

Hopefully people continue to enjoy HFS, and the templates we create for it.

WordPress 3.6, Read More Links Broken

My WordPress sites updated to 3.6 pretty smoothly.

Read More links for post excerpts are not being output by functions.php.

The fix is simple. Just change … to … in the filter.

Automatic Related Products for LemonStand

Online stores can be overwhelming to maintain. LemonStand Cart requires that you set related products on each of your products. Clients with large numbers of products prefer automation where possible.

Automatic Related Products for LemonStand

If the client does not specify related products, the below partial code will show related products from the database. The script grabs products from parent categories to ensure that the output remains relevant.

Partial Code

The partial is formatted for a theme based on Foundation 3 responsive framework. You may have to tweak the output to work for your LemonStand site.