Change Textpattern administration directory
If you’re looking to rename the Textpattern admin directory (which by default is “textpattern”), then you may do this with mod_rewrite through your .htaccess:
RewriteEngine On RewriteRule ^admin/(.*) /textpattern/$1 [NC,L]
where “admin” would be come the...
Reset lost or forgotten Textpattern password
There may be instances in which you or another user on your Textpattern site loses their login password, or you may find that in your webhost’s transition from MYSQL 4.0 to 4.1, your Textpattern password no long works. Apparently the password function in 4.0 creates a 16 character password while 4.1 creates a...
Static articles in chosen order
(Note: use of doArticle is not recommended practise. The instructions have been updated to use the recommended tags
<txp:article /> or
Articles are traditionally organized by date, but if you want them presented in an order of your choosing, then the tag...
Conditional tags for article list and full article pages
Open Comments in Textpattern after an Import
Here is a script you can run after the fact to open up commenting on posts imported by my script.
Place the script in your textpattern directory, rename it from
open-comments.php, and run it by browsing to the page in your web browser. I’ve ran it on my install at home, and it...
Regarding images that are uploaded through the Textpattern admin interface (tabs: content > images), please note that you cannot mix two formats: the large image and the thumbnail must be the same format, because the database only stores information about the large image and sets a boolean value if it has a thumbnail or not.
How to add custom fields and edit names
Custom fields are available under Advanced Options, on the left of the writing area when you’re posting an article.
To add more custom fields, and to give them custom names, open up /lib/admin_config.php
and find the following:
// use custom...
Displaying the number of comments
To display the number of comments for an article (for use in an aritcle form), use the following tag:
This tag will display a number if there is at least one comment to the article. If you would like the number ‘0’ to display when there are zero comments, find...
Override Date Format
You probably know you can change the Date format, Archive date format, and Comments date format by hitting up your ‘admin’ tab and ‘preferences’ tab underneath that, in your Admin panel. (http://yoursite.com/textpattern/?event=prefs )
You can also override this format, by supplying the Textpattern tag,...
Sorting out great colors for your site
Restricting view of authors list to authorized admin access
So it came to my attention that, even though only Managing Editors and Publishers (Textpattern privilege assignments) are given access to the ‘admin’ tab in the Administration Panel, anyone who is logged in can access the ‘site admin’ screen if they point their browser to ?event=admin
Changing your Admin Panel password
If you are the sole user of the site, then you probably already know you can change your password by clicking the ‘admin’ tab and selecting the ‘site admin’ tab under that.
However, if you are not the primary or first registered user on the site, and are not granted admin access (only ‘Publishers’...
When you’re writing an article in Textpattern, there is a link on the left for ‘Advanced Options’. Clicking it opens many new options, such as an override forms, custom fields, keywords, etc. By default, these Advanced Options are hidden until clicked open. If you would like it to be open by default, then here’s how...
The clash of zem_redirect and style-switcher plug-ins
Having installed the style sheet switcher plug-in, shortly followed by my hacked version of the zem_redirect plug-in. I found that I was unable to get the style sheet switcher to work consistently, if you want a list of style options on every single page site wide, you are probably screwed but there is a solution to the problem.
Migrating to TextPattern
Out of the box, the TextPattern clean-url section handling isn’t quite what I want. Radio’s categories are structured like miniature weblogs. But Textpattern sections are interwined together. Viewed through my Radio experience, the problem seems to be that there is no default section that includes all articles.