This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.textile | ||
| |
dashboard.php |
README.textile
jmd_dashboard: Customizable dashboard
To modify the dashboard, edit the form jmd_dashboard. This form can contain Textpattern and plugin tags.
Upgrading from 0.2
The tab-editing interface was removed, so add the following to your dashboard form, save, and reload your dashboard to remove the unnecessary record.
<txp:php>
if (safe_field('name', 'txp_prefs', 'name = "jmd_dashboard_lang"'))
{
safe_delete('txp_prefs', 'jmd_dashboard_lang');
echo "DB updated.";
}
</txp:php>
Enabling the dashboard for other users
By default, the dashboard is only available for Publishers. To enable the dashboard for all users, edit the add_privs() line:
add_privs('jmd_dashboard', '1, 2, 3, 4, 5');
User roles are explained at the Textbook
Tag reference
<txp:jmd_dashboard_edit type="article|comment">edit</txp:jmd_dashboard_edit>
This tag outputs an edit link for articles and comments. It must be called by article_custom or recent_comment in either a form or a container tag.
| Attribute | Available values | Default value | Description |
|---|---|---|---|
id |
int | discussid or thisid | If unset, the plugin uses the current article or comment ID. |
type |
article, comment | article | Creates a link to the edit screen of whichever type is set. |
<txp:jmd_dashboard_lastmod format="strftime" gmt="1"/>
This tag displays the last modified date based on the most recent article.
| Attribute | Available values | Default value | Description |
|---|---|---|---|
format |
strftime | %Y-%m-%d |
Date format. |
gmt |
1, 0 | 0 | If set (1), the date is adjusted according to GMT. |








