JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
wfpl.git
12 years agometaform: simplify code (form msg, cancel dest)
Jason Woofenden [Tue, 20 Sep 2011 02:57:39 +0000 (22:57 -0400)]
metaform: simplify code (form msg, cancel dest)

12 years agoAPI CHANGE: change template varnames for messages
Jason Woofenden [Mon, 19 Sep 2011 18:40:39 +0000 (14:40 -0400)]
API CHANGE: change template varnames for messages

12 years agoJosh's fix for tem_set(array(1,2,3))
Jason Woofenden [Sun, 28 Aug 2011 21:34:15 +0000 (17:34 -0400)]
Josh's fix for tem_set(array(1,2,3))

12 years agoremove TODO
Jason Woofenden [Mon, 19 Sep 2011 17:16:17 +0000 (13:16 -0400)]
remove TODO

12 years agometaform: remove wrong id attribute from wysiwyg fields
Jason Woofenden [Mon, 19 Sep 2011 15:53:48 +0000 (11:53 -0400)]
metaform: remove wrong id attribute from wysiwyg fields

12 years agometaform: make html5 work in ie6-8 and locally
Jason Woofenden [Mon, 19 Sep 2011 05:38:43 +0000 (01:38 -0400)]
metaform: make html5 work in ie6-8 and locally

12 years agometaform: avoid css name conflicts
Jason Woofenden [Mon, 19 Sep 2011 05:27:07 +0000 (01:27 -0400)]
metaform: avoid css name conflicts

12 years agometaform: fixed default layout css
Jason Woofenden [Mon, 19 Sep 2011 05:18:25 +0000 (01:18 -0400)]
metaform: fixed default layout css

12 years agouse local less.js when running locally
Jason Woofenden [Mon, 19 Sep 2011 04:54:55 +0000 (00:54 -0400)]
use local less.js when running locally

run.php now tem_set()s $running_locally if the host name ends with ".l" or is
an is an ipv4 adress.

12 years agometaform: add missing lang="en"
Jason Woofenden [Sat, 17 Sep 2011 17:38:32 +0000 (13:38 -0400)]
metaform: add missing lang="en"

12 years agometaform: fix auto-generation of Reply-To email header
Jason Woofenden [Sat, 17 Sep 2011 16:48:16 +0000 (12:48 -0400)]
metaform: fix auto-generation of Reply-To email header

12 years agometaform: new names for standard template sections
Jason Woofenden [Fri, 16 Sep 2011 22:35:05 +0000 (18:35 -0400)]
metaform: new names for standard template sections

The new convention is to use the `$` prefix for sections perhaps variables that
are global to the document/article. This way you needn't worry about naming
conflicts (so long as your other data doesn't start with `$`.

Specificially, these were changed:

main_title -> $title
extra_headers -> $head
main_body -> $body

12 years agoadd: enc_linkify() (add <a> tags to urls in text)
Jason Woofenden [Wed, 7 Sep 2011 17:19:14 +0000 (13:19 -0400)]
add: enc_linkify() (add <a> tags to urls in text)

12 years agodb: added %f for floats in sql
Jason Woofenden [Fri, 5 Aug 2011 15:27:01 +0000 (11:27 -0400)]
db: added %f for floats in sql

Now you can put %f in your db_* calls, like so:

$rows = db_get_assocs('hammers', 'weight,length', 'where weight > %f', $min_weight);

12 years agoemail: allow comma and ampersand in subjects
Jason Woofenden [Tue, 26 Jul 2011 17:29:56 +0000 (13:29 -0400)]
email: allow comma and ampersand in subjects

12 years agoadd: now_yyyymmdd(), now_yyyymmddhhmmss()
Jason Woofenden [Sun, 12 Jun 2011 08:55:28 +0000 (04:55 -0400)]
add: now_yyyymmdd(), now_yyyymmddhhmmss()

12 years agoconvert_uploaded_image: activate exif rotation
Jason Woofenden [Fri, 3 Jun 2011 00:49:00 +0000 (20:49 -0400)]
convert_uploaded_image: activate exif rotation

12 years agometaform: new input type=email, type=search
Jason Woofenden [Wed, 25 May 2011 05:56:20 +0000 (01:56 -0400)]
metaform: new input type=email, type=search

12 years agoRevert "API CHANGE: removed format_options()"
Jason Woofenden [Tue, 24 May 2011 10:11:58 +0000 (06:11 -0400)]
Revert "API CHANGE: removed format_options()"

This reverts commit cd68b6037f8558fd98e07486282e2a25f9c4626b.

12 years agometaform: removed unused only_used parameter
Jason Woofenden [Tue, 24 May 2011 08:39:29 +0000 (04:39 -0400)]
metaform: removed unused only_used parameter

13 years agomake unit test results look good
Jason Woofenden [Mon, 25 Apr 2011 11:31:54 +0000 (07:31 -0400)]
make unit test results look good

And make passed tests accessible

13 years agoget rest of unit tests using new(ish) api
Jason Woofenden [Mon, 25 Apr 2011 11:10:20 +0000 (07:10 -0400)]
get rest of unit tests using new(ish) api

13 years agounit_test_func requires that type matches
Jason Woofenden [Mon, 25 Apr 2011 05:52:46 +0000 (01:52 -0400)]
unit_test_func requires that type matches

13 years agoenc_tab indents empty lines
Jason Woofenden [Mon, 25 Apr 2011 05:50:57 +0000 (01:50 -0400)]
enc_tab indents empty lines

13 years agoAPI CHANGE: removed format_options() (unused?)
Jason Woofenden [Mon, 25 Apr 2011 05:22:38 +0000 (01:22 -0400)]
API CHANGE: removed format_options() (unused?)

This was used it obsolete unit tests.

There is now a very similar function enc_pulled()

13 years agoremove basename prefix from url args
Jason Woofenden [Thu, 21 Apr 2011 01:19:25 +0000 (21:19 -0400)]
remove basename prefix from url args

13 years agoallow # in email subjects
Jason Woofenden [Tue, 19 Apr 2011 20:32:24 +0000 (16:32 -0400)]
allow # in email subjects

13 years agometaform: fix missing newline
Jason Woofenden [Tue, 19 Apr 2011 05:41:43 +0000 (01:41 -0400)]
metaform: fix missing newline

13 years agometaform: remove <!-- and --> from non-html files
Jason Woofenden [Tue, 19 Apr 2011 03:49:12 +0000 (23:49 -0400)]
metaform: remove <!-- and --> from non-html files

(template.php supports both <!--~foo {~--> and simply ~foo {~)

The former is great for html files (almost everywhere) because then the
template file is valid html. (Nice for finding html errors, and for syntax
hilighting.)

This patch switches to the short form for for non-html files.

13 years agometaform: improve email formatting of textareas
Jason Woofenden [Tue, 19 Apr 2011 03:37:41 +0000 (23:37 -0400)]
metaform: improve email formatting of textareas

13 years agometaform: fix email for opt_public_*
Jason Woofenden [Tue, 19 Apr 2011 03:36:56 +0000 (23:36 -0400)]
metaform: fix email for opt_public_*

13 years agopulldown options can be disabled
Jason Woofenden [Tue, 19 Apr 2011 01:00:08 +0000 (21:00 -0400)]
pulldown options can be disabled

13 years agometaform: ship basic stylesheet with layout
Jason Woofenden [Mon, 18 Apr 2011 09:02:27 +0000 (05:02 -0400)]
metaform: ship basic stylesheet with layout

13 years agometaform: php refactor, opt_public_*
Jason Woofenden [Mon, 18 Apr 2011 08:30:30 +0000 (04:30 -0400)]
metaform: php refactor, opt_public_*

13 years agoadd: _REQUEST_cut()
Jason Woofenden [Mon, 18 Apr 2011 08:29:30 +0000 (04:29 -0400)]
add: _REQUEST_cut()

13 years agotar.php better and configurable tmpdir
Jason Woofenden [Mon, 18 Apr 2011 03:43:23 +0000 (23:43 -0400)]
tar.php better and configurable tmpdir

13 years agoBREAKING: prefix "basename" var with "wfpl_"
Jason Woofenden [Mon, 18 Apr 2011 03:30:57 +0000 (23:30 -0400)]
BREAKING: prefix "basename" var with "wfpl_"

previous versions set $GLOBALS['basename'] and the "basename" variable in the
main site template.

Now it's "wfpl_basename" in both cases.

Also, stop checking for $wfpl_basename.css

13 years agoadd site-template, switch css->less
Jason Woofenden [Fri, 15 Apr 2011 22:02:14 +0000 (18:02 -0400)]
add site-template, switch css->less

13 years agonew options (don't do anything yet)
Jason Woofenden [Fri, 15 Apr 2011 18:40:35 +0000 (14:40 -0400)]
new options (don't do anything yet)

13 years agometaform impl: checkbox opts as bool in php
Jason Woofenden [Fri, 15 Apr 2011 18:35:53 +0000 (14:35 -0400)]
metaform impl: checkbox opts as bool in php

13 years agodb_printf(): add %$ (not encoded) param
Jason Woofenden [Sun, 10 Apr 2011 01:56:54 +0000 (21:56 -0400)]
db_printf(): add %$ (not encoded) param

13 years agocss "space between" hack only for margins
Jason Woofenden [Fri, 18 Mar 2011 02:13:48 +0000 (22:13 -0400)]
css "space between" hack only for margins

13 years agometaform css: fix spacing hack for legends
Jason Woofenden [Wed, 9 Mar 2011 19:49:39 +0000 (14:49 -0500)]
metaform css: fix spacing hack for legends

13 years agometaform: include charset metatag
Jason Woofenden [Wed, 9 Mar 2011 19:16:13 +0000 (14:16 -0500)]
metaform: include charset metatag

13 years agometaform: fix typo (cancel button feature)
Jason Woofenden [Mon, 21 Feb 2011 10:53:06 +0000 (05:53 -0500)]
metaform: fix typo (cancel button feature)

13 years agometaform: fix form beginning with section
Jason Woofenden [Mon, 21 Feb 2011 04:43:38 +0000 (23:43 -0500)]
metaform: fix form beginning with section

13 years agometaform: demo pulldown syntax
Jason Woofenden [Sat, 19 Feb 2011 02:08:03 +0000 (21:08 -0500)]
metaform: demo pulldown syntax

13 years agoadd: enc_pulled()
Jason Woofenden [Thu, 23 Dec 2010 05:50:19 +0000 (00:50 -0500)]
add: enc_pulled()

13 years agomade file_run() able to pass args
Jason Woofenden [Thu, 18 Nov 2010 11:08:05 +0000 (06:08 -0500)]
made file_run() able to pass args

13 years agofix format_mdy_to_ymd() to leave '' as is
Jason Woofenden [Wed, 10 Nov 2010 10:10:14 +0000 (05:10 -0500)]
fix format_mdy_to_ymd() to leave '' as is

13 years agometaform: make checkbox caption clickable
Jason Woofenden [Tue, 9 Nov 2010 10:11:52 +0000 (05:11 -0500)]
metaform: make checkbox caption clickable

13 years agoimprove :first-child hack
Jason Woofenden [Tue, 9 Nov 2010 09:59:14 +0000 (04:59 -0500)]
improve :first-child hack

13 years agometaform: use new syntax to show a template section
Jason Woofenden [Tue, 9 Nov 2010 09:19:23 +0000 (04:19 -0500)]
metaform: use new syntax to show a template section

13 years agometaform: fix table (missing <tr> and </tr>)
Jason Woofenden [Tue, 9 Nov 2010 05:09:07 +0000 (00:09 -0500)]
metaform: fix table (missing <tr> and </tr>)

13 years agoadded tem_auto_once() and friends
Jason Woofenden [Tue, 9 Nov 2010 03:55:13 +0000 (22:55 -0500)]
added tem_auto_once() and friends

13 years agometaform: autofocus
Jason Woofenden [Mon, 8 Nov 2010 05:40:03 +0000 (00:40 -0500)]
metaform: autofocus

13 years agometaform: fix typo and improve example
Jason Woofenden [Mon, 8 Nov 2010 05:37:14 +0000 (00:37 -0500)]
metaform: fix typo and improve example

13 years agometaform: fix name of title tem-sub
Jason Woofenden [Wed, 3 Nov 2010 21:48:23 +0000 (17:48 -0400)]
metaform: fix name of title tem-sub

13 years agometaform: can set options for pulldown/radio
Jason Woofenden [Sat, 30 Oct 2010 05:58:24 +0000 (01:58 -0400)]
metaform: can set options for pulldown/radio

13 years agometaform: added fieldset support
Jason Woofenden [Sat, 30 Oct 2010 00:49:22 +0000 (20:49 -0400)]
metaform: added fieldset support

13 years agometaform: improve and markdown INSTALL
Jason Woofenden [Fri, 29 Oct 2010 18:17:47 +0000 (14:17 -0400)]
metaform: improve and markdown INSTALL

13 years agoAPI CHANGE remove "format" arg from pulldown()
Jason Woofenden [Fri, 29 Oct 2010 06:30:09 +0000 (02:30 -0400)]
API CHANGE remove "format" arg from pulldown()

Both common option formats (PULLDOWN_ARRAY and PULDOWN_2D) are supported (and
auto-detected), and can be mixed. PULLDOWN_HASH support is removed (It wasn't
great anyway because you couldn't put in two options with the same value.)

13 years agometaform: add radio button support
Jason Woofenden [Thu, 28 Oct 2010 23:48:20 +0000 (19:48 -0400)]
metaform: add radio button support

13 years agometaform: hide img/thumb when blank
Jason Woofenden [Wed, 27 Oct 2010 04:30:42 +0000 (00:30 -0400)]
metaform: hide img/thumb when blank

13 years agoadd cancel button to edit/new page
Jason Woofenden [Tue, 26 Oct 2010 19:28:34 +0000 (15:28 -0400)]
add cancel button to edit/new page

13 years agostop including headers that should be in code/config.php
Jason Woofenden [Tue, 26 Oct 2010 19:16:02 +0000 (15:16 -0400)]
stop including headers that should be in code/config.php

13 years agoCHANGE LOGIN-REQUIRED API
Jason Woofenden [Tue, 26 Oct 2010 19:07:02 +0000 (15:07 -0400)]
CHANGE LOGIN-REQUIRED API

13 years agometaform: auto-add "back to listing" links
Jason Woofenden [Tue, 26 Oct 2010 19:06:39 +0000 (15:06 -0400)]
metaform: auto-add "back to listing" links

13 years agometaform: use new wysiwyg editor (ckeditor)
Jason Woofenden [Tue, 26 Oct 2010 17:52:56 +0000 (13:52 -0400)]
metaform: use new wysiwyg editor (ckeditor)

13 years agometaform: revamp codegen, fix hidden fields
Jason Woofenden [Tue, 26 Oct 2010 17:40:30 +0000 (13:40 -0400)]
metaform: revamp codegen, fix hidden fields

13 years agometaform codegen: use tem_auto_unset()
Jason Woofenden [Mon, 25 Oct 2010 05:30:26 +0000 (01:30 -0400)]
metaform codegen: use tem_auto_unset()

13 years agomake tem_set() default value to true
Jason Woofenden [Mon, 25 Oct 2010 05:39:09 +0000 (01:39 -0400)]
make tem_set() default value to true

So now that show('section') is depricated, we can use set('section')

13 years agoadd tem_auto_unset()
Jason Woofenden [Mon, 25 Oct 2010 04:57:14 +0000 (00:57 -0400)]
add tem_auto_unset()

13 years agorewrote template documentation
Jason Woofenden [Sun, 24 Oct 2010 01:14:38 +0000 (21:14 -0400)]
rewrote template documentation

13 years agoxhtml -> html5
Jason Woofenden [Sun, 24 Oct 2010 00:51:40 +0000 (20:51 -0400)]
xhtml -> html5

13 years agometaform's .htaccess: expires and css bump rewrite
Jason Woofenden [Sun, 24 Oct 2010 00:31:51 +0000 (20:31 -0400)]
metaform's .htaccess: expires and css bump rewrite

13 years agoform gen: refactor and simplify optional output
Jason Woofenden [Sat, 23 Oct 2010 23:45:45 +0000 (19:45 -0400)]
form gen: refactor and simplify optional output

13 years agometaform: if submit-only: s/*_edit_main/*_main/
Jason Woofenden [Sat, 23 Oct 2010 22:50:25 +0000 (18:50 -0400)]
metaform: if submit-only: s/*_edit_main/*_main/

13 years agometaform: always start password fields blank
Jason Woofenden [Sat, 23 Oct 2010 22:34:36 +0000 (18:34 -0400)]
metaform: always start password fields blank

13 years agometaform: indent html with tabs
Jason Woofenden [Sat, 23 Oct 2010 22:33:57 +0000 (18:33 -0400)]
metaform: indent html with tabs

13 years agometaform: fixed detection of file/image upload
Jason Woofenden [Sat, 23 Oct 2010 22:22:31 +0000 (18:22 -0400)]
metaform: fixed detection of file/image upload

13 years agomake metaform support file uploads
Jason Woofenden [Tue, 5 Oct 2010 20:56:14 +0000 (16:56 -0400)]
make metaform support file uploads

13 years agoMerge branch 'master' of gitorious.org:wfpl/wfpl
Jason Woofenden [Tue, 5 Oct 2010 08:21:03 +0000 (04:21 -0400)]
Merge branch 'master' of gitorious.org:wfpl/wfpl

13 years agofix docs for cms_display()
Jason Woofenden [Wed, 15 Sep 2010 22:12:15 +0000 (18:12 -0400)]
fix docs for cms_display()

13 years agomake metaform tarballs come with install doc
Jason Woofenden [Fri, 23 Jul 2010 05:21:49 +0000 (01:21 -0400)]
make metaform tarballs come with install doc

13 years agometaform: pretty captions in e-mails
Jason Woofenden [Sat, 10 Jul 2010 21:38:27 +0000 (17:38 -0400)]
metaform: pretty captions in e-mails

14 years agoadd unit_test_func(), convert unit_tests/format.php to use it
Jason Woofenden [Mon, 12 Apr 2010 01:27:06 +0000 (21:27 -0400)]
add unit_test_func(), convert unit_tests/format.php to use it

14 years agofix format_options() (it did nothing before)
Jason Woofenden [Fri, 9 Apr 2010 17:53:41 +0000 (13:53 -0400)]
fix format_options() (it did nothing before)

14 years agoadded unit tests for format_options
Jason Woofenden [Fri, 9 Apr 2010 17:47:33 +0000 (13:47 -0400)]
added unit tests for format_options

14 years agorevamp metaform so php holds db/form data as hash
Jason Woofenden [Tue, 6 Apr 2010 03:30:21 +0000 (23:30 -0400)]
revamp metaform so php holds db/form data as hash

14 years agoadd: tem_sets()
Jason Woofenden [Tue, 6 Apr 2010 03:28:43 +0000 (23:28 -0400)]
add: tem_sets()

14 years agoadd db_insert_assoc() and db_update_assoc()
Jason Woofenden [Tue, 6 Apr 2010 01:15:10 +0000 (21:15 -0400)]
add db_insert_assoc() and db_update_assoc()

14 years agoadded ordinalize() and tests for it
Jason Woofenden [Thu, 1 Apr 2010 11:43:49 +0000 (07:43 -0400)]
added ordinalize() and tests for it

14 years agodb_reposition(): fixed error messages
Jason Woofenden [Mon, 29 Mar 2010 19:46:25 +0000 (15:46 -0400)]
db_reposition(): fixed error messages

14 years agofixed db_reposition(x, 0)
Jason Woofenden [Mon, 29 Mar 2010 19:42:02 +0000 (15:42 -0400)]
fixed db_reposition(x, 0)

14 years agoadded unit test for db_reposition()
Jason Woofenden [Mon, 29 Mar 2010 19:41:34 +0000 (15:41 -0400)]
added unit test for db_reposition()

14 years agomade format_int() fail for 1.0 -> 10
Jason Woofenden [Mon, 29 Mar 2010 19:16:58 +0000 (15:16 -0400)]
made format_int() fail for 1.0 -> 10

format_int() and friends strip all not-numeric characters. This leads to
unexpected results when the user enters something with a decimal point.

ie 1.0 -> 10,  12.5 -> 125, etc

14 years agoadded more unit tests
Jason Woofenden [Sat, 27 Mar 2010 06:44:01 +0000 (02:44 -0400)]
added more unit tests

14 years agoencode.php: update comments/examples
Jason Woofenden [Sat, 27 Mar 2010 04:42:38 +0000 (00:42 -0400)]
encode.php: update comments/examples

14 years agoadded: db_reposition() (renumbering not tested)
Jason Woofenden [Tue, 23 Feb 2010 19:25:47 +0000 (14:25 -0500)]
added: db_reposition() (renumbering not tested)