Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-19 04:44:00

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

jmd_dashboard: Customizable dashboard

Download 0.2

This plugin is inspired by asy_dashboard, but it is more flexible. Features:

  • Dashboard tab!
  • <txp:jmd_dashboard_edit/> – insert in your form or container block to create edit links
  • Statistics see jmd_count
  • Lastmod

In essence, you can run Textpattern and plugin tags on the dashboard. Some possible uses:

  • Pending articles
  • Articles restricted by user
  • Instructions for users

Changelog

  • 2008-05-18: 0.1: Initial release
  • 2008-05-19: 0.1.1: Removed unnecessary functions, added documentation
  • 2008-05-22: 0.1.2: Removed jmd_dashboard_count. Fixed login, lastmod, and install bugs. Shipped form is now 4.0.6 compatible (but less cool).
  • 2008-05-23: 0.1.3: Added id attribute to jmd_dashboard_edit
  • 2008-05-27: 0.1.4: Play nicely with other plugins
  • 2008-05-29: 0.1.5: Tab persistence. Fixed login regression.
  • 2008-05-29: 0.2: Editable tab name

Last edited by jm (2008-05-30 01:58:25)

Offline

#2 2008-05-19 06:21:29

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: jmd_dashboard: Customizable dashboard

Hi – how does this plugin compare with aro_myadmin in terms of features?

Offline

#3 2008-05-19 06:46:35

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_dashboard: Customizable dashboard

I don’t know – I’ve never used aro_myadmin before and didn’t know it had a dashboard. This is inspired by asy_dasboard – all it is a flexible dashboard.

Offline

#4 2008-05-19 16:20:26

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: jmd_dashboard: Customizable dashboard

You are my personal hero. I will test this week on 4.0.6.


Kevin
(graphicpush)

Offline

#5 2008-05-21 22:17:15

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: jmd_dashboard: Customizable dashboard

Ok, I have tested your plugin. I get errors on unknown tag attributes. I had to remove break and wraptag so the errors disappear. By the way, I tested it on 4.0.6. I used a different from for the recently published articles so it does not go by the default form. The last modified date do not look right. The year says 1969 o.O


<txp:Ruhh />

Offline

#6 2008-05-21 23:45:57

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,311

Re: jmd_dashboard: Customizable dashboard

Hi Jon, as of now there are a multitude of tags on the dashboard and instructions where these should go. But on forms tab the mentioned form is set up, already. Lots of errors for me, too. “You have an error in your SQL syntax.” (Not my query).

But HEY! You’re my man, you threw in <txp:jmd_dashboard_count table="table_name" where="where_clause"/>!!! Just release this separately and you’ll have some more best friends. (I mean, … , Montana … ;)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2008-05-22 02:13:40

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_dashboard: Customizable dashboard

Ruhh wrote:

I had to remove break and wraptag so the errors disappear. By the way, I tested it on 4.0.6.

Sorry, I should have made it clearer – for 4.0.6 remove the break and wraptag attributes since they don’t exist for article_custom and recent_comments. You can only use the current available tags and attributes for 4.0.6. This plugin only implements a few tags, jmd_dashboard_edit|count|lastmod.

I guess I should swap the included jmd_dashboard form out for a 4.0.6 compatible one. 4.0.7 is so much cooler though.

Thanks for reporting the lastmod issue. I’ll upload a new version soon.

uli wrote:

“You have an error in your SQL syntax.” (Not my query).

Could you post the exact error?

But HEY! You’re my man, you threw in <txp:jmd_dashboard_count table=“table_name” where=“where_clause”/>!!! Just release this separately and you’ll have some more best friends. (I mean, … , Montana … ;)

Hehe all right. It’s kind of a lame tag, since it makes the user do all the work, but if it’s easier for me, it’s worth it :P.

Offline

#8 2008-05-22 11:59:31

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,311

Re: jmd_dashboard: Customizable dashboard

Jon, the queries were OK, it were the escaping backslashes that spoilt it. Everything’s working fine now.

Can I perhaps elate you for an accompanying tag?

<txp:jmd_if_variable name="var_name" operator="not" value="1">
There are <txp:jmd_dashboard_count table="textpattern" where="Status = 2"/> hidden articles.
<txp:else />
There is 1 hidden article.
</txp:jmd_if_variable>

I don’t see this of necessity as a part of jmd_dashboard, as this can also be used for completely different tasks. In secret, I’m hoping of this plus a list of variable names I don’t know of ;)

jm wrote

since it makes the user do all the work

But that’s completely fine, it broadens the plugin’s possibilities! I’d even appreciate something that doesn’t only count but outputs words as a result of an SQL query. [EDIT: see #16 here + #19 same thread]

Last edited by uli (2008-05-22 12:08:03)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#9 2008-05-22 17:11:28

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_dashboard: Customizable dashboard

Oops. I kinda left a debugging parameter in the query and forgot to print the form. I’ll get the new version up today.

For the jmd_if_variable, it seems like smd_if with 4.0.7 (and maybe a var tag or something), could do it (att='<txp:jmd_count .../>'). But for a count if-operator, I’ll bundle that with jmd_count.

I’d even appreciate something that doesn’t only count but outputs words as a result of an SQL query.

Looks like Stef has taken care of that with smd_query! :)

BTW, Jon != Jon-Michael ;).

Offline

#10 2008-05-22 20:59:11

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,311

Re: jmd_dashboard: Customizable dashboard

jm wrote:

For the jmd_if_variable, it seems like smd_if with 4.0.7 (and maybe a var tag or something), could do it

The attempt to entice you to write another tag was sort of premature, yup. But today my mind really was engaged with variables, queries, safe_inserts, txp- and html-forms, couldn’t post quick enough as thoughts came up.

But for a count if-operator, I’ll bundle that with jmd_count.

That’s great to hear! It’s kinda like fine-tuning stuff, but I love this sort of “eye for the detail” tags!

BTW, Jon != Jon-Michael ;).

I have a hyphenated name, too, and want to be called by just one of them, that’s the reason.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#11 2008-05-22 23:58:41

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,311

Re: jmd_dashboard: Customizable dashboard

This line isn’t necessary any longer: register_tab('extensions', 'jmd_dashboard', 'jmd_dashboard');


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#12 2008-05-23 00:43:42

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_dashboard: Customizable dashboard

uli wrote:

This line isn’t necessary any longer: register_tab('extensions', 'jmd_dashboard', 'jmd_dashboard');

If you remove that, you can’t access the dashboard through the top right select box. I know the tab is a big deal, but I navigate through TXP with the select box :).

Offline

Board footer

Powered by FluxBB