Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#27 2014-10-30 17:22:17

etc
Developer
Registered: 2010-11-11
Posts: 5,195
Website GitHub

Re: chh_if_data revisited

ingleslenobel wrote #285258:

Is this an alternative or would anyone know of a working copy?

This is a much smarter alternative, which takes into account only (chosen) txp tags, see the OP.

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

#30 2014-12-14 22:25:28

etc
Developer
Registered: 2010-11-11
Posts: 5,195
Website GitHub

Re: chh_if_data revisited

jpdupont wrote #286534:

Hello Adi or Oleg …

Is this plugin now an … orphan plugin :) ?

It’s rather everybody’s child is nobody’s child :) But it should still work, something wrong with it?

Offline

#31 2014-12-15 20:06:08

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

Re: chh_if_data revisited

etc wrote #284586:

I have actually written another version, that additionally supports test, ignore and insert 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

#33 2014-12-15 20:56:52

etc
Developer
Registered: 2010-11-11
Posts: 5,195
Website GitHub

Re: chh_if_data revisited

ruud wrote #286593:

Doesn’t that always return an empty string if the “if” condition evaluates to true?

Oops! not anymore :) thanks!

jpdupont wrote #286594:

So the official version is there !

It makes me feel like a kidnapper form “The Ransom of Red Chief” :)

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

#35 2014-12-15 21:58:18

etc
Developer
Registered: 2010-11-11
Posts: 5,195
Website GitHub

Re: chh_if_data revisited

gomedia wrote #286598:

Send me the new code & I’ll give it somewhere to live … no charge!

Heavens! it’s here. Hold it tight for few hours, and I will redirect all links there. And I hope one day your kid will make him home at the core.

Last edited by etc (2014-12-15 22:01:38)

Offline

#36 2014-12-15 22:03:32

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: chh_if_data revisited

etc wrote #286603:

And I hope one day your kid …

To whom you have parental responsibilities as well.

… will make his home at the core.

Hear, hear!

Last edited by gomedia (2014-12-15 22:08:02)

Offline

Board footer

Powered by FluxBB