Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2014-10-13 08:25:01
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: chh_if_data revisited
Thanks for the hard and fine work, Oleg and Adi !
Offline
#26 2014-10-30 13:08:57
- ingleslenobel
- Member
- Registered: 2014-10-16
- Posts: 88
Re: chh_if_data revisited
Hello,
I’m after chh_if_data to make an image captioner and positioner like here but the download link here is now deprecated “Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/shaktaka/public_html/textpattern/lib/txplib_db.php on line 14”
Is this an alternative or would anyone know of a working copy? Seems to work here – I’m after the same sort of thing, alignment and caption below
Thank you!!
Offline
Offline
#28 2014-12-14 21:58:30
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: chh_if_data revisited
Hello Adi or Oleg …
Is this plugin now an … orphan plugin :) ?
Offline
#29 2014-12-14 22:07:47
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: chh_if_data revisited
jpdupont wrote #286534:
Hello Adi or Oleg …
Is this plugin now an … orphan plugin :) ?
etc’s latest version, as posted here is the one I’ve been using to great effect in a couple of projects.
All it needs is a bit of tidying up in the help department. So no, it’s not an orphan … more of a neglected offspring!
Offline
Offline
Re: chh_if_data revisited
etc wrote #284586:
I have actually written another version, that additionally supports
test
,ignore
andinsert
attributes.
if($name !== null && empty($thing)) { /* variable mode */
return parse(EvalElse($thing,(isset($variable[$name]) && trim($variable[$name]) != ''))); // return TRUE/FALSE depending on content
}
Doesn’t that always return an empty string if the “if” condition evaluates to true?
Offline
#32 2014-12-15 20:13:19
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: chh_if_data revisited
:-) Thanks !
So the official version is there !
Offline
Offline
#34 2014-12-15 21:25:21
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: chh_if_data revisited
etc wrote #286597:
It makes me feel like a kidnapper form “The Ransom of Red Chief” :)
Send me the new code & I’ll give it somewhere to live … no charge!
Offline
Re: chh_if_data revisited
Offline
#36 2014-12-15 22:03:32
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Offline