Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2010-04-17 12:46:13

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_substr (v0.3)

If you’re working with plain text strings, you could use the smd_if plugin

PS. if you want to use it as an if-construct, you’ll have to set both the length condition and the “some content” part as a tag attribute.

Offline

#14 2010-04-17 12:52:45

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: rvm_substr (v0.3)

I love smd_if but didn’t see a way I could use it in this case.

I’ll go back and pore over Stef’s docs.

Tks Rudd!


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#15 2010-04-17 12:57:17

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: rvm_substr (v0.3)

PS: Sorry Rudd, I completely missed your “PS” — thanks!


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#16 2010-12-08 15:17:50

beechy
Member
Registered: 2006-03-02
Posts: 92

Re: rvm_substr (v0.3)

Hi Rudd,

Does rvm_substr work ok with textpattern 4.3.0 I am about to upgrade and want to check there won’t be any issues when I do so.

Thanks

Offline

#17 2010-12-08 15:46:05

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: rvm_substr (v0.3)

beechy, I can confirm you it works on TXP 4.3.0.
Now go and have fun upgrading!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#18 2016-11-28 11:06:06

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: rvm_substr (v0.3)

Doing due diligence for a client site upgrade: does rvm_substr play nicely on Textpattern 4.6(.2)? Thanks in advance.

Offline

#19 2016-11-28 18:10:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_substr (v0.3)

The most recent version should work fine (registers tags).

Offline

#20 2016-11-28 20:30:23

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: rvm_substr (v0.3)

Perfect — thank you, Ruud.

Offline

#21 2023-05-29 11:19:11

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 276

Re: rvm_substr (v0.3)

I’ve textpattern 4.8.8 and my PHP version is 8.1
I want to limit the excerpt through this plugin, now i face with an issue when the symbol of & is written on excerpt, the following error comes:
Tag error: <txp:rvm_substr length="117"><txp:php>echo strip_tags(excerpt(array()));</txp:php></txp:rvm_substr> -> Warning: Undefined array key 0 while parsing form None on page Website

Offline

Board footer

Powered by FluxBB