Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2012-07-12 03:18:25

Gocom
Plugin Author
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_replace - Search and replace

Rah_replace v0.4 is out. Brings some performance optimizations.

More info and downloads

Offline

#32 2012-07-12 10:01:40

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 2,604

Re: rah_replace - Search and replace

Thanks, Jukka – looks great!

Offline

#33 2013-03-29 15:48:26

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: rah_replace - Search and replace

Thanks Jukka for this plugin.

I’m doing using rha_replace for parsing <txp:site_slogan /> with <br /> and <small></small>
This is the code I use <txp:rah_replace from="|,__,/__" to="<br />,<small>,</small"><txp:site_slogan /></txp:rah_replace> and this is the value of field Fusce ultricies ultricies nunc|Maecenas in ligula|__Aenean tincidunt adipiscing nibh/__

I expect to get this code Fusce ultricies ultricies nunc<br />Maecenas in ligula<br /><small>Aenean tincidunt adipiscing nibh</small> but I obtain Fusce ultricies ultricies nunc<br />Maecenas in ligula<br /><small>Aenean tincidunt adipiscing nibh<small></small></small> width double small code.

How I can resolve this issue?

Offline

#34 2013-03-29 16:53:06

etc
Developer
Registered: 2010-11-11
Posts: 3,356
Website

Re: rah_replace - Search and replace

Marco, I guess what you really get is Fusce ultricies ultricies nunc<br />Maecenas in ligula<br /><small>Aenean tincidunt adipiscing nibh/<small>, but the browser corrects this invalid markup. Try to change the order:

<txp:rah_replace from="|,/__,__" to="<br />,</small>,<small>"><txp:site_slogan /></txp:rah_replace>

Edit: Uli has the last word :)

Last edited by etc (2013-03-29 17:02:14)

Offline

#35 2013-03-29 16:54:15

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: rah_replace - Search and replace

Marco, maybe just a forum typo in your tag: </small">. Shall the apostrophe really be there?
Secondly, try another order in your search pattern, __ is contained in /__ hence it might take action prematurely: from="|,/__,__" to="<br />,</small>,<small>"

Edit: Oleg was faster :)

Last edited by uli (2013-03-29 16:55:04)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#36 2013-04-01 06:24:18

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: rah_replace - Search and replace

Thanks guys, works perfectly!!

Offline

#37 2014-01-07 19:20:38

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: rah_replace - Search and replace

Pete, Steve: subscribe here. I’ve yet still managed to split our posts off of the rah_replace topic. (Sleep deprivation.)

Jukka, I fear you have to repeat your announcement for v0.4.1, I’ve erroneously selected it while splitting our posts from your topic but have insufficient rights to put it back again. Sorry.

EDIT:
________________________________________

Jukkas announcement once was:

v0.4.1 is now available. Changes:

Minor clean up. Released as a Composer package.

More info and downloads

Last edited by uli (2014-01-07 19:58:11)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#38 2015-11-11 16:41:30

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,400

Re: rah_replace - Search and replace

Has anyone the rah_replace_v0.4.2.txt version? On GitHub exists only the php file.

Offline

#39 2015-11-11 17:00:16

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,553
Website

Re: rah_replace - Search and replace

Direct download here found on the cached page on google. My guess is that a server update probably made something stop working on his site, but that everything’s still there. So the download pattern:

http://rahforum.biz/d/rah_{plugin-name}_v{version-no}_zip.txt

will still work for all (?) of his plugins…

Here it is pasted for safe keeping:

# Name: rah_replace v0.4.2
# Search and replace
# Author: Jukka Svahn
# URL: http://rahforum.biz
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the "Install plugin" box:
# .....................................................................

H4sIAAAAAAAAA51Xa2/cthL9vPoVY8GAH1CkfTmp1Tpdxy1SXzQXRpzerwuuxJVYS6RKUd64
Tf57Z0hJK683hnMNxLFG8zhz5kGKxZN5/E8dz2NfspL7P9bxZBL7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9/+QqfpjXp05pH0zNK64OQWBZ3P2uqECUfOT50LbO9CHQ5f+99/ykKh2GKvEaT
KWG44Rp7o7R9oSqDxf2b2UvmrunMmU4s/O8zdQUdn5Pp5DWZXqYpJWkvj/2ZODw7Fk+cTJ44
uZbCCGxg7UgL7edW7Jep/ZibTWP/fPoDm/H5azaen42TdDaens1Yspokq+kcpaj39V82bobE
rhEAAA==

TXP Builders – finely-crafted code, design and txp

Offline

#40 2015-11-11 17:48:29

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,400

Re: rah_replace - Search and replace

Thank you very much, jakob, I had http://rahforum.biz/plugins/rah_replace bookmarked and this URL doesn’t work.

I wonder what happened with Jukka that he not put in order his Textpattern installation?

Offline

Board footer

Powered by FluxBB