Knowledge Base

Forcing the 404 Page to Send the Proper Headers

Knowledge Base on February 27th, 2010 1 Comment

If the 404 Page does not send the proper headers, that is the HTTP Status Code is not 404 Page Not Found, then this will result in incorrect crawling and indexing of such a page by search engines. To avoid this, when customizing the 404 Page add these two lines at the top of the [...]

Tags:

taking control of qTranslate

Disabling the compatibility warning message of qTranslate with WordPress

Knowledge Base on February 17th, 2010 2 Comments

This article describes how to disable the compatibility warning message qTranslate gives in the WordPress post/page editor when the running WordPress version is newer than the one supported by qTranslate. Try this at your own risk. At all our tests it worked just fine, but we do not guarantee correct functionality on your site. The [...]

Tags: ,

making it easier, with an extra 3 characters

Debugging PHP – Parse error: syntax error, unexpected $end

Knowledge Base on February 10th, 2010 No Comments

If you have are using the short form (<? ?> ) for PHP instead of the long form (<?php  ?>) you might be faced with this parse error when running your script on different systems: Parse error: syntax error, unexpected $end in X on line Y where X is the file path and Y the [...]

Tags: ,

knowing is always better

Determine if the Front Page Displays the Latest Posts or a Static Page on a WordPress Powered Site

Knowledge Base on December 16th, 2009 No Comments

For some applications, it is necessary to know what WordPress is displaying on the front page of the site. This need, for the AmberPanther team arose in the development of our proprietary Breadcrumb navigation plugin. To correctly build the breadcrumb navigation, in the event the front page is displaying a static page and the latest [...]

Tags:

playing with cookies can get sour

Handling Cookies: Deleting and Setting During the Same Session

Knowledge Base on November 20th, 2009 No Comments

This article focuses on the methodology of firstly deleting and then setting a cookie during the same session. Following this procedure will yield the desired results. It is assumed that you have prior knowledge with setting and deleting cookies. Our scripting language of choice is PHP. You can read more about setting cookies with PHP [...]

playing hide and seek

Using jQuery to hide an element when another one comes in view

Knowledge Base on October 30th, 2009 No Comments

In this article we are going to take a look of how to utilize jQuery to hide an element (from here on referred as elem2Hide) on a page, when a specific element comes in view (from here on referred to as elem2Query). Why is this needed? Let’s take a look at the left of this [...]

making things easy

Using the WordPress Shortcode API to include an external file in the post content

Knowledge Base on October 14th, 2009 6 Comments

Did you ever feel the need to include some PHP code in the post content of WordPress? The post content can accept JavaScript code but not PHP code. The AmberPanther team came up with a WordPress “hack” to overcome this limitation using the Shortcode API. In the event that some specific code would be needed [...]

Tags: , ,

overcoming notation obstacles

Why jQuery does not execute when using the shorthand $-function?

Knowledge Base on October 3rd, 2009 No Comments

Are you using the jQuery library? Are you trying to use its functions by using the “$” as the shortcut for “jQuery” and it does not work? This means that somewhere in your javascript code the jQuery.noconflict() function is called. This function overrides the shorthand “$” notation and allows only for the use of “jQuery”. [...]

sometimes more is less

How to jump/go to the bottom of a page using pure HTML

Knowledge Base on October 2nd, 2009 No Comments

Did you ever wanted to jump to the bottom of a page by just clicking on a link at the top or somewhere in the middle of the page? Well, here is your answer. No fancy javascripts, just pure HTML. The first step is to create an anchor just before the body tag: The anchor [...]

How to reset the query_posts function in WordPress

Knowledge Base on September 10th, 2009 1 Comment

WordPress uses the infamous The Loop to display posts, pages, archives etc. Sometimes depending on the needs (eg. for a specific template for a page in the theme), it might be necessary to use The Loop multiple times within the Template. Let’s say you are  building a page template that will query_posts first using a [...]

Tags:

RSS Feed
on facebook
@twitter
footer