Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-09-02 01:02:32

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

[plugin] [ORPHAN] ob1_changecase

Name: ob1_changecase
Version: 1.0
Author: Henrik Jönsson
Author URL: revolutioni.se
Modified: 2007-09-03
Paste URL

Summary: Enables you to change a case on something, with support for international characters that are encoded.

Updated for TXP 4.x support

When I did the update I found the nifty mb_convert_case function which made the whole process quite snappy. So I take no credit for the function I’m using, just turned it into a handy plugin.
This means that this plugin needs the Multibyte String PHP extension installed and loaded to work. Current version does not check for it so can produce errors. Will release a new version shortly that will take care of that.

Last edited by obeewan (2007-12-27 20:38:44)


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

#2 2004-09-02 01:33:20

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

Re: [plugin] [ORPHAN] ob1_changecase

I am currently chasing a bug if case is not set the function breaks. Why I have no idea currently but I am on it.


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-09-02 02:07:45

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

Re: [plugin] [ORPHAN] ob1_changecase

Apparently this is not much to do with this bug. Meaning, if you wrap the tag around nothing and set no case value the page will break. I tried the same with zem_link and it broke too. And since zem is zem I don’t mind that it breaks anymore ;P


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

#4 2006-07-01 09:01:18

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: [plugin] [ORPHAN] ob1_changecase

An old thread, but still a useful plug-in. I’m having problems with international characters, specifically the word Büro is replaced with BüRO. I’ve tried with replace=“1” (which afaik is default anyway). I tried looking at the code but the preg_replace is pretty inpenetrable for my eyes. I’d be grateful for a tip.

Or, is there another way of going about this. text-transform in css does not help in my case and PHP’s strtoupper does not handle foreign chars.

EDIT: forgot to say, using v 0.2 with txp 4.03 dev version

Last edited by jakob (2006-07-01 09:01:58)


TXP Builders – finely-crafted code, design and txp

Offline

#5 2006-07-11 16:09:02

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

Re: [plugin] [ORPHAN] ob1_changecase

jakob,

It works in my old modified version i work on my site. I will have a check when I get home where I got the most recent release version and see what I find.


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

#6 2007-09-03 02:24:44

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

Re: [plugin] [ORPHAN] ob1_changecase

Updated to work for TXP 4.x with no errors (if Multibyte String PHP extension is loaded) being produced.

And as always, bug reports are welcome.

See the first post of this thread for links.

Last edited by obeewan (2007-09-13 05:39:35)


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

Board footer

Powered by FluxBB