Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] tcm_pluginlist

#1 2004-10-04 01:38:29

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

[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.

more info

download

Last edited by els (2009-04-24 17:40:44)

Offline

#2 2004-10-04 08:34:24

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

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

#3 2004-10-04 20:40:21

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#4 2004-10-04 22:03:48

schussat
Plugin Author
Registered: 2004-02-24
Posts: 101
Website

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

#5 2004-10-05 00:55:51

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#6 2004-10-05 02:38:38

schussat
Plugin Author
Registered: 2004-02-24
Posts: 101
Website

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

#7 2004-10-05 08:17:00

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

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

#8 2004-10-11 22:50:19

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

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

#9 2004-10-11 23:15:57

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_pluginlist

you need to define a form – the instructions + examples are here

Offline

#10 2004-10-11 23:39:28

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

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

#11 2004-10-11 23:46:24

schussat
Plugin Author
Registered: 2004-02-24
Posts: 101
Website

Re: [archived] tcm_pluginlist

Incidentally, Jennifer, nice new site design. Makes me think fondly of autumn, and less fondly of Tucson!


-Alan

Offline

#12 2004-10-11 23:48:10

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: [archived] tcm_pluginlist

Thanks! Tuscon has its own beauty, though!

Offline

  1. Index
  2. » Archives
  3. » [archived] tcm_pluginlist

Board footer

Powered by FluxBB