Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#136 2006-09-12 02:19:07

Finnish
Member
From: Russia, Vladivostok
Registered: 2005-11-02
Posts: 13

Re: [plugin] [ORPHAN] chh_article_custom

helped for me switching from Testing to Live Enivornment in Setting


have a nice day :)

Offline

#137 2006-09-15 16:49:00

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] chh_article_custom

Upgraded one install to 4.04 too, and I get the same errors. Looks like all the tag attributes that are provided by the chh_article_lib.
The Site runs fine though.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#138 2006-10-26 15:56:53

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: [plugin] [ORPHAN] chh_article_custom

Two things. One, The attribute listform no longer exists for article_custom as of 4.0.4 (just discovered this last night myself), and I believe chh_article_custom not only adds capabilities, it replicates the existing ones for the tag (including this deprecation of listform, I’m guessing). You might need to use conditionals to use a different form for a list of articles.

Two, the line 582 error is a false error (I was getting it on some custom fields … “attribute unknown”) that has been fixed in SVN. The error should not show on the site if you are switched to live mode, and the tag should work as expected.

Last edited by reid (2006-10-26 15:59:38)


TextPattern user since 04/04/04

Offline

#139 2006-11-08 16:29:09

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: [plugin] [ORPHAN] chh_article_custom

Yes, I am using <txp:chh_related_articles> in 4.0.4 and it is throwing tons of errors as well, though it seems to work. Anyone have an idea about how to fix it?

Offline

#140 2006-11-08 16:46:00

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

Re: [plugin] [ORPHAN] chh_article_custom

Ruud is offline at the moment, but he fixed chh_related_articles for Textpattern Resources
I’m not sure if I’m reading it properly, but I think he changed a line at the very bottom to be this:

$atts = array_intersect_key($atts,array_flip(array('form','label','break','wraptag','class','breakclass','labeltag','limit','allowoverride')));

line before that remains:
' LIMIT ' . doSlash($offset.$limit);

line after it remains:
return chh_build_article_list($atts, $smart_title, $where);
}

see if that fixes it.. otherwise I’m sure Ruud can help when he gets here.


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

Offline

#141 2006-11-08 17:17:17

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: [plugin] [ORPHAN] chh_article_custom

Well, I tried inserting the listed $atts = ... line (as there was previousle no line between the two mentioned) and it gave a fatal error: array_intersect_key is an unknown function, I suppose because I’m still on PHP 4-something. Anyone know if there will be any difficulties with TXP 4.0.4 if I switch to PHP 5 on my server?

UPDATE:
I did swith to PHP5, site seems to function just fine. I inserted the $atts... line again, into chh_related_articles, and it works like a charm now with no apparent errors. Thanks!

Last edited by nabrown78 (2006-11-08 17:22:05)

Offline

#142 2006-11-08 18:18:17

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

Re: [plugin] [ORPHAN] chh_article_custom

This might work for PHP4 users (and php5 as well):

$newatts = array();
$atts = foreach(array('form','label','break','wraptag','class','breakclass','labeltag','limit','allowoverride') as $key)
  $newatts[$key] = $atts[$key];
$atts = $newatts;

Insert it at the same spot as mentioned by Alicson.

Perhaps some other values should be added to that array as well. I think I only added the ones that Alicson was using. You’d have to check which attributes are allowed when calling chh_build_article_list.

Last edited by ruud (2007-06-23 17:08:03)

Offline

#143 2006-11-29 17:32:47

satsilem
Member
Registered: 2006-09-20
Posts: 19

Re: [plugin] [ORPHAN] chh_article_custom

I tried both the solutions but I always get an error and the website doesn’t start.

Is there really a solution on this

If the site is running on live mode you cant see the errors but is this ok?

Offline

#144 2006-12-12 16:33:09

bit
Archived Plugin Author
From: Philippines
Registered: 2005-02-14
Posts: 65
Website

Re: [plugin] [ORPHAN] chh_article_custom

I’m using chh_article_custom on 4.0.3 and I can’t get any sort of pagination working, whether it be via ob1_googlenav or the built-in newer/older tags. All three mentioned pagination tags output nothing.

Does anyone know what could be wrong? Could I have a plugin that’s creating conflicts? (I have a few custom plugins that I haven’t released.)

My chh_article_custom tag:
<txp:chh_article_custom listform="products_newest_item" section="Regular-Products,Special-Occasions" limit="9" />

My ob1_googlenav tag:
<txp:ob1_googlenav firsttext="First" previoustext="Previous" nexttext="Next" lasttext="Last" />


“The neighboring marshmallow factory fared no better, having been unable to absorb the incredible pressure wave.”

Offline

#145 2007-01-09 12:46:15

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: [plugin] [ORPHAN] chh_article_custom

Does anybody knows how to make this plugin work with TXP 4.0.4… ?

Offline

#146 2007-01-24 21:04:42

dkruitbosch
New Member
Registered: 2004-12-17
Posts: 9

Re: [plugin] [ORPHAN] chh_article_custom

Hi,

I’m having some trouble with chh_article_custom (version 1.15 on txp 4.0.4).
I’ve got this in my page template
@<txp:chh_article_custom allowoverride=“1” category=“sport” form=“sectionmenu” section=”?” />

And when I access the page I get this error:
Call to undefined function: chh_sql_category()

What am I doing wrong. I want to get a section sensitive (link) list of article titles that functions as a section aware menu

Any ideas?

Thanks in advance

Danny

Offline

#147 2007-02-19 13:28:43

tjnuckolls
Member
From: Los Angeles, CA
Registered: 2005-03-23
Posts: 23
Website

Re: [plugin] [ORPHAN] chh_article_custom

Just a quick bump to see if anyone has any light to shed on the TXP v4.04 issues folks have been having.

As for myself, I really need an article_custom tag that will allow me to show articles from multiple categories and I’m getting an error that looks like the following (I only listed one line below but the error is actually as many lines long as there are attributes for the plugin):

tag_error <txp:chh_article_custom allowoverride="0" category="cat1,cat2" form="default" listform="default" limit="5" pgonly="0" section="article" status="4" /> ->  Textpattern Notice: Unknown tag attribute: listform  on line 582

My configuration is as follows:
TXP v4.0.4
chh_article_custom v1.15 (enabled)
chh_article_lib v1.04 (enabled)

Any assistance would be most appreciated.

Regards,
TJ

Offline

#148 2007-02-19 14:29:47

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] chh_article_custom

I’m also getting errors with chh_article_custom and TXP 4.0.4 too. What I really like about this plug-in is the ability to choose multiple categories and also to specify parent categories and their children.

However, it looks a little like this plug-in may not be suppported at the moment so I’d like to move to standard TXP tags – not sure if either of the above can be achieved that way.

Offline

#149 2007-02-20 02:40:46

tjnuckolls
Member
From: Los Angeles, CA
Registered: 2005-03-23
Posts: 23
Website

Re: [plugin] [ORPHAN] chh_article_custom

Alright, so here’s my (hopefully) temporary solution for a multiple category article query: rss_unlimited_categories v0.7.2 combined with ied_hide_in_admin 0.1.6 to hide the standard categories from the user.

On a side note, I spent the whole day trying to figure out the article_custom tag so I could recreate mem’s mem_article_custom plugin, or even place db query raw in a form for the time being for a temporary solution, but I found it’s not that simple. I do feel, however, if someone (zem, a possibility for plugin tutorial pt 5 perhaps?) would create a walk-through of an integral tag such as this, it would give many people on the verge of being able to contribute the tools necessary to really give back to the community, and take some of the strain off some of the key superheroes we all owe so much.

Offline

Board footer

Powered by FluxBB