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.

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:

Add PHP Code To Your phpBB Forum Templates

Editing a phpBB template can be rather exasperating because you don’t have freedom to add dynamic code. In fact, if you do add php code to your template, you will find that it won’t be recognized. So what do you do?

Read Article

Tags: , , , ,

JavaScript Code Snippet: Automatically Updating Copyright Date

Here is a JavaScript code snippet that you can add to your web pages so that you won’t have to update the date ever again.

Read Article

Tags: ,

PHP Code Snippet: Automatically Updating Copyright Date

The New Year is right around the corner, which means that you will need to update the copyright date in the footer of your website. Here is a code snippet that you can add to avoid updating the date ever again.

Read Article

Tags:

Help! I Messed Up My WordPress URL Settings

Have you made a mistake updating your WordPress url settings, and are now unable to access your blog or administration area to reverse the changes? Read this article for two ways to restore your settings.

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