Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2007-09-18 18:30:31

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

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,304

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

#65 2007-10-23 13:54:26

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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

#66 2007-10-23 14:14:55

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

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,304

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,304

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

#69 2007-10-23 14:54:00

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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,304

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

#71 2007-10-23 15:37:11

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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 plugin

What did I do wrong?

Offline

Board footer

Powered by FluxBB