Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-09-18 21:46:32

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’ve just installed all 3 plugins to a friend’s site without problem and I know that at least 2 of the glx_if tags are working. He is also using Gentle Calm as a basis for his design so I’m wondering if there is some problem with the text files that you have downloaded. I know there can be problems with the DTD_head form turning up blank. Have you tried grabbing the original code for these plug-ins and installing them from there instead?


Stuart

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

Offline

#14 2005-09-18 22:49:24

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

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

Is your friend using TXP 4.0.1 or 4.0? – Because I downloaded a fresh copy of glx_if and installed it on a 4.0.1 site, tested several and found they didn’t work.

I have 2 sites running 4.0 with glx_if – and they do work.

Last edited by Vitruvius (2005-09-18 22:50:18)

Offline

#15 2005-09-18 23:27:36

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)

He’s on 4.0.1 and the 2 that I know are OK are if_category_list and doggiez reports that if_frontpage is OK. I’m wondering if it might be the EvalElse that isn’t working. Have you tried using your tags without it?


Stuart

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

Offline

#16 2005-09-19 10:57:49

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

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

Well its encouraging that someone with a 4.0.1 site has atleast some of the plugin working.

I tested if_section_frontpage, if_not_section_frontpage and if_search on a 4.0.1 site and these generated errors and failed (all displayed the conditional content regardless of the condition). I am flatout on another project at the moment – I will try to have a more comprehensive play in a couple of days…

Offline

#17 2005-09-20 22:44:38

maijs
New Member
From: Riga, Latvia
Registered: 2005-09-19
Posts: 3

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

I had problems with this plugin (v0.6.4) and I think it has something to do with that it contains some international characters in the code as it didn’t work for counting comments in article and when I clicked on EDIT link in admin>plugins area, I got truncated php script – exactly at the point where intl. characters started.

I got it fixed by pasting preview code in edit pane, but still…

Last edited by maijs (2005-09-20 22:45:06)


first cor 13:13

Offline

#18 2005-09-20 22:54:49

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)

@Vitruvius – there is a standard TXP if_search tag available now if it suits your needs.


Stuart

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

Offline

#19 2005-09-21 00:50:05

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

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

I have now done a thorough test and I am happy to report that the plugin is working.

It seems that somewhere in the scheme of things I decided it would be a good idea to call the plugin like this: <code><txp:glx_if_section_frontpage />section front page stuff here</txp:glx_if_section_frontpage /></code>. Can anyone spot a problem with this?

It turns out the I was a little overzealous with the <code> /></code> at the end of the txp tags. When I call the plugin like this: <code><txp:glx_if_section_frontpage>section front page stuff here</txp:glx_if_section_frontpage></code> it works perfectly – no error.

I will have to get my head around these XHTML requirements – when to put a <code> /></code> ending and when to leave it at <code>></code>.

Sorry for wasting everyone’s time…

Offline

#20 2005-09-21 01:35:22

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)

Ha ha. Nice one. :)


Stuart

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

Offline

#21 2005-09-21 13:27:56

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

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

Vitruvius wrote:

I will have to get my head around these XHTML requirements – when to put a <code> /></code> ending and when to leave it at <code>></code>.

That’s simpler than you think ;)
Container tags (i.e. a start tag and an end tag) are wrapped around ‘something’, meant to output that ‘something’ in a specific way. Example <a href="/whatever">link text</a> or <p>paragraph</p>. They don’t have the closing slash.
Single tags, like <txp:article /> or <img src="/whatever.jpg" />, just output ‘something’, and always need the closing slash.

Offline

#22 2005-09-21 22:08:51

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

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

Thanks for that – I did actually go and look it up after I discovered the anomaly and of course it makes perfect sense!

Offline

Board footer

Powered by FluxBB