Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
kuo_image_clean_url: Nicer names for images with this plugin
I coded this little plugin/mod/hack so that people can use fancy file names for images with Textpattern, and not just incremental numbers as is the default way. :-) Installing is a three step task:
- Activate the Textpattern plugin called
kuo_image_clean_url
. - Upload
kuo_image_cleaner.php
totextpattern
folder. - Modify .htaccess file at the site’s root to include the rewrite rule, which is:
RewriteRule ^([-a-z0-9.]+)/([0-9]+)-([-a-z0-9.]+)$ ./textpattern/kuo_image_cleaner.php?id=$2&name=$3&folder=$1
That needs to go to it’s own line just after this:
RewriteEngine On
Last edited by kuopassa (2014-08-03 23:26:21)
Offline
Re: kuo_image_clean_url: Nicer names for images with this plugin
oooo :) cool – was just thinking about this at the weekend – will download & install – thanks :)
Offline
Re: kuo_image_clean_url: Nicer names for images with this plugin
I hope it’s useful and even more I hope it works. ;-) Seems like admin themes Classic and Remora are okay with this, but Hive is not.
Offline
#4 2014-08-04 14:55:53
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: kuo_image_clean_url: Nicer names for images with this plugin
Hi kuopassa, I reserved kuo for you as your developer prefix. Also raised a flag on this topic, so official forum status as plugin developer will follow soon, which enables you to open topics in the Plugin Author Support forum. I’ll move this topic over there and rename it to contain the plugin name.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2014-08-04 14:58:28
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: kuo_image_clean_url: Nicer names for images with this plugin
Oh, almost forgotten: Thank you for all your contributions over the last weeks!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: kuo_image_clean_url: Nicer names for images with this plugin
^ Thanks, uli! :-)
Offline