Quantcast
Channel: Eureka! » WordPress
Browsing latest articles
Browse All 6 View Live

Image may be NSFW.
Clik here to view.

WordPress – Enable PHP Session

Add the following code under the top PHP opening tag of wp-config.php. <?php if (!session_id()) { session_start(); } ... We can now make use of the $_SESSION[] in WordPress. The reason of putting...

View Article



Image may be NSFW.
Clik here to view.

HTML – Some Useful Divider Lines

I just realized that the <hr /> divider line is not longer working in wordpress.com. Luckily i find a very good post which has several pieces of HTML codes to add the divider in WordPress post....

View Article

Image may be NSFW.
Clik here to view.

jQuery & Javascript – Capture the Browser or Tab Closed Event

I was working on a WordPress project which i need to clear the PHP session when the browser or browser tab is closed. Although Javascript provides the window.onbeforeunload event but it will be...

View Article

Image may be NSFW.
Clik here to view.

WordPress – Replace the built-in WordPress comment by Facebook comment

I found a very good WordPress plugin which could replace the built-in WordPress comment box with Facebook comment. It is developed by Fat Panda. Search the term Fat Panda in the Add Plugin page.   Fill...

View Article

Image may be NSFW.
Clik here to view.

WordPress – Detect the current language of qTranslate in PHP

We can use the qtrans_getLanguage() to get the current language of a WordPress website. if (qtrans_getLanguage() == 'en') { // english } elseif (qtrans_getLanguage() == 'zh') { // traditional chinese }...

View Article


Image may be NSFW.
Clik here to view.

New Relic – Enable Drupal module monitoring

New Relic supports the following list of PHP frameworks. Drupal 6 and 7 WordPress CakePHP 1.2, 1.3 and 2.* CodeIgniter 2 QDrupal Joomla 1.5 and 1.6 Symfony 1 Yii Zend Framework 1 Magento 1.5 and 1.6...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images