Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2007-03-20 15:35:50

feragnoli
Member
From: the hague
Registered: 2005-02-10
Posts: 150

Re: [plugin] [ORPHAN] glx_if: some conditional tags

the link on textpattern resources is old! and so is this one: the file cannot be downloade…
in the textfile from textpattern resources only a couple of taghandlers appear :(
does anybody have a copy of 0.7?

Last edited by feragnoli (2007-03-20 15:43:24)


what was that again…?

Offline

#110 2007-03-20 17:33:27

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,096
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] glx_if: some conditional tags

feragnoli,
the link above works fine from here


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#111 2007-05-25 12:17:23

Prax
Member
From: Huntsville, AL
Registered: 2006-09-27
Posts: 24

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Link not so good now. I get an error. :(

Offline

#112 2007-06-12 11:02:54

Vitruvius
Plugin Author
Registered: 2004-09-21
Posts: 125

Re: [plugin] [ORPHAN] glx_if: some conditional tags

To be sure to be sure use this link (same as the start of this thread) NOT the download link on this page (which appears to be an old and broken version of the plugin).

SH

Last edited by Vitruvius (2007-06-12 11:03:36)

Offline

#113 2007-07-05 09:27:07

jauhari
Member
Registered: 2007-05-24
Posts: 97
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

I like it

Offline

#114 2007-10-06 17:47:02

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

I found a bug:

When using glx_if_not_frontpage it bugs when pagination is enable. I meen, that it returns false when i’m browsing this type of urls – http://school1118.ru/pupil/?pg=2

I found it during debugging. On the same page i saw this:

<txp:glx_if_frontpage>
	[<txp:glx_if_frontpage>: false]
</txp:glx_if_frontpage>
<txp:glx_if_not_frontpage>
	[<txp:glx_if_not_frontpage>: false]
</txp:glx_if_not_frontpage>

I thinks this is little strange behavior…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#115 2007-10-11 22:58:59

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Hm… How founds bug he’s fixing it :)

Edit the plugin.
Was:

function glx_if_frontpage($atts, $thing)
{
    global $pretext;
    return parse(EvalElse($thing, $pretext["s"] == "default" &&
                                  empty($pretext["c"]) &&
                                  empty($pretext["q"]) &&
                                  empty($pretext["pg"])));
}

function glx_if_not_frontpage($atts, $thing)
{
    global $pretext;
    return parse(EvalElse($thing, $pretext["s"] != "default" &&
                                  empty($pretext["c"]) &&
                                  empty($pretext["q"]) &&
                                  empty($pretext["pg"])));
}

After edit:

function glx_if_frontpage($atts, $thing)
{
    global $pretext;
    return parse(EvalElse($thing, $pretext["s"] == "default" &&
                                  empty($pretext["c"]) &&
                                  empty($pretext["q"])));
}

function glx_if_not_frontpage($atts, $thing)
{
    global $pretext;
    return parse(EvalElse($thing, $pretext["s"] != "default" &&
                                  empty($pretext["c"]) &&
                                  empty($pretext["q"])));
}

So, if i understand, i just excluded checking if page number exist. I’m really curious – what this condition was for? Maybe i added some bug anywhere instead of solved? :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#116 2008-10-29 16:29:35

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Does anyone know of a link to download this? I would really like it…


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#117 2008-10-29 19:00:08

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [plugin] [ORPHAN] glx_if: some conditional tags

The download link seems broken.
Unless someone can dig it up, you might want to check out smd_if

It’s also a much more recent plugin by Stef, a very prolific member.

Offline

#118 2008-10-29 22:28:01

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Offline

#119 2008-10-30 06:49:20

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,096
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Or you can copy paste from here…

YTo5OntzOjQ6Im5hbWUiO3M6NjoiZ2x4X2lmIjtzOjY6ImF1dGhvciI7czoxMzoiSm9oYW4gTmlsc3NvbiI7czoxMDoiYXV0aG9yX3VyaSI7czoyNToiaHR0cDovL2pvaGFuLmdhbGF4ZW4ubmV0LyI7czo3OiJ2ZXJzaW9uIjtzOjM6IjAuNyI7czoxMToiZGVzY3JpcHRpb24iO3M6MjE6IlNvbWUgY29uZGl0aW9uYWwgdGFncyI7czo0OiJoZWxwIjtzOjcwMzM6IgoJPGgxPmdseF9pZjwvaDE+CgoJPHA+VGhpcyBwbHVnaW4gY29tZXMgd2l0aCAxMSBkaWZmZXJlbnQgY29uZGl0aW9uYWwgdGFncy4gTW9zdCBvZiB0aGVtIGNvdWxkIGJlIHVzZWQgaW4gZWl0aGVyIGEgcGFnZSB0ZW1wbGF0ZSBvciBpbiBhIGZvcm0uPC9wPgoKCTxwPjxhIGhyZWY9IiNnbHhfaWZfZnJvbnRwYWdlIj5nbHhfaWZfZnJvbnRwYWdlPC9hPjxiciAvPgpJZiB3ZSBhcmUgb24gdGhlIHdlYnNpdGVzIGZyb250cGFnZTxiciAvPgo8YSBocmVmPSIjZ2x4X2lmX25vdF9mcm9udHBhZ2UiPmdseF9pZl9ub3RfZnJvbnRwYWdlPC9hPjxiciAvPgpJZiB3ZSBhcmUgbm90IG9uIHRoZSB3ZWJzaXRlcyBmcm9udHBhZ2UsIHNlYXJjaHBhZ2Ugb3IgY2F0ZWdvcnkgbGl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HR5KCRpZ25vcmVjb21tZW50cykpID8gZmFsc2UgOiB0cnVlOwogICAgJGlkID0gJHRoaXNhcnRpY2xlWyJ0aGlzaWQiXTsKICAgICRvdXRwdXQgPSAiIjsKICAgICRycyA9IHNhZmVfcm93KCIqIiwgInRleHRwYXR0ZXJuIiwgIklEPSAkaWQgQU5EIEFubm90YXRlPTAiKTsKICAgIGlmICgkcnMpCiAgICB7CiAgICAgICAgaWYgKCRpZ25vcmVDb21tZW50cykKICAgICAgICB7CiAgICAgICAgICAgICRyczIgPSBzYWZlX3JvdygiQ09VTlQoIGRpc2N1c3NpZCApIEFTIG51bV9vZl9jb21tZW50cyIsICJ0eHBfZGlzY3VzcyIsICJwYXJlbnRpZCA9ICRpZCIpOwogICAgICAgICAgICBpZiAoJHJzMikKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgaWYgKCRyczJbMF0gPT0gMCkKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAkb3V0cHV0ID0gcGFyc2UoJHRoaW5nKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBlbHNlCiAgICAgICAgewogICAgICAgICAgICAkb3V0cHV0ID0gcGFyc2UoJHRoaW5nKTsKICAgICAgICB9CiAgICB9CiAgICByZXR1cm4gJG91dHB1dDsKfQoKLyoKSWYgdGhpcyB0YWcgaXMgbm90IGVuY2xvc2VkIHdpdGggb3RoZXIgdGFncyBvciB0ZXh0IGl0IHdpbGwgb3V0cHV0CmhvdyBtYW55IGNvbW1lbnRzIHRoYXQgaGFzIGJlZW4gcmVjb3JkZWQgYmVmb3JlIHRoZSBhcnRpY2xlIHdhcyBjbG9zZWQuCndlbGwsIHRoYXQgZGlkbnQgd29yayB2ZXJ5IHdlbGwgc28gdGhhdCBsaW5lcyBhcmUganVzdCBjb21tZW50ZWQgb3V0LgppbnN0ZWFkIGp1c3QgdXNlIDx0eHA6Y29tbWVudHNfY291bnQgLz4KKi8KZnVuY3Rpb24gZ2x4X2lmX2NvbW1lbnRzX2Nsb3NlZF9jb21tZW50cygkYXR0cywgJHRoaW5nID0iIikKewogICAgaWYgKGlzX2FycmF5KCRhdHRzKSkgZXh0cmFjdCgkYXR0cyk7CiAgICBnbG9iYWwgJHRoaXNhcnRpY2xlOwogICAgJGlkID0gJHRoaXNhcnRpY2xlWyJ0aGlzaWQiXTsKICAgICRudW1PZkNvbW1lbnRzID0gMDsKICAgICRvdXRwdXQgPSAiIjsKICAgICRycyA9IGdldFJvdygiU0VMRUNUIENPVU5UKCAiLlBGWC4idHhwX2Rpc2N1c3MuZGlzY3Vzc2lkICkgQVMgbnVtX29mX2NvbW1lbnRzCiAgICAgICAgICAgICAgICAgIEZST00gIi5QRlguInR4cF9kaXNjdXNzCiAgICAgICAgICAgICAgICAgIExFRlQgSk9JTiAiLlBGWC4idGV4dHBhdHRlcm4gT04gIi5QRlguInR4cF9kaXNjdXNzLnBhcmVudGlkID0gIi5QRlguInRleHRwYXR0ZXJuLklECiAgICAgICAgICAgICAgICAgIFdIRVJFICIuUEZYLiJ0ZXh0cGF0dGVybi5JRCA9ICRpZCBBTkQgIi5QRlguInRleHRwYXR0ZXJuLkFubm90YXRlID0gMCIpOwogICAgaWYgKCRycykKICAgIHsKICAgICAgICBmb3JlYWNoICgkcnMgYXMgJHJvdykKICAgICAgICB7CiAgICAgICAgICAgIGlmICgkcm93WzBdICE9IDApCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIC8vJG51bU9mQ29tbWVudHMgPSAkcm93WzBdOwogICAgICAgICAgICAgICAgJG91dHB1dCA9IHBhcnNlKCR0aGluZyk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICAvL3JldHVybiAoJHRoaW5nKSA/ICRvdXRwdXQgOiAoJG51bU9mQ29tbWVudHMgIT0gMCkgPyAiJG51bU9mQ29tbWVudHMiIDogIiI7CiAgICByZXR1cm4gJG91dHB1dDsKfQoKLyoKVGhpcyBmdW5jdGlvbiB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CR2YWx1ZSA8ICR0aGlzYXJ0aWNsZVsnY29tbWVudHNfY291bnQnXSkKICAgICAgICAgICAgJG91dHB1dCA9IHBhcnNlKCR0aGluZyk7CiAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSAibGVzc190aGFuX29yX2VxdWFsX3RvIjoKICAgICAgICAgICAgaWYgKCR2YWx1ZSA8PSAkdGhpc2FydGljbGVbJ2NvbW1lbnRzX2NvdW50J10pCiAgICAgICAgICAgICRvdXRwdXQgPSBwYXJzZSgkdGhpbmcpOwogICAgICAgIGJyZWFrOwogICAgICAgIGNhc2UgImdyZWF0ZXJfdGhhbl9vcl9lcXVhbF90byI6CiAgICAgICAgICAgIGlmICgkdmFsdWUgPj0gJHRoaXNhcnRpY2xlWydjb21tZW50c19jb3VudCddKQogICAgICAgICAgICAkb3V0cHV0ID0gcGFyc2UoJHRoaW5nKTsKICAgICAgICBicmVhazsKICAgIH0KCiAgICByZXR1cm4gJG91dHB1dDsKfQoKZnVuY3Rpb24gZ2x4X2lmX2ltYWdlX2Rpc3BsYXkoJGF0dHMsICR0aGluZykKewogICAgZ2xvYmFsICRwOwogICAgcmV0dXJuIHBhcnNlKEV2YWxFbHNlKCR0aGluZywgIWVtcHR5KCRwKSkpOwp9CmZ1bmN0aW9uIGdseF9pZl9ub3RfaW1hZ2VfZGlzcGxheSgkYXR0cywgJHRoaW5nKQp7CiAgICBnbG9iYWwgJHA7CiAgICByZXR1cm4gcGFyc2UoRXZhbEVsc2UoJHRoaW5nLCBlbXB0eSgkcCkpKTsKfQoiO3M6NDoidHlwZSI7czoxOiIwIjtzOjM6Im1kNSI7czozMjoiMDgyYWNmZmIzZTIyMDJiYzQzYzVjNTM0YjM3NTU3YjkiO30=

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#120 2008-10-31 12:09:07

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [plugin] [ORPHAN] glx_if: some conditional tags

Hi all, i am happy to see that folks are still using some of my plugins. I am not supporting any of my plugins anymore but if you still want them they are all available for download here, http://johan.galaxen.net/files/ http://www.markupartist.com/files/ . Happy hacking!

Updated: Since I just changed registry for galaxen.net I have moved the files to another domain, url updated…

Last edited by osei (2008-11-12 09:02:08)


Johan Nilsson

Offline

Board footer

Powered by FluxBB