Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] chh_related_articles
actually just managed to fix it using the fix for cnh_article custom
between the lines
' LIMIT ' . doSlash($offset.$limit);
and
return chh_build_article_list($atts, $smart_title, $where);
I inserted
$atts = array_intersect_key($atts,array_flip(array('form','label','break','wraptag','class','breakclass','labeltag','limit','allowoverride')));
and the errors stopped :D
Last edited by kemie (2007-09-18 18:34:47)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#62 2007-09-18 18:40:15
- hachi
- Member
- From: switzerland
- Registered: 2004-04-24
- Posts: 25
Re: [plugin] [ORPHAN] chh_related_articles
When I insert this, I get the following error:
Fatal error: Call to undefined function: array_intersect_key() in /path/to/mysite/textpattern/lib/txplib_misc.php(534) : eval()'d code on line 182
:-(
Offline
#63 2007-10-06 21:26:22
- plugmas.com
- Member
- Registered: 2007-09-05
- Posts: 65
Re: [plugin] [ORPHAN] chh_related_articles
Hi,
Create a articles list in the same category using <txp:chh_related_articles /> make a error in my web “tag_error <txp:chh_related_articles/> -> Textpattern Error: Unable to include required plugin “chh_article_lib” on line 459”
I need help. Inserting <txp:chh_related_articles /> can create a article list of the same category witout especify any category like “article” “ familiar” so so??
Thanks
Offline
#64 2007-10-10 11:31:59
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
hachi, have you applied kemies modification to an already modified version of the plugin? Just a thought.
A further thought: kemie has modified her/his post while you might have tested a previous version of his code.
Last edited by uli (2007-10-10 11:37:13)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [plugin] [ORPHAN] chh_related_articles
Weird things happening: yesterday, I installed the plugin, and my page got full of those “warning: unknown tag” errors. Today, I reinstalled the plugin, and it seems to work perfectly! Quite curious, isn’t it?
Now, I’ve got a question: I set the relation to “keywords”, and set the attribute “strict=y”. The help says that keywords must be separated by commas, and no spaces are allowed before or after the commas. Is there a way to override this? I don’t know how to hack the plugin, can anyone help? I need it because I’ve got lots of articles with keywords separated by a comma+space, and I use the plugin tru_tags which automatically inserts a comma+space after every keyword…
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
Re: [plugin] [ORPHAN] chh_related_articles
uli, just to clarify, i only edited to fix formatting. did not change the actual code. and it’s her ;)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#67 2007-10-23 14:15:07
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
vittorio:
Weird things happening: yesterday, I installed the plugin, and my page got full of those “warning: unknown tag” errors. Today, I reinstalled the plugin, and it seems to work perfectly! Quite curious, isn’t it?
If you didn’t change the production status between “yesterday” and “today”: yes.
Sorry I can’t help you with your actual question.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#68 2007-10-23 14:19:52
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
kemie:
and it’s her ;)
Didn’t mean to offend you by using my gender. ;))
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [plugin] [ORPHAN] chh_related_articles
uli wrote:
If you didn’t change the production status between “yesterday” and “today”: yes.
I did change the status, from test to live. But then I deleted the plugin and switched again to test. Then, today, I reinstalled it again. And it’s working, still in “test” status…
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#70 2007-10-23 15:24:09
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
Odd! I wish you the same magic fingers for your keywords problem.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [plugin] [ORPHAN] chh_related_articles
uli wrote:
Odd! I wish you the same magic fingers for your keywords problem.
Thank you. But I fear it will be a little bit more difficult, as I don’t even know where i should start. Php code seems like chinese to me… :)
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#72 2007-10-26 05:28:56
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: [plugin] [ORPHAN] chh_related_articles
I tried using this plugin. I used the folowing code;
<txp:chh_related_articles relation="keyword" />
and inserted it into my page.
I then inserted matching keywords for a couple of articles but nothing happened. I didn’t see any of those related articles spew out.
I installed both the chh_related_articles plugin and the chh_article_lib pluginWhat did I do wrong?
Offline
#73 2007-12-07 15:34:59
- rad
- New Member
- Registered: 2007-12-07
- Posts: 1
Re: [plugin] [ORPHAN] chh_related_articles
BUG FIXED
as a reply to the numerous post about the error messages this pluging creates.
Here instruction how to fix:
go edit
chh_article_lib. about halfway through the code you will find the “lAtts” function. This function gives an array of variables default values. The problem is that in this code not all the variables of the array are listed. you find the right bit of code in chh_related_articles (open as edit): the same funciton (lAtts) appears at the very beginning of the code. copy-paste the full array of variables into chh_article_lib, and thereby replace the partial array in the code.
good luck ;)
Offline
#74 2007-12-07 18:13:51
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
rad, you must be some kind of an angel ;))
Yesterday I thought of asking someone for the adoption of this wonderful plugin.
This works for 4.0.5, you mean?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [plugin] [ORPHAN] chh_related_articles
I’m following along with great anticipation.
This one really gets my vote for inclusion in the TXP core.
I’m sure that will never happen…but I’ve been Christmas shopping this week and have “wishlists” on my mind.
- )
—
Tom
Offline