Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-06-16 16:01:58

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

glx_if doesn't work in latest rev (406)

I found that with the latest revision the glx_if plugin — well, I’m only certain about the glx_if_comment_count part of it — doesn’t work anymore. Can anyone confirm this?

Offline

#2 2005-06-16 16:28:26

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: glx_if doesn't work in latest rev (406)

I’m only using glx_if_frontpage and glx_if_category_list, both seem to work in rev 406.

Offline

#3 2005-06-16 22:44:34

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: glx_if doesn't work in latest rev (406)

I’m using glx_if_category_list as well and all seems fine at r416.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2005-09-17 22:46:37

Catalyst
Member
From: Yorkshire UK
Registered: 2005-07-30
Posts: 23
Website

Re: glx_if doesn't work in latest rev (406)

Hi :)

I cannot get glf_if to work in 4.0.1 r895 either.

It creates an error message as follows:

Notice: unserialize(): Argument is not a string in /home/accountname/public_html/path/textpattern/include/txp_plugin.php on line 152

The same error applies for two other plugins as well:

1. ob1_title_2.2
2. zem_contact-0.6

Can anyone tell me what I need to do to fix this problem.

Thank you for any help you can offer.

Offline

#5 2005-09-17 23:36:56

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

Re: glx_if doesn't work in latest rev (406)

I am using glx_if in a site using version 4.0 with no problems… haven’t upgraded it to 4.01 – may be I’ll hold off a while

Offline

#6 2005-09-18 00:08:21

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

Re: glx_if doesn't work in latest rev (406)

[UPDATE]

I have updated one of my sites to 4.0.1 r888 and glx_if generates errors and doesn’t work.

I only tested two of the glx_if tags (the <code>glx_if_section_frontpage</code> and <code>glx_if_not_section_frontpage</code> tags) and both generate errors complaining of a missing variable in an eval statement similar to this:

<code>Warning: Missing argument 2 for glx_if_section_frontpage() in /home/usr/public_html/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 15</code>

They also displayed conditional content regardless of if the conditions were met…

SH

Offline

#7 2005-09-18 01:03:43

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: glx_if doesn't work in latest rev (406)

I don’t know if the glx_if plug-in actually works now as I no longer use it but I should point out that a “notice” is not an “error”. You should have your site status in preferences set to “Live” which will remove these notices for the other plug-ins which I do use and are working fine for me at r908.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2005-09-18 01:49:18

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

Re: glx_if doesn't work in latest rev (406)

I agree about turning the warnings off – I can only get the ‘warning’ I posted before with diagnostics turned on.

But regaardless – the plugin doesn’t work (as I mentioned in the last part of the post) The conditional tag displayed the content within regardless of whether the conditions were met – so somethings going wrong :)

SH

Offline

#9 2005-09-18 05:34:55

Catalyst
Member
From: Yorkshire UK
Registered: 2005-07-30
Posts: 23
Website

Re: glx_if doesn't work in latest rev (406)

Hi Stuart :)

You should have your site status in preferences set to “Live” which will remove these notices for the other plug-ins which I do use and are working fine for me at r908

My production status is already set to ‘Live’ but I continually receive that notice [as listed above] when trying to install these three plugins.

I am using these as suggested by you in your ported Gentle Calm theme.

Thank you for making it available :)

Shad

Offline

#10 2005-09-18 07:09:42

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: glx_if doesn't work in latest rev (406)

You can do it using generic textpattern tags…

<code><txp:if_section> …your content here…<txp:else />…default option… </txp:if_section></code>

Last edited by creativesplash (2005-09-18 07:10:20)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#11 2005-09-18 10:12:19

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

Re: glx_if doesn't work in latest rev (406)

creativesplash – the <code>glx_if</code> tags allow you to do a whole lot more than simple section conditionals. I have found this plugin to be priceless. here’s the entry at textpattern.org

Last edited by Vitruvius (2005-09-18 10:13:07)

Offline

#12 2005-09-18 15:03:28

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: glx_if doesn't work in latest rev (406)

I believe Osei has moved on to other projects and is too busy to keep his plug-ins updated now. I know a couple of them have been “adopted” but I don’t think this is one of them so if anyone with some coding experience wants to take it on……


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB