Recent Changes - Search:

Home Pages Pidgin   Azarennya (S|N) Mac Textanium Reference ToDo Food Local Edit

Local: Hide

Language: Hide

Fantasy: Hide

SciFi: Hide

Film: Hide

Music: Hide

REALbasic: Hide

ResourcesGarageUniversityWebRingForums:REALElfDataPlugins and Code:BKeeneyDeclareSubEinhugurJoeRestrepoTempelmannZAZ

Coding: Hide

Forums:PowWebPHPWebmasterCodingWalkersPerlIntroMonksPHPJavaScriptToolboxUnobtrusiveJavaScriptJavaScriptCompressorRegularExpressions (test)JSLintSQLCocoaCocoaBuilderCocoaDevCocoaLabAppleScriptBBSUserlandFaqintoshFileMakerFileMakerTipsFileMakerWorldFileMakerPlugins

Science: Hide

History: Hide

1421

News/Politics: Hide

Cults/Crime: Hide

ClambakeInfidels

Miscellaneous: Hide

ShowPHP

Show.php uses a template (e.g., show/blog.php) to organize the layout of the web page, and maybe to decide what to display if that isn't specified.

Less sophistication

No tags, no indexes. If you want items pulled up by date, begin the title with a date, e.g., 2007-08-26--President_Bush_Speaks.

All searches return items sorted by name, but you can do a "date search" which matches only items beginning with a numeric date and sorts most recent entries (highest dates) first.

Special lines in the entry

The first three lines of each entry (stripped of tags) are special.

  1. First line is the entry title.
  2. Second line is tags -- any text meant to be found in a search but not displayed on the web page.
  3. Third line is used as the entry summary -- so that it can be displayed in search results, right beneath the entry title. (It's OK if the line wraps.)

(Sidenote: I can alter the editor to save a file as an entry, not a file, whenever the filename slot is blank -- it should generate the filename from the first line of the file.)

Dated vs. undated entries

Entries whose names begin with a date (a string in ####-##-## format) are saved separately from other entries. Dated entries are sorted by month; thus all entries with names beginning with "2008-04" are stored in a "2008-04" folder.

Undated entries are stored in folders by their first three characters (in lowercase). Thus an entry "McDonald" is stored in the "mcd" folder.

Search

The search URL is something like: find?q=the+text+to+find&n=20&a=Last_Entry_on_Previous_Page (where "q" is the text to find, "n" is the number of entries to display per page, and "a" is the entry after which to resume the search).

There's room for growth here. I'll want to be able to exclude certain items from the search, e.g., entries containing "film" in the tagline.

Editing tools

Most of the magic will be in the editor. I'll want a plugin to load a new dated entry (a template) into the editor.

I'll want a text tool to generate a hidden DIV


More sophistication

Tags

To add a tag to an entry, you'd enter something like <?php tag('nouns'); ?>. The tag() function would add the current page's title to the tag index for "nouns". (Alternate syntax: <!--tag:nouns-->)

Alternative to tags: Page lists

Just add entry names to a static list, in the order in which the entries should be displayed.

Alternative to tags: Search results

Search for a phrase. Matches are naturally presented in alphabetical order by entry name.

Search for latest?

Entries should also be sortable by date (latest first usually). The log could serve as an index-by-date, but really we need a separate "date" index for entries.

Use header()

Don't use eval() to run embedded PHP code. Output nothing, build the page, then pass the page address to 'header()'. (VERIFY: If you call one script by URL and that script runs another URL via header(), it's still the URL you specifies that shows up in the browser's URL bar, right?)

Edit - History - Print - Recent Changes - Search
Page last modified on August 26, 2007, at 05:17 PM