Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2005-04-23 17:29:17

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

*bump* ?


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#62 2005-04-24 13:17:25

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

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

Sorry alicson, i missed your other post, not very easy to keep up to date when the forum is all wacky…

hmm, im using <code><txp:glx_if_comments_count operator=“greater_than” value=“0”> </code> and <code><txp:glx_if_comments_count operator=“equal_to” value=“0”></code> on my own page and they seem to work okey there.

But i will do some test and see if i can figure out if there are anything strange going on.


Johan Nilsson

Offline

#63 2005-05-01 22:29:16

danielk
Member
Registered: 2004-03-04
Posts: 24

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

I’m using rc3.253, and I seem to be running into an issue with if_section_not_frontpage. I’d like to have a selection of images on the frontpage of section ‘gallery’, and display the section specific images everywhere else. if_section_frontpage worked fine, got some output, and it went away when I navigated to a different sub-section of the gallery. However, nothing showed up on the subpages when the frontpage specific code went away.

I tried if_section_not_frontpage & if_not_section_frontpage, and got nothing on either. I misspelled a closing tag on purpose and got :

Warning: Missing argument 2 for glx_if_not_section_frontpage() in /home/mysite/public_html/quality/textpattern/lib/txplib_misc.php(304) : eval()’d code on line 1026

so I know it’s doing something. I’m using this code:

<code>

<txp:glx_if_section_frontpage>
<txp:rss_thumbpop showcaption=“0” jpop=“0” showpagelinks=

Last edited by danielk (2005-05-01 22:30:40)

Offline

#64 2005-05-02 05:20:58

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

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

It should be glx_if_not_section_frontpage

i havent tested glx_if_not_section_frontpage yet on rc3, but im planning on returning trhough the evalElse function instead.

you could try to comment out or delete the function glx_if_section_frontpage (if you click on the edit link you find the source) and replace the below code.
<code>
function glx_if_section_frontpage($atts, $thing)
{ global $pretext, $is_article_list; $condition = (empty($pretext[“c”]) && $is_article_list == true) ? true : false; return parse(EvalElse($thing, $condition));
}
</code>

Then you will be able to use it like this instead
<code>
<txp:glx_if_section_frontpage>
<txp:rss_thumbpop showcaption=“0” jpop=“0” showpagelinks=


Johan Nilsson

Offline

#65 2005-05-02 18:36:59

danielk
Member
Registered: 2004-03-04
Posts: 24

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

Works like a champ! Thanks!

Does exactly what it says, this will be darn handy.

Offline

#66 2005-05-31 13:54:58

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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

the evalElse fuction for if_section_frontpage works great, thanks

Offline

#67 2005-06-01 04:14:32

Anark
Member
Registered: 2004-08-14
Posts: 101

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

Could you add if_preview?

Here’s a problem it might solve.

Offline

#68 2005-07-30 18:59:58

andreaparrish
Member
From: u.s.
Registered: 2005-05-12
Posts: 14
Website

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

is the link down for good or is this temporary?

Offline

#69 2005-07-30 21:23:27

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

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

There has been a power failure where my server is located, and right now i cant find any person with a key to go down and restart her, but i really hope this problem will be solved soon, and yes iam about to move to a new server that is located in a (much) safer place.


Johan Nilsson

Offline

#70 2005-07-31 19:41:18

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

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

Thanks Stuart, im up and running on a new server now and i hope this will work much better.


Johan Nilsson

Offline

#71 2005-07-31 20:06:35

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

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

OK no problem. I’ll delete my post so people don’t get confused. There’s been 5 downloads if you want to adjust your count.


Stuart

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

Offline

#72 2005-08-10 22:23:13

xmerokox
New Member
Registered: 2005-08-09
Posts: 3

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

Hi, I’m pretty new to this and so I’m not very good with txp yet. But I have a question. Does this plugin work with RC5? When I view the page, I either get no content or the code is shown instead (the code used inside of the plugin conditional tags).

Offline

Board footer

Powered by FluxBB