Code Samples

Looking for free PHP, ASP, HTML, JavaScript, or CSS code? Well, here you go. And feel free to make requests for additional code samples.

WordPress Hack: Display Number & Next/Previous Links with wp_link_pages()

If you’ve ever wondered how to display both Next/Previous and Number links on your multi-page posts, here’s how. Roll up your sleeves and dig in your functions.php file for this quick tutorial on extending WordPress’ wp_link_pages function.

Read Article

Tags: ,

Custom WordPress “Comment Error” Page

Not all areas of WordPress area easily themed via template files. The comment error page is a good example of one page that cannot be directly modified via template. In this article, we show you how to modify this page and set up a new theme file just for it.

Read Article

Tags: ,

htaccess Help: 301 Redirects for URLs with Spaces

With .htaccess files, setting up 301 redirects is very simple. However, if your url has spaces, you might run into a problem. Read this article to see how to setup a 301 page redirect for a url that contains spaces.

Read Article

Tags: , , , , ,

How to Avoid Spam Filters with PHP mail() Emails

Just about everyone who uses PHP has encountered the popular PHP mail() function which enables email to be sent from a server. Unfortunately, when using the mail() function, your emails are more likely to be marked as spam. Fortunately, there are some simple fixes that can help you avoid spam filters.

Read Article

Tags: , ,

Turn Off WordPress Homepage URL Redirection

If you are integrating WordPress into a preexisting site that already has its own homepage, or if you are developing a new WordPress website that is hidden behind a Coming Soon page, you will run into one frustrating problem. If you try to access the WordPress installation by visiting the index.php file, you won’t be able to see it. Here is a small code sample to turn off WordPress URL redirection.

Read Article

Tags: , , ,

Smarty Templates: How To Create Custom Functions

The popular Smarty Template Engine is full of great features, but is not the most intuitive system for developers to learn to use. And it doesn’t help that the documentation is a bit scanty. So here is the simplest and most complete tutorial you will find on writing a custom function for your Smarty templates.

Read Article

Tags: , , ,

Firefox 2 on Mac: jQuery Anti-Aliasing/Opacity Bug

In the ideal scenario, what works on one browser will work on another. Unfortunately, this is never the case. In reality, all browsers have their own little bugs which cause them to behave differently. In this bug report, we highlight a little issue that popped up with Firefox 2.0 on Macs.

Read Article

Tags: , , , , ,

How To Make A Favorites Icon (Favicon.ico)

In this brief 3 step tutorial, you’ll find out how to create a favorites icon for your website. We also list a few reasons why your website NEEDS to have one.

Read Article

Tags:

Want us to work on your project?

Contact us today for a quote. Click here to submit details regarding your project.

If you are making a general inquiry, send an email to info@velvetblues.com

Go Daddy Deal of the Week: Cheap .COM Domains! Offer expires soon!