Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[archived] tcm_pluginlist
Notice: this thread is archived. Link is dead. Alternative plugin: ras_plugin_credits.
*****************************************************************
Here you go – a plugin that makes it easy to give credit to plugin authors on your about or colophon. It uses article forms, works with a few tags.
Last edited by els (2009-04-24 17:40:44)
Offline
Re: [archived] tcm_pluginlist
What of version number?
Plugins:
ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] tcm_pluginlist
? not sure about that question. It’s tested on 1.0rc, but I’m 99% sure it’ll work on 1.19g
Offline
Re: [archived] tcm_pluginlist
I think he means, how about including the plugin’s version number in its display? (Eg., “tcm_pluginlist v0.1 by tmacwrig” and so on)
This is a handy plugin. I made a small change to only display plugins that are actually used, because I have a ton of plugins installed, but only use a relatively small set of them. Thanks.
-Alan
Offline
Re: [archived] tcm_pluginlist
it would be great if you could share that code – i would imagine you add a “WHERE `active` = 1” or something of the sort to the sql query? i think that the next version should include that and the plugin number (maybe as the body?)
Offline
Re: [archived] tcm_pluginlist
Sure. I just added an if statement to your block of code, like so (my two added lines are preceded by a plus sign):
== extract($a);
+ if ($status == 1) { $out[“author”] = $author; $out[“title”] = “$name, v. $version”; $out[“excerpt”] = $description; $out[“permlink”] = $author_uri;
$GLOBALS[“thisarticle”] = $out;
$article = ($override_form) ? fetch(“Form”,“txp_form”,“name”,$override_form) : $Form;
$article = doPermlink($article, $out[“permlink”], $Title, $url_title); $articles[] = parse($article);
unset($GLOBALS[“thisarticle”]);
+ }
}
==
This also includes the addition of the version string, as part of the title — could go anywhere, I suppose. As you can see, I didn’t actually change the query, just the list of items displayed by the plugin, and the plugin doesn’t have any control over the version number — so it’s just a hack, but it adds a little functionality that’s useful.
Last edited by schussat (2004-10-05 02:46:46)
-Alan
Offline
Re: [archived] tcm_pluginlist
I am sorry for beeing a bit unclear, but yes I meant version of the plugin.
Plugins:
ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] tcm_pluginlist
Strangely, I get no output from this plugin – not whatsoever. It is active, I double-checked.
I’m using: < txp:tcm_pluginlist wraptag=“ul”/ >
Last edited by Jennifer (2004-10-11 22:50:49)
Offline
Re: [archived] tcm_pluginlist
you need to define a form – the instructions + examples are here
Offline
Re: [archived] tcm_pluginlist
Thank you! I looked at your examples, but apparently I only saw part of it.
Works like a charm, now!
Offline
Re: [archived] tcm_pluginlist
Incidentally, Jennifer, nice new site design. Makes me think fondly of autumn, and less fondly of Tucson!
-Alan
Offline
Re: [archived] tcm_pluginlist
Thanks! Tuscon has its own beauty, though!
Offline