July 05, 2008 | 05:42 PM  
Welcome

Don't have an account yet? You can create one, it is free, just click here

as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.

 • •  Control Panel - Register - Login  • • 
Current Stable MDPro Lite 1.0821 Download
   30-Nov-1999  Print current page  Show map

g. AT commands

g. AT commands

Here's the complete list of AT commands taken from the AT Module documentation by Shawn McKenzie:

Main theme commands:

[modules]

Defines the main content area where the modules are displayed

[date]

Displays current user date

[time]

Displays current user time

[user]

Displays the logged in user or anonymous

[user-welcome]

Displays Welcome Username

[user-login]

Displays a horizontal user login consisting of Username, Password, Remember me checkbox and submit button

[user-links]

Displays links for logged-in user (My Account | Logout) and anonymous user (Register | Login)

[banners]

Displays the banners (from PostNuke Banners)

[banners-type1] through [banners-type99]

Displays banners by ID Type 1-99 (from PostNuke .723 Banners)

[footer-msg]

Displays the Footer Message (from PostNuke Settings)

[open-table]

Starts a table, 100% width <­table><­tr><­td>

[close-table]

Closes the table<­/td><­/tr><­/table>

[open-table2]

Starts a table, width sized to contents <­table><­tr><­td>

[close-table2]

Closes the table<­/td><­/tr><­/table>

[table-content]

Displays the table content in your table (used in table1 and table2 templates)

[site-slogan]

Displays the site slogan from Administration, Settings

[site-name]

Displays the site name from Administration, Settings

[search]

Displays a search text field and submit button to search the core PostNuke areas of your site (comments, downloads, faqs, reviews, sections, stories, users, weblinks)

[logo-image]

Displays the standard or custom module logo image that in AutoTheme administration

{image-path}

The theme images directory

{theme-path}

The theme directory

Block commands:

[block-content]

Displays the Block Content in your block

[block-title]

Displays the Block Title in your block

[left-blocks]

Displays the Left Blocks

[center-blocks]

Displays the Center Blocks

[right-blocks]

Displays the Right Blocks

[AutoBlock Name-blocks]

Dynamic commands for each AutoBlock name

[Block Name]

Dynamic commands for each individual named block

Article commands:

[article-edit-del]

Displays Article Edit and Delete links for admins

[article-full]

Displays full Article text

[article-more]

Displays the Article Read More... link

[article-notes]

Displays the Article notes

[article-summary]

Displays the Article summary text

[cat-title]

Displays the Article category and title

[posted-by]

Displays the Article posters name

[posted-date-time]

Displays the date and time of the Article posting

[topic-image]

Displays the article topic image

[article-reads]

Displays the number of times the article has been read

Colors used by modules:

{color1}

Background Color 1

{color2}

Background Color 2

{color3}

Background Color 3

{color4}

Background Color 4

{color5}

Text Color 1

{color6}

Text Color 2

{color7}

Table Border Color 1

{color8}

Table Background Color 1

{color9}

Table Border Color 2

{color10}

Table Background Color 2



  • How to use AT commands:

    As you design your Main Page template, keep in mind the basic layout elements of MDPro. The locations where these are to be placed are specified in your HTML templates using comment commands, standard HTML comments that have an embedded AutoTheme command. AutoTheme commands are enclosed in brackets [ ] and take the following form:

Example: <­!-- [command] -->

<­td><­!-- [left-blocks] --><­/td>

Commands that are used inside of HTML tags themselves are not placed in a comment and are enclosed in braces { }.

Example: {command}

<­font color="{color7}">

  • CMS Specific Tables and Colors

Two theme tables and several colors are used by many core and third-party CMS modules. The border and background color of the tables can be configured in AutoTheme administration. In addition, you can configure templates for the Table 1 and Table 2. These will override the table colors that you specify.

  • Images and Other Files

The base location of your CMS page is where your CMS index.php resides. Therefore, images and other files such as scripts that are in a sub-directory of your theme directory will need to use a path relative to where the CMS index.php resides. So if you have your images in the images directory an <­image> tag and <­script> tag would look like this:

Example <­img src="themes/AutoTheme/images/image.gif">

Example: <­script src="themes/AutoTheme/javascript/script.js">

Two commands are available for referencing paths in your templates. The first is for your theme directory and the second is for your theme images directory:

Command: {theme-path}

Example: <­script src="{theme-path}javascript/script.js">

Command: {image-path}

Example: <­img src="{image-path}image.gif">

  • PHP code

Of course if there isn't a command for what you want to do or if you don't like the way a command functions, you can still use PHP code in your HTML templates.

Example: <­td><­?php echo $username." AutoTheme is cool!"; ?><­/td>

You don't understand? It's easier to show than to explain: