PHP CSS Preprocessor





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  16 17 Next »
-5
Date Submitted Sat. Mar. 11th, 2006 7:28 PM
Revision 1
Helper Scriptsentials
Tags "Random Generation" | PHP | Random
Comments 3 comments
This multiple-use PHP script will randomly generate content based on a randomly generated number.
7
Date Submitted Wed. Mar. 15th, 2006 12:16 PM
Revision 1
Beginner windley
Tags cloud | movabletype | PHP | tags
Comments 0 comments
This code, working with MovableType, creates a tag cloud of tags entered into the keyword field of a blog entry. You can see the results and read my write-up which explains some other things that help with MovableType and tag clouds. I got this code from Al-Muhajabah and made a few minor tweaks. Put the PHP snippet below inside a MT template that creates a php page.
14
Date Submitted Wed. Mar. 22nd, 2006 6:10 PM
Revision 2
Beginner nev3rm0re
Tags PHP | String
Comments 1 comments
This function calculates how many lines will text occupy.
Example (simple):


$string = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus tincidunt posuere dolor";

$num_lines = how_many_lines(10, $string);

It accepts a third, optional, parameter $options, that allows you to change behaviour. $options should be array. Following configuration options are available:

'white_spaces' - default: array(' ', "\t") - array of chars, that should be treated as whitespace.

'new_lines' - default: array("\r\n", "\n") - array of strings, that should be treated as newlines. For example, for HTML you can set 'new_lines' => array('');

'force_line_breaks' - default: true - force wrapping, when the token is longer than width, or not. If set to false, and token cannot be fitted into $width, function will return false;

'callback' - default: null - callback function for determining character width. Must accept at least one parameter - $char

'callback_params' - default: array() - optional additional callback parameters

'char_widths' - default: null - associative array in a form $char => $width, which contains char width. If $char is not found in the array, it's width is defaulted to 0.

10
Date Submitted Sat. Mar. 25th, 2006 9:32 PM
Revision 1
Beginner baldo
Tags Calendar | CSS | definition | HTML | List | xhml
Comments 3 comments
this is a css to style a definition list to get a calendar list type.

See the final render.
9
Date Submitted Thu. Apr. 13th, 2006 10:46 AM
Revision 1
Coder mattrmiller
Tags Array | Case | PHP
Comments 0 comments
Change the case of an array.
23
Date Submitted Wed. May. 3rd, 2006 4:31 PM
Revision 3
Beginner kaparo
Tags geotarget | geotargetting | PHP
Comments 3 comments
This snippet originally is used for targetting ads banners depended on the geographic location of the visitor, but can be used for other purposes. Also originally is used for US and the rest of the world, but you can add check for other countries too.
11
Date Submitted Tue. May. 23rd, 2006 8:48 AM
Revision 1
Coder mattrmiller
Tags CURL | PHP
Comments 2 comments
Example of how to use CURL with PHP.
6
Date Submitted Mon. Jun. 5th, 2006 8:53 PM
Revision 1
Coder mattrmiller
Tags !important | CSS | IE | Ignore
Comments 1 comments
Normally in CSS whichever rule is specified last takes precedence. However if you use !important after a command then this CSS command will take precedence regardless of what appears after it.
4
Date Submitted Fri. Jun. 9th, 2006 11:40 AM
Revision 1
Coder mattrmiller
Tags Array | find | PHP | search
Comments 0 comments
A simple search array example.
16
Date Submitted Tue. Jun. 13th, 2006 12:24 AM
Revision 1
Coder mattrmiller
Tags "Phone Number" | Format | PHP
Comments 3 comments
Format a phone number with php.
« Previous 1 2 3 4 5 6 7 8 9  ...  16 17 Next »