CMS UPDATES
Get your freshly roasted peanuts at the famous
Gary's CMS Peanuts
located throughout the city

This is a named floating article that can be inserted anywhere any number of times.

• Set variable from database query result  
• Make numeric select  
• Make select  
• Make select from database query  
• Make radio checkbox  
• Float_this macro  
• Switch Macro  
• Hidden title  
• Article via email  
• Event Notifications  
• Insert cms variable  
• Line Height  
• Datepad macro  
• Chat and Link macros  
• Unnamed floating articles  
• Admin links can now be hidden  
• Calender year picklist  
• Macros can now be moved via links  
• Float macro specifies align and width  
• RSS feed enable  
• New Page Defaults  
• Date Format Macro  
• New Article View-by  
• Master default and page default articles  
• Removed CSS for Pagelinks and TOC  
• Article sort order  
• Style: Clear float = y  
• Style: Clear float = n  
• Another Query Macro Example  
• Creating a query to display the latest updates  
• Query Macro  
• Tool Tip  
• Save Button added to Edit Article  
• Buttons to create toc macros for article text  
• Table of Contents macros  
• Bold, Italic, Smaller, Larger, Quote, Over, Under, Strike, Ucase, Lcase, Cap, Bullet, Indent, hide_overflow  
• Border-color, Line-spacing, Character-spacing  
• Macro edit, delete, and move.  
• Direct insertion of images and textboxes  
• New Article Destination  
• Image macro  
• Chat  
• Webmail  
• RSS Feeds  
• Quoted text  
• Page banner and banner articles  
• Named Floating Articles  
• Template column width override  
• member_list member_email display  
• Image display width in image browser  
• Pagelinks, Gallerylinks and NOBR  
• External Links Format  
• New black css for css-2  
• UPDATE: Article toc  
• bottom macro  
• NEW: Raw edit with "Insert as new record"  
• NEW: Admin notify of new accts  
• NEW: Admin css  
• NEW: Floating menu script  
• NEW: Admin articles can show all html  
• NEW: CSS update for object padding  
• FIX: Non-Admin html tags  
• NEW: CSS 'plain'  
• NEW: Set all styles  
• NEW: Article pad CSS  
• NEW: Replace _style_ Format and more  
• NEW: article styles  
• NEW: Move article  
• NEW: inset text  
• NEW: Contact member status  
• NEW: Page links to be updated  
• NEW: article padding update  
• NEW: gallery macro for single gallery link  

Set variable from database query result
Sun 29 Mar 2009 06:43 AM By Gary Mays
more....
Fri 27 Mar 2009 09:44 AM By Gary Mays
<form action=index.php#article_01992>
<input type=hidden name=PG value=Updates>

Make numeric select
Thu 26 Mar 2009 03:07 AM By Gary Mays
This macro creates a numeric picklist.

HH:  MM:  
Make select
Thu 26 Mar 2009 03:02 AM By Gary Mays
This macro creates a form select from your list of values.

Select:
Make select from database query
Sat 28 Feb 2009 03:02 AM By Gary Mays
This macro creates a form select from a field in a database.

A hidden query appears just above this text that selects article titles in the center column of this page that are non-blank.

The make select from query macro produces this select:

Select title: 
Make radio checkbox
Sat 28 Feb 2009 03:05 AM By Gary Mays
This macro creates a radio or checkbox form element.

Choose: yes no
Select: first second third fourth
Fri 27 Mar 2009 09:46 AM By Gary Mays
<input type=hidden name=action value='showtext'>
<input type=submit name=submit value=Submit>
</form>


Float_this macro
Sun 22 Feb 2009 11:05 PM By Gary Mays
This rotating square (if php-ming is installed) is an embedded flash object.
This macro will float your text giving you control of the width and float position: left, center, right. Text will flow around left and right floats. The center float will stand by itself without any text flowing arount it.

The text is protected from most actions of other macros or styles by putting the text and and float code into a template variable that gets expanded at page output.

Suggested uses are embedding youtube or other video or audio.
Switch Macro
Sun 22 Feb 2009 11:39 PM By Gary Mays
Allows text or html code to be switched on with an action button on the same page or another page. An example of a fixed link that sets the variable 'action' to 'showtext':

http://index.php?PG=Updates&action=showtext#article_01914

Click here to switch-on a rotating box and a text box.

Click here to switch them off.

The box will be blank unless PHP-Ming is installed on your system.

An action set by a query macro for error, ok, ok but empty can also trigger the switch.

NEWSTUFF:
There are three types of actions on the query: load a page, load this page with action=something, set variable action=something so a switch or query macro below the macro setting the variable can act on the variable.

the set variable isn't currently implemented. I am deciding on the syntax:

example of query_ok future syntax:
1: http://example.com/somepage.php (loads the specified page)
2: action=ok (loads current page with this set
3: variable:action=ok (sets action=ok for use by another query or switch macro on this page

We can accomplish code switching with javascript. This CMS does do that in various places, but the query and switch macros together make possible fairly high level database programming.

This switched area floats left, right, center, or nofloat. You specify the width and float alignment. Text will flow around left and right floats. Centered floats will stand alone without any text flowing around it. You can select 'nofloat' and the the text will just be inserted in place of the macro.

The output is always on when no switch action variable is specified.

We can also have a query to activate the switch text with any of these three conditions: error, empty result, non-empty result.

You can insert simple system variables as $variable$ and request variables as @request@ into the switched text.

Use the non-switched mode (without a switch variable) to contain embedding code for YouTube, weather widgets, and other external content.
Hidden title
Sun 22 Feb 2009 01:19 PM By Gary Mays
This floating article has a hidden title which will only be visible to admin members.
A title can be hidden from view by appending it with !=.

CMS article create by email or delete by email requires a title.

An unnamed floating article without a title on a page where articles are sorted by title can use a hidden title to cause the article to sort above the desired non-floating article.

It will only be visible for privileged members only.

Article via email
Thu 19 Feb 2009 11:47 AM By Gary Mays
You send the following to cms_article@yourdomain.dom:
The correct userid and password (a hash of the password for security) is displayed below when you are logged-in. You can cut and paste the required fields: userid, password, and page into your mail program.

The Userid and Password fields below will be blank if you aren't logged-in.
Userid:
Password:
Action:new, update, or delete
Page:Updates
Title:This article was inserted via email
Newtitle:This text replaces the existing title when updating
Style:default
Location:center
position:top
The article text goes here after the cms parameters. Mailers wrap text lines by splitting and inserting a hard return at those wrapped positions. The cms article by email script will ignore those splits and require a blank line to cause a hard return to form a new paragraph.

We can create a new article, update an existing article, or delete an article by setting the action directive to new, update, or delete.


A new article won't be inserted if an article exists with the same page, title, and location.

Update updates first article that matches page, title, and and location. It updates position, style, title, and text only. Position won't be changed for update if left blank. Title will be changed to the newtitle string if it is non-blank. Hidden titles (titles appended with !=) can be used to allow cms mail to perform article updating.

Position, location, and style have the following defaults:

position default is 'top' can use top or bottom or a number. Leave blank for update to leave it where it is.

location default is 'center' can use banner, top, left, center, right, bottom

style default is 'default'


Delete deletes the first article that matches page, title, and location.


Only admin, editor, columnist, page_editor, and page_columnist can submit html codes.





Future mod is to allow attachments to be inserted into the article.

float is set to left, position is set to top for the mm inserts

name.jpg name.info name.txt

name.wmv name.jpg name.info displayed with the silverlight plugin

name.flv name.jpg name.info displayed with the flash media plugin

name.mp3 name.jpg name.info displayed with the flash media plugin

a further update to cms might be that article media by default will be attached to the article and kept in an article_media folder with each media name prefixed with the article id 01234_name.jpg

when media exists for an article and no macro references the media, then the admin should be reminded of those unreferenced media
Event Notifications
Fri 30 Jan 2009 10:59 AM By Gary Mays
Calendar event notifications have been implemented. You get email prior to a calendar event that is sent to your registration email address.

There is also a notify email address that can be your cell phone. This is also set in the update registration area. The EMail listed in the event is not used for notifications, it is used instead for an optional email link when other users can see your event such as for members or for public.

The event notify script runs at 13, 28, 43, and 58 minutes past the hour. This must be setup as a cron job by your system administrator. You should create a test event to see for yourself that event notification works: Click on Calendar when you are logged-in. Click on one of the day numbers in the calendar. Click on the Add event... link.

You select one or more notify times. The pre-defined times available are 15m, 30m, 1h, 2h, 4h, 8h, 1d, 7d, and 30d where 15m means notify 15 minutes before event.

The member registration has settings for default of event notify on/off, and notify times. These defaults are pre-loaded into the form when creating new events via the calendar. You can change those defaults in the new event form.

When using a cell phone for notification, you should keep the event title and description short within the 160 or so characters for an SMS (short message service) message. Some providers treat a message longer than the SMS message size as a multimedia message which can cost $0.25 per message, split into multiple SMS messages, or simply truncated.

This system cannot send true SMS messages, but you can send email to
phone-number@provider using the following formats:
AT&T for SMS: phonenumber@txt.att.net
AT&T for MMS: phonenumber@mms.att.net

Boost Mobile: phonenumber@myboostmobile.com

Nextel: phonenumber@messaging.nextel.com

Sprint: phonenumber@messaging.sprintpcs.com

T-Mobile: phonenumber@tmomail.net

Verizon for SMS: phonenumber@vtext.com
Verizon for MMS: phonenumber@vzwpix.com

Virgin Mobile: phonenumber@vmobl.com

Link: how to send mms and sms messages to cell phones has a list of providers.

Email sent to the member's 'Notify email' will have the minimal message: No labels of the text fields and no duplication of data from the subject into the message. This allows a cell phone to receive most messages with the size less that the maximum for SMS messages. Email sent to the member's 'Email' will have the title and date listed in the subject replicated in the message plus all fields will be labeled.

Disclaimer: Your system is most likely not multi-homed meaning that your site exists at only one provider and no duplicate backup sites are running. The reliability of notifications is extremely high but not absolute and is subject to whether the web server is running and every system involved in sending and receiving the notification.
Insert cms variable
Sat 20 Dec 2008 02:03 PM By Gary Mays
The var macro lets us insert any cms variable into the output:

{var|$_SERVER['SERVER_NAME']}=www.garymays.com
{var|$_SERVER['REMOTE_ADDR']}=38.107.191.92
{var|$ARTICLE['a_id']}=01858
{var|$ARTICLE['a_entered']}=2008-12-20 14:03:58
{var|$ARTICLE['a_on_time']}=2008-12-20 14:03:58
{var|$ARTICLE['a_off_time']}=2031-12-31 23:59:59
{var|$ARTICLE['a_time']}=2009-04-13 15:52:41

You can enter these macros manually, but it is easier to use the MAC link underneath articles when logged in as an admin user.
Line Height
Thu 04 Dec 2008 08:58 AM By Gary Mays
Style settings for line height now use 1% increments from 90% to 105% to allow better control with the smaller increments.
Datepad macro
Sat 12 Jul 2008 04:10 PM By Gary Mays
This macro creates a calendar datepad:
Monday
September
6
Monday
September
6
It can be set to float left, right, or center. Text will flow around left and right floats, but not around centered floats.
Chat and Link macros
Sat 19 Apr 2008 10:39 PM By Gary Mays
These macros now have underlining and target specifications.

You specify whether to underline the link or not and whether the link target is none, _top, or _blank.

_top is used to break out of a frame

_blank opens the link in a new window
Admin links can now be hidden
Sun 30 Mar 2008 09:16 PM By Gary Mays
Unnamed floating articles
Previously, unnamed floating articles floated into the succeeding article beginning with the title line.

Unnamed floating articles now begin just after the title line at the beginning of the article text for a more pleasing to the eye output.
Initially, all admin links are turned-on. Click on this at the top to turn them off:

 [Toggle page and article admin links]

Whether the admin links are all on or off, page and individual article links can be toggled by the following:

Click on Admin at the top to toggle the displaying of the page admin links.

Click on the body of an article to toggle the displaying of that article's admin links.

An empty article won't have anything to click-on, so admin links for those articles can only show when all admin links are turned-on.

Article index titles still have these admin links always visible:
  E (E) D M U (60) D

Gallery admin links still display as before, this may change.
Calender year picklist
Sun 30 Mar 2008 09:14 PM By Gary Mays
The range of years for the calender event editor is now the current year - 10 through 2031.
Macros can now be moved via links
Tue 18 Mar 2008 08:36 AM By Gary Mays
Macros inserted via the MAC link can be edited, deleted, and now can be moved. An image macro would have this link

 [image] Ed Del Up << < > >> Dn

to allow Edit, Delete, and move to: Prevous-paragraph, Previous-words, previous word, next word, next words, or next paragraph.

A paragraph ending is where an enter key is pressed while editing the article text.

Previous-words and next-words are eight words of movement.
Float macro specifies align and width
Tue 02 Oct 2007 11:17 AM By Gary Mays
The float macro specifies the alignment of left, center, or right and the article width for named floats. These settings override the align and width settings when making an article float as an unnamed float.

Unnamed floats just float in-place into the succeeding article and must have the align and width settings.
RSS feed enable
Tue 02 Oct 2007 04:15 AM By Gary Mays
Page edit now has the rss feed selector specified. When this is set, the latest page articles are available as an rss feed. Use the rss feed macro to create a link on any page that has the rss feed enabled.
New Page Defaults
Mon 05 Mar 2007 12:46 AM By Gary Mays
The page _page_default_ holds the settings for new pages (not for articles). Use Page: format, Page: edit, and Page: access links to update the _page_default_ page.
Date Format Macro
Sun 04 Mar 2007 09:02 PM By Gary Mays
This new macro lets you have total freedom in formatting the date. There are a few preformatted selections plus choose your own format input.
New Article View-by
Sat 03 Mar 2007 03:25 PM By Gary Mays
New articles previously inherited the view-by setting from the style settings.

Now, the new article view-by setting is in the page access page.
Master default and page default articles
Tue 20 Feb 2007 03:53 AM By Gary Mays
One article by 'default' on the _default_ page is the master default.

Individual page defaults are in articles on the _default_ page titled with the page name and by anyone except 'default' (The article titled 'home' is the default article for the home page).

The page default can specify 'default' as the style to cause the master default to be used.

All new articles initially have 'default' as the style.

All new page defaults initially have 'default' as the style.

Clicking on 'Admin: Article Defaults' will create the page default in the _default_ page if necessary and place you in the style editor/selector.

The articles on the _default_ and _style_ pages are sorted by the article title.
Removed CSS for Pagelinks and TOC
Tue 20 Feb 2007 01:52 AM By Gary Mays
Since we now have the ability to format articles, it will be easier to format the pagelinks and table of contents output especially since these macros usually appear alone or with other text needing the same format.
Article sort order
Mon 12 Feb 2007 07:56 PM By Gary Mays
The page format settings now include selections for the article ordering for the center column.

• Newest first - Newest articles appear first.
• Newest last - Newest articles appear last.
• Order - ordered by the article order value.
• Title - ordered by the article title.
Style: Clear float = y
Thu 08 Feb 2007 09:11 PM By Gary Mays
Floating text and image objects won't extend into succeeding articles when the style setting 'Clear float' is set to 'y'. The default action is 'n'.
Style: Clear float = n
Thu 08 Feb 2007 09:11 PM By Gary Mays
Floating text and image objects will extend into succeeding articles when the style setting 'Clear float' is set to 'n'. This is the default action.
Another Query Macro Example
Sun 04 Feb 2007 02:45 PM By Gary Mays
The following query and query output lists up to 10 chat entries from the past 180 days:

QUERY selected ACTION = '(none)'
Activate action=''
Success action=''
Fail action=''
Empty action=''

QUERY ''
select concat('<div style="background-color:',color,'; font-weight:bold; font-family:arial, sans-serif;"> ', name, ' ', time, ' ', message,'</div>') as `Current Messages`
from c_chat
where (to_days(now())-to_days(time)) <= 180
order by time desc
limit 10



Click here Member's Chat to make a chat entry.
Creating a query to display the latest updates
Tue 20 Feb 2007 04:10 AM By Gary Mays
Click on MAC underneath the article and select the query macro. Input the following query:
select a_id as ID, a_entered as `Date Entered`,
to_days(now())-to_days(a_entered) as `Days Old`, a_page as Page,
concat('<a href="/cms/index.php?PG=',a_page,'#article_',a_id,'">',a_title,'</a>') as `Article Link`
from c_article, c_page
where a_page = p_name
and a_title <> ''
and a_view_by like '%guest%'
and p_view_by like '%guest%'
and a_visible = 'y'
and p_visible = 'y'
order by a_entered desc
limit 15

to get this output:
The latest updates.
IDDate EnteredDays OldPageArticle Link
020312009-06-07 02:56:26456AHS Class of 1962Putnam Jr High Ashland Kentucky 1958-1959 Graduates
020292009-06-07 02:37:31456AHS Class of 1962Some Class Pictures of Gary Mays
020282009-06-07 01:23:31456AHS Class of 1962Coles Jr High Ashland Kentucky 1958-1959 Graduates
020712009-05-04 23:31:23490homeRadioTime
020072009-03-29 06:43:59526UpdatesSet variable from database query result
019932009-03-27 09:46:16528Updatesend form!=
019922009-03-27 09:44:24528Updatesbegin form!=
019312009-03-26 03:07:02529UpdatesMake numeric select
019912009-03-26 03:02:29529UpdatesMake select
019302009-02-28 03:05:43555UpdatesMake radio checkbox
019292009-02-28 03:02:29555UpdatesMake select from database query
019142009-02-22 23:39:25561UpdatesSwitch Macro
019132009-02-22 23:05:25561UpdatesFloat_this macro
019122009-02-22 13:19:54561UpdatesHidden title
019902009-02-22 13:19:54561UpdatesHidden title!=


The query output is currently in a fixed dump of the query result using html tables.

Articles viewable by guests on pages viewable by guests are selected.

Query Macro
Sun 04 Feb 2007 05:09 AM By Gary Mays
You can make queries to display selected fields of selected databases. The query macro does this. Use the MAC link to enter a query macro.

Some rules:
Queries must begin with 'select' or 'create temporary' only. This is to prevent deleting or updating a database which could result in complete loss or trashing of your data.

A result limit of 100 will be added to the query if no limit was specified.

Articles with queries must have the userid 'admin' or some of the imbedded html will be stripped.


This query produces the output below the query:

QUERY selected ACTION = '(none)'
Activate action=''
Success action=''
Fail action=''
Empty action=''

QUERY 'The last 20 articles viewable by everyone'
select a_id as ID, a_entered as `Date Entered`,
to_days(now())-to_days(a_entered) as `Days Old`, a_page as Page,
concat('<a href="/cms/index.php?PG=',a_page,'#article_',a_id,'">',a_title,'</a>') as `Article Link`
from c_article, c_page
where a_page = p_name
and a_title <> ''
and a_view_by like '%guest%'
and p_view_by like '%guest%'
and a_visible = 'y'
and p_visible = 'y'
order by a_entered desc
limit 20

The last 20 articles viewable by everyone
IDDate EnteredDays OldPageArticle Link
020312009-06-07 02:56:26456AHS Class of 1962Putnam Jr High Ashland Kentucky 1958-1959 Graduates
020292009-06-07 02:37:31456AHS Class of 1962Some Class Pictures of Gary Mays
020282009-06-07 01:23:31456AHS Class of 1962Coles Jr High Ashland Kentucky 1958-1959 Graduates
020712009-05-04 23:31:23490homeRadioTime
020072009-03-29 06:43:59526UpdatesSet variable from database query result
019932009-03-27 09:46:16528Updatesend form!=
019922009-03-27 09:44:24528Updatesbegin form!=
019312009-03-26 03:07:02529UpdatesMake numeric select
019912009-03-26 03:02:29529UpdatesMake select
019302009-02-28 03:05:43555UpdatesMake radio checkbox
019292009-02-28 03:02:29555UpdatesMake select from database query
019142009-02-22 23:39:25561UpdatesSwitch Macro
019132009-02-22 23:05:25561UpdatesFloat_this macro
019122009-02-22 13:19:54561UpdatesHidden title
019902009-02-22 13:19:54561UpdatesHidden title!=
019082009-02-19 11:47:22564UpdatesArticle via email
019022009-01-30 10:59:16584UpdatesEvent Notifications
018582008-12-20 14:03:58625UpdatesInsert cms variable
018502008-12-04 08:58:04641UpdatesLine Height
018222008-07-20 13:14:16778membersMembers access to the center column content

Future database macros will allow creation and updating of tables. This macro is laying the groundwork for mobile phone phone-book, links, and notes databases.
Tool Tip
Sun 04 Feb 2007 04:56 AM By Gary Mays
HTML elements have an optional 'title' attribute, when set will cause a pop-up tool tip to appear whenever the mouse pointer hovers over the text with the title set.

The last sentence is bracketed with the tt (for tool tip) macro to create a pop-up tool tip. This text displays in a popup tooltip when the mouse pointer hovers over the first sentence: 'This text was created with the tooltip macro.'.

You will see this tool tip when the mouse pointer is over that sentence.

There is a [tt] button on the edit article window that will bracket highlighted text with the {tt|--the tooltip text--} and {/tt} macros.
Save Button added to Edit Article
Fri 02 Feb 2007 01:06 PM By Gary Mays
A new button named 'Save' will save your article, then return to Edit Article.
Buttons to create toc macros for article text
Fri 02 Feb 2007 11:12 AM By Gary Mays
In the edit article window, four buttons have been added to handle toc and empty macros plus the htmlentitles value of an empty macro.

[{}] Inserts braces around selected text.

[&#123;&#125;] Inserts htmlentities value of braces around selected text.

[{toc_display}] Inserts a toc display macro at the cursor position.

[{toc}] Inserts a toc echo macro around selected text.
Table of Contents macros
Wed 31 Jan 2007 09:50 PM By Gary Mays
{toc|toc_name|some data}
toc will append the data to the named toc and echo the data into the article's output.

{tocn|toc_name|some text}}
tocn is for toc output with no echoing of the text.

{toc_display|toc_name}
Displays the named toc built with toc and tocn

When the toc name is 'this' then the toc is only for this article. Any other name makes the toc display and toc insert available for any article.

When 'this' is the toc name the toc is saved into a template variable as {toc_this01234} where 01234 is some article number. If the toc-name was xxxx then the toc is saved into {toc_xxxx} and would be available for display by any article on the same page.

When editing, highlight text to be in the toc, then click on the [{toc}] button to apply the toc macro to the text. The button creates a toc macro with 'this' as the name to keep the toc private to the current or this article.


This text:
------------------------------
{under}Ingredient list in the order used in the recipe{/under}
{toc_display|this}

Put {toc|this|1 pound of mashed potato mix} into a large bowl.

Add {toc|this|1/2 cup of milk} and mix slowly.

Sprinkle {toc|this|one small package of pixie dust} onto the top.

Produces:
------------------------------
Ingredient list in the order used in the recipe
1 pound of mashed potato mix
1/2 cup of milk
one small package of pixie dust

Put 1 pound of mashed potato mix into a large bowl.

Add 1/2 cup of milk and mix slowly.

Sprinkle one small package of pixie dust onto the top.

------------------------------

Now, lets test the use of the toc macro named '123':


This text:
------------------------------
{toc_display|123}
{tocn|123|First item}1
{tocn|123|Second item}2

Produces this:
------------------------------
First item
Second item
1
2

{toc_display|123} can also be used in other articles on this page.

These toc macros are among those macros that don't have admin links to edit, move, or delete.
Bold, Italic, Smaller, Larger, Quote, Over, Under, Strike, Ucase, Lcase, Cap, Bullet, Indent, hide_overflow
Tue 30 Jan 2007 07:00 AM By Gary Mays
Underlining, strike through, overlining, upper case, lower case, capitalize, and blink have been added to the text formatting commands.

{under}underlined text{/under}
underlined text


{over}overlined text{/over}
overlined text


{over}{under}overlined and underlined combined{/under}{/over}
overlined and underlined combined.


{bullet}Text prefixed with bullet and nonbreaking space
• Text prefixed with bullet and nonbreaking space

{indent}Text to be indented.
 Text to be indented.

{indent}{bullet}Indent and bullet
 • Indent and bullet

{strike}Strike through text{/strike}
Strike through text

{quote}Quoted text: Now is the time for all good beings to come to the aid of man.{/quote} Followed by normal text.
Quoted text: Now is the time for all good beings to come to the aid of man.
Followed by normal text.

{lcase}Lower Case Text{/lcase}
Lower Case Text

{ucase}Upper Case Text{/ucase}
Upper Case Text

{cap}capitalized text{/cap}
capitalized text

These are {small_caps}small caps{/small_caps}
These are small caps

These are {small_caps}{cap}small caps{/cap}{/small_caps}
These are small caps


{smaller}This text will be smaller.{/smaller}
This text will be smaller.

{larger}This text will be larger.{/larger}
This text will be larger.

{larger}{larger}This text will be even larger.{/larger}{/larger}
This text will be even larger.
Most of these formats can be nested like this.

{blink}blinking text{/blink}
blinking text
(Internet Explorer has chosen to ignore the css style 'text-decoration: blink'.)

{hide_overflow}Text from other sites such as from an RSS macro that could have content such as pictures or links that overflow the column and now will be truncated at the edge of the column.{/hide_overflow}
Border-color, Line-spacing, Character-spacing
Mon 29 Jan 2007 07:40 PM By Gary Mays
Three more text formatting selectors have been added to the title and text styles.

You can now select border color, elect line spacing in percent, and adjust character spacing.
Macro edit, delete, and move.
Mon 29 Jan 2007 07:34 PM By Gary Mays
Macros inserted via the MAC link now can be edited, deleted, or moved. An image macro would have this link
 [image] Ed Del T U D B
to allow Edit, Delete, move to Top, move Up, move Down, and move to Bottom. The Up and Down aren't yet implemented.

Some 'macros' inserted via the MAC link are actually not macros but are template variables inserted after processing of all articles on a page.

Some facility for deleting or moving those template variables is being considered.
Direct insertion of images and textboxes
Mon 29 Jan 2007 06:52 PM By Gary Mays
Images and inset text can be inserted directly instead of via the IMG and TXT objects by using the MAC link and selecting Image or Inset.
New Article Destination
Thu 25 Jan 2007 12:39 PM By Gary Mays
The content destination area: banner, top, left, center, right, and bottom selections have been added to the new article input form.
Image macro
Thu 25 Jan 2007 08:08 AM By Gary Mays
The macro installation for image now uses a picklist to view one image at a time for selection. Further, the image-file.txt text file associated with an image is added to the caption. There are buttons to clear and restore the image-file.txt from the caption text area.
Chat
Wed 17 Jan 2007 09:57 PM By Gary Mays
Member chat is now available on all domains hosted at Piddler.Net. Currently there are no private chats and no rooms with keys.

The chats are private to members of your page that are logged-in.

more....
Webmail
Wed 17 Jan 2007 09:52 PM By Gary Mays
An update to webmail accessible via
Get your freshly roasted peanuts at the famous
Gary's CMS Peanuts
located throughout the city

This is a named floating article that can be inserted anywhere any number of times.
Farble.Net and Piddler.Net web pages. Piddler.Net is preferable since the mail resides on the same server.

You need your mailbox userid and password. All domains hosted at Piddler.Net and Farble.Net are preset and a choice can be made.

Aim.com web mail and everyone.com email are also available.
RSS Feeds
Wed 17 Jan 2007 12:58 PM By Gary Mays
The link to http://yourdomain.com /css/rss.php?PG=name will return abbreviated information on the latest articles for the named page.

The r_rss field in the page record must be set to 'y'.
The page must be viewable by guests.
The page must be visible.
Articles listed are those viewable by guests.
The latest 10 article titles and dates are shown.

The initial implementation of RSS feeds uses a lot of preset conditions such as the image and description. Eventually, settings for these items will be added.

This macro

 {rss_subscribe|Subscribe to RSS feed for this page}

will create

  Subscribe to RSS feed for this page


Nothing is output by the macro if the page feed is undefined or inaccessible by guests.

Quoted text
Tue 16 Jan 2007 05:22 PM By Gary Mays
A new css entry in the 'plain' css defines quote for use in quoting source documents.

This: {quote}Now is the time for all good beings to come to the aid of man. The quick brown fox jumps over the lazy dog.{end}

Becomes this:
Now is the time for all good beings to come to the aid of man. The quick brown fox jumps over the lazy dog.
Page banner and banner articles
Tue 16 Jan 2007 12:19 PM By Gary Mays
The default page banner is specified in the PAGE:Edit form in the banner field as an image file, or a text string. When left blank, then the banner from the _default_ page is used. This was initially set to
{company} {page}
to allow all new pages to at least have a defined banner.

{company} is replaced by the Company field set in PAGE:Edit,
currently = 'Gary's Desk'.

{page} is replaced by the Page name,
currently = 'Updates'.

The default page banner is overridden by one or more articles created for the banner area.

If you do not want a banner on a page just create an empty banner article.

If you are missing the _default_ or _style_ pages, please inform the webmaster (use the CMS link on garymays.com).
Named Floating Articles
Mon 08 Jan 2007 04:19 AM By Gary Mays
Floating articles can be named. Named floating articles are saved into a template variable beginning with
Get your freshly roasted peanuts at the famous
Gary's CMS Peanuts
located throughout the city

This is a named floating article that can be inserted anywhere any number of times.
'float:' and ending with the float_name. The float macro will create the float template variable for you: the float macro {float|name} is translated into the template variable {float:name} by the macro processor.

You would insert {float|name} with the float macro into any other non-floated article to cause it to display. It can be inserted into any number of articles.

When you logged in as an admin and a named floating article isn't referenced by including it's template variable ({float:float_name}) in an article on the page, then it is displayed at the top of the page.

Set a named floating article to appear on all pages to make it available site wide.

These named floating articles will not appear in the table of contents.
Template column width override
Mon 08 May 2006 12:41 AM By Gary Mays
The override settings now range from 0 to 1000 for the left, center, and right column widths.
member_list member_email display
Sat 29 Apr 2006 07:49 PM By Gary Mays
To keep a user from being displayed in a member_list or member_email list, just set the e_mail to 'none' (without quotes). Users at registration cannot use 'none', but admins at 'BROWSE: Members' can put any string in the e_mail field.
Image display width in image browser
Sat 29 Apr 2006 05:57 PM By Gary Mays
Images that are wider than the screen width will have the display-width limited to the screen width.
Pagelinks, Gallerylinks and NOBR
Wed 26 Apr 2006 10:31 AM By Gary Mays
Horizontal page links now will be output with each page name non-breaking. Any page name with imbedded spaces will appear on the same line. Vertical links ({pagevlinks}) are more likely to need to break to fit into a column, so those links will flow onto the next line if necessary.

Gallerylinks will not break onto the next line when the gallery name contains spaces. The whole name will move to the next line if necessary.
New black css for css-2
Sat 15 Apr 2006 03:53 PM By Gary Mays
External Links Format
The classes linkscategories and linksitem format the external links. You can set the width, font, colors, and just about anything by modifying the .linkscategories and .linksitem css selectors.
black sets all areas white on black
blackstars sets all areas white on black with black-sky with stars background

must force the background color to appear before the background image in the css list by inserting sort prefix in the c_sortprefix field.
UPDATE: Article toc
Sat 15 Apr 2006 08:35 AM By Gary Mays
The title of the article that has the table of contents macro is not included in the table of contents list.
bottom macro
Mon 13 Mar 2006 07:17 AM By Gary Mays
{bottom} outputs a bottom link named 'Bottom' to go to the bottom of the page.

Click Bottom

You can also use the 'Link' macro with url = '#bottom' and description = "Click here to go to the bottom" (your choice of description).

Click here to go to the bottom of the page
NEW: Raw edit with "Insert as new record"
Fri 14 Apr 2006 11:29 PM By Gary Mays
Added top and bottom links
added column headings each 25 lines

Added button to the edit form: "Insert as new record" to let you make a copy of an existing record
NEW: Admin notify of new accts
Fri 14 Apr 2006 11:26 PM By Gary Mays
partially implemented

just shows list of 'new' accounts without figuring out whether user or moderator needs to approve....
NEW: Admin css
Fri 14 Apr 2006 08:56 PM By Gary Mays
all admin css have been moved to a separate name 'admin'

a new link at EDIT: ADMIN-CSS will let you style the admin links that will override any .admin specifications in your primary style sheet
NEW: Floating menu script
Thu 13 Apr 2006 02:20 PM By Gary Mays
An editable script that can be used in scripts by 'admin' will float your menu at the bottom left (I will try to determine how to make to float to the right).

The requirements:

• article autospace and justify must be turned-off

• the article must be by 'admin' or the script code will be stripped out

• objects cannot be inserted into the article - you can insert html in the editable menu part to show pictures or text or links ...

• all template variables can be used (datetime, top, bottom, ...)

• some macros can be used (haven't tried any, just don't try to insert a gallery)

• do not use the default style or a named style - autospace could get set...

It seams to work regardless of placement, but to prevent your article padding from showing, just put the article in the bottom content area and turn-off the byline.

Select 'all' pages if desired, or copy it to a page.

judy.baltimore.nu has the script installed at the bottom of all pages.


NEW: Admin articles can show all html
Thu 13 Apr 2006 01:55 PM By Gary Mays
Previously, some HTML tags were stripped from all articles at display time. Now, articles by 'admin' can use any html code including javascript and style scripts.
NEW: CSS update for object padding
Thu 13 Apr 2006 02:09 PM By Gary Mays
All objects inserted into articles now use the same padding classes:

.object-left used when object is left aligned

.object-center used when object is centered (also sets text-align to center)

.object-right used when object is left aligned

I will try to add the new classes to all of the various schemes.

The primary css should only do a default black on white color scheme. It would also define all sizes, padding, margins.

Any color schemes such as 'burleywood' should modify the colors also.

The black-blue-gray-blue is a modification of the default scheme. It contains the complete css with only the colors changed.

The problem with having more than one complete css or primary css is having to match all classes and sizes. Eventually there will be a way to change backgrounds, foregrounds of all areas. In the meantime, there should only be ONE primary css in use so that any bugs can be fixed by the cms programmers and uploaded to all sites. Your color schemes won't be affected.
FIX: Non-Admin html tags
Sun 09 Apr 2006 04:48 PM By Gary Mays
html tags are now being stripped for non-admin users
NEW: CSS 'plain'
Sun 09 Apr 2006 02:20 PM By Gary Mays
A new css scheme named 'plain' has been created that uses black on white and has updated padding, margins, and other general formatting. This scheme has been uploaded to all CMS sites. Do not modify it. Updates will be applied as necessary.
NEW: Set all styles
Wed 05 Apr 2006 07:15 PM By Gary Mays
A new admin link at the top of the page (may relocate position later) lets you set all center column article styles to a predefined style. You also can select 'default' and 'clear all styles'.
NEW: Article pad CSS
Sun 02 Apr 2006 06:01 PM By Gary Mays
.apad defines the format for between article padding set via PAGE: format

try setting these selectors in your main CSS:

selector - property - value
.apad text-align center
.apad font-size 12px

.apad is for the whole page

left column .apad is set using the selector ".left .apad"
center column .apad is set using the selector ".center .apad"
...


NEW: Replace _style_ Format and more
Sat 01 Apr 2006 11:29 AM By Gary Mays
The style form will let you modify the article's {newfloat} current style. It doesn't matter whether the article has a named style or has styles set.

Changing an article's style via the style form removes the associated _style_ reference while retaining the style that it has.

The new 'Replace _style_ Format' at the bottom of the style form will let you replace the _style_ article's style to that of the form. This method provides a quicker path to modify or create a style on the _style_ page.
NEW: article styles
Thu 02 Mar 2006 01:42 AM By Gary Mays
A new field 'a_style' for articles optionally names a style: either 'default' or a title from the _style_ page.

A new article has a_style = 'default' unless you change it.

The 'default' article for a page can reference a _style_ title or be blank. It may have non-named styles applied. If a _style_ title is named, then the default article and all articles using 'default' will be formatted the same as the _style_ article.

Articles referencing the 'default' style and no default style exists will have a plain format and the admin will see a highlighted warning.

If a _style_ title is referenced that does not exist will result in a plain format and an admin warning. {newfloat}

A plain format is the default page format accessed via the CSS link. The CSS formats are global: if you change the 'default' or other CSS format, then all pages using that CSS format will change. Soon, a page style using a form almost like the article style form will be implemented. This will replace the CSS2 specification currently in use.

The reason for the global CSS is for the CSS to complement the page template to provide site-wide standard formats for pages. The default CSS basically sets sizes, fonts, margins, and page backgrounds.
NEW: Move article
Wed 29 Mar 2006 12:08 PM By Gary Mays
move article now has
top, 10%, ... 90%,bottom

for verticle position to replace just top and bottom

a future 'move vertically' will give a picklist of article titles for exact placement.
NEW: inset text
Sat 18 Feb 2006 10:56 PM By Gary Mays
Inset textbox width is reduced at run-time to fit into columns if necessary.
NEW: Contact member status
Mon 27 Mar 2006 09:26 AM By Gary Mays
Userid -- Name (click to email) -- Status

show status only to editor and admin


Set email to '' if you don't want your id entered.
NEW: Page links to be updated
Mon 27 Mar 2006 08:31 AM By Gary Mays
Page links will become like the gallery links: The current page link will appear in the list of page links with some attributes applied (currently underline and overline).
NEW: article padding update
Mon 13 Mar 2006 05:40 PM By Gary Mays
Article padding is what is inserted after each article. Padding can be specified for the left, center, and right content areas.

Try using top and bottom links with a horizontal rule divider:
Use PAGE: format and set the center_pad to:

{top} {bottom}<hr>

you can format the article padding with these css selectors:

.center_pad
.left_pad
.right_pad

Use EDIT: CSS to add formatting for the article padding:

Create new css entries for text-size and text-align:

selector: .center_pad
property: text-size
value: 10px

selector: .center_pad
property:text-align
value: center


NEW: gallery macro for single gallery link
Sat 25 Feb 2006 01:50 AM By Gary Mays
We currently have these two methods of selecting galleries at run-time:

Gallery Links - Create a list of links to galleries in selected folder

Gallery Picklist - Create a picklist of links to galleries in selected folder

To be added:

Gallery Link - Create a link to a selected gallery.

H

Login
Gary's Desk
Powered by Gary's CMS 1.0
Login