Quantcast
Channel: Snipplr
Browsing latest articles
Browse All 73 View Live

(jQuery) Determine the index of an element, properly. - daipratt

View Article



(CSS) Address Microformat CSS - daipratt

View Article

(PHP) Month bands for wordpress posts - daipratt

Stick this inside the

View Article

(CSS) Reset StyleSheet that includes HTML5 elements - daipratt

View Article

(jQuery) Test if an element exists in jQuery - daipratt

View Article


(Other) Drupal - display only the body value in a node template. - daipratt

View Article

(Other) Drupal - Get the image path of a CCK field - daipratt

View Article

(Other) Drupal - Get the image path of a CCK field from the fid - daipratt

View Article


(Other) Drupal - Show the taxonomy in the format - "term(node count)" - for a...

View Article


(CSS) Change the selected text colour properties - daipratt

View Article

(Other) Drupal - display an edit link, if the user if allowed to see it -...

View Article

(PHP) Validate email address in php - daipratt

View Article

(PHP) Active gzip on a linux server running PHP - daipratt

View Article


(PHP) Display PHP error messages even when they are suppressed in the php.ini...

View Article

(JavaScript) JavaScript email validation - daipratt

View Article


(PHP) Get the real IP address of a user. - daipratt

View Article

(PHP) Get a users gravatar from their email address - daipratt

View Article


(PHP) Convert URLs within String into hyperlinks - daipratt

View Article

(PHP) Drupal 6 - Custom \"Who\'s Online\" block with private message links. -...

Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.

View Article

(PHP) Drupal 6 - Show default "Who's online" block from a template. - daipratt

Embed the "Who's online" block from within a template file.

View Article

(JavaScript) Launch a popunder using Javascript that has a default browser...

View Article


(PHP) Wordpress - show top 10 tags by usage - daipratt

Show the top tags by usage.

View Article


(MySQL) MySQL - Group by price range - daipratt

Group by user defined price bands.

View Article

(Other) Close the mysql port (3306) from external access. - daipratt

The command you need to close the mysql port 3306 from external access. You need to use the 2 lines in the snippet below once you have connected to the server via SSH.

View Article

(MySQL) MySQL UNIX timestamp to readable date - daipratt

Convert a Drupal time stamp field into a readable format. The Drupal time stamp field is in the UNIX format.

View Article


(PHP) PHP regex - Remove special characters from a string - daipratt

This will remove all non-ascii characters / special characters from a string.

View Article

(Other) 301 redirect one domain to another using .htaccess - daipratt

This will redirect all pages from one domain, to the homepage of another domain.

View Article

(Other) Install PECL uploadprogress via SSH - daipratt

This script can be used to install the PECL upload progress PHP extension. You'll know this extension from the Drupal status report page which encourages you to install it.

View Article

(Other) Install PHP Fileinfo Extension via the command line - daipratt

View Article



(MySQL) Increase the max_allowed_packet in MySQL - daipratt

If you every get hit by ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes, then this might help. You also need to make sure that the user that you log in with has SUPER privileges...

View Article

(Bash) Install Apache, Mysql & PHP via the command line in Ubuntu - daipratt

Run through this lot line by line and you should be good. Make sure you select Apache when you are installing PHPMyAdmin. If you mess up installing PHPMyAdmin, use the following command to...

View Article

(Other) .htaccess - allow access only from certain IP's and IP ranges - daipratt

See here for Amazon EC2 range https://forums.aws.amazon.com/ann.jspa?annID=877

View Article

(Bash) Install the PECL uploadprogress library on Ubuntu 10 - daipratt

View Article

Browsing latest articles
Browse All 73 View Live




Latest Images