Here is what’s said in the title, to augment hakjoon’s hak_tinymce Textpattern plugin (done for version 0.9.9):
.../textpattern/tiny_mce/plugins/txpimage/langs/ directory;(Pro našince: zde jsou k dispozici lokalizační soubory pro plugin na “vložit obrázek” v textpatternovém TinyMCE. Stačí stáhnout ten “distribution” .zip, rozbalit do .../textpattern/tiny_mce/plugins/txpimage/langs/ adresáře.)
new 173 days ago / edit Jan 1, 01:33 / link
In My Textpattern wishlist I wrote about the core functionality that I feel is missing. Now there is another, smaller thing which could go into a plugin.
Ehnance the File Downloads with licensing pre-requisite. That is, a front-end tag would generate a URL that opens a “to download, agree with the above license text” page, and upon clicking it produces the desired file for Save as… and logs the download.
It should work on top of standard Files tab, of course, and the license text should be settable for each file independently.
new Jun 2, 15:51 / edit Jan 1, 01:33 / link
I’ve been using OpenCms for a couple of years now (after all, it successfully runs our departmental web). Here is a collection of my ideas for extending its functionality.
But first of all, I’d like to say kudos to OpenCms authors – it is a good workhorse for the job we applied it to.
Workplace bookmarks That is, ability to bookmark a node in the Explorer tree and therefore get to it quickly. Why? I’m finding myself often switching between a few subtrees of the content, and a handful of extensions or templates under /system/modules/. That’s all.
Permissions report The way permissions are assigned, and inherited, in the content tree is quite powerful. The downside is, one gets easily lost in the maze: “Where can user N write? What are the rights of group G in this directory?” So, I envisage a Administration module which, given a content node as a root, would generate a (long!) list of permission info for all nodes in its tree.
This is an unfinished page – more ideas will be added as they come. Anyway, what is your item to be added?
new Feb 27, 16:28 / edit Jan 1, 01:33 / link
The following extensions are in this plug-in:
<txp:pfb_article_custom section="*|name" ... />
Like <txp:article_custom .../> but default section is the current one (like in txp:article, unlike in txp:article_custom). Same attributes as for <txp:article_custom .../> apply, use section=”*” to display articles from all sections.
<txp:pfb_updated />
Returns the LastMod of an article; similarly as <txp:posted /> returns the creation time. Same attributes as for <txp:posted /> apply.
<txp:pfb_include url="URL"|file="path" />
Includes the content at the given URL or filesystem path; the url takes precedence. If path starts with “/” it is taken as (surprise) absolute, if not, relative to textpattern install dir (i.e. that in which the textpattern/ subdir resides). Beware that the included content SHOULD be text/html and UTF-8, otherwise the results might be bad.
new Nov 2, 22:28 / edit Jan 1, 01:33 / link
Here is a mod of textpattern 4.0.5 which adds a messy URL mode with the format ?s=section&t=article-title. A new preference option is added, and permalink generation is modified to this effect. Caution: the mod assumes that article titles are unique within sections.
Download file – zipped diffs to 3 files.
new Nov 2, 09:05 / edit Jan 1, 01:33 / link
As of 10/2007 and version 4.0.5, this is what I wish Textpattern could do. That is, how to make it Even Better than it is now, from my point of view.
The list is split into categories and these into severity groups, which convey my estimate of implementation ease. Some of the desiderata are currently covered by plugins, but I think they should make it into the core and distro, due to their universal usefulness.
Part of the desired things is driven by the need to run “static”, i.e. non-blog, websites off Textpattern.
Big things
Small things
txp:updated tag – add the timestamp which is stored in the textpattern table in the $thisarticle data; I have a small plugin for this.admin-config.php).Big things
Small things
This means to allow to reference a ftp-ed .css file (stored under .../files or similar) in Presentation > Style. The same holds for Pages and maybe Forms as well — that is, everything that changes only seldom. It seems much better to me to edit such things in Vim/PsPad/Notepad/… and upload, than to edit in the TEXTAREA.
The key problem with TEXTAREA is that on Save, position in file/text is lost which makes it very tedious when debugging/polishing things (eg. stylesheet). Even though ftp looks cumbersome, I can leave the editor open, save, upload, reload in browser, repeat.
Actually, some of the most itching things went into this mod: txp-4.0.5-pfb revision 267
new Nov 1, 17:06 / edit Jan 1, 01:33 / link
After fiddling with the jas_popular… plugin described in a previous post, I thought that the idea of logging views via custom field was not that bad. So I gave a try to the duo dzd_counter_view + ort_article_psort.
Not bad in the result… especially when a parameter to customize the custom field is added to the counter_view plugin. Which I did, of course, and here is the zipped PHP source of the update (as previously, no time to create the .txt distro…):
The -field="fieldname" parameter is added to the original ones, enabling to set the name of the custom field to use for counting.
Example: <txp:dzd_counter_view field="count_views" force="0" />.
new Jul 27, 13:12 / edit Jan 1, 01:33 / link
I had the need to create the list of most popular articles on the site – no frills, just this. Digging through the textpattern.org and the discussions revealed the unpleasant truth: the ones that do exists don’t work (jas_popular_articles), and those that do work (dzd_counter_view) don’t do what I need.
So, did I get brave, and here is the updated code for the jas_popular_articles plugin – version 0.2. The archive contains the raw PHP code, sorry, had no time to wrap it up as plugin yet.
As with the 0.1 version, will work only with messy URLs – even the more reliable method for obtaining article IDs needs them.
new Jul 23, 16:58 / edit Jan 1, 01:33 / link
The 0.18 version of rss_suparchive plugin has a smallish bug that causes incorrectly unclosed DIV generated by the rss_suparchive_bycat tag. Below is the correctly functioning version.
$out[] = ($showcatsonly && !$form) ? '</ul>' : '';
$out[] = (!$form) ? n.'</div>'.n : '';
}
$out[] = (!$form) ? n.'</div>'.n : '';
return ($out) ? implode('', $out) : '';
}
new Jul 19, 00:46 / edit Jan 1, 01:33 / link
I am one of those in php_safe_mode, which can’t create script-writable directories, unfortunates. It’s bad in that the default Zenphoto installation doesn’t expect safe_mode to be on and the whole cache business breaks down, resulting in no thumbs whatsoever.
I’ve therefore tried a small patch on the i.php, as follows, to automatically detect safe_mode and adapt cache generation accordingly. It just simply switches off subdir generation and changes the ”/” separator of the cached file to ”___” (a random choice). Maybe more could be done with safe_mode_gid detection, which I didn’t have time to try.
It seems to work on my gallery so here it is for anyone else to use. Enjoy!
Starting on line 130 of the i.php (as of 1/2007):
// Make the directories for the albums in the cache, recursively.
if (! ini_get("safe_mode")) { // *** line added ***
$albumdirs = getAlbumArray($album, true);
foreach($albumdirs as $dir) {
$dir = SERVERCACHE . '/' . $dir;
if (!is_dir($dir)) {
mkdir($dir, 0777);
} else if (!is_writable($dir)) {
chmod($dir, 0777);
}
}
} // *** line added ***
$newfilesep = ini_get("safe_mode") ? "___" : "/"; // *** line added ***
$newfilename = "/{$album}{$newfilesep}{$image}{$postfix_string}.jpg"; // *** line changed ***
new Feb 6, 22:55 / edit Jan 1, 01:33 / link