Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#166 2007-10-26 22:37:08

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] chh_article_custom

Hi! I created topic here
The task is to call articles where month of post is, for example curent+1 or, it would be nice if this is possible, the day of post is current+15.

To make task clearlier:
I have list of articles where every article is somebody’s article, where the post date correlates with tha day of birth. For ex. my birthday is 5th Nov 1987 and article post date is set to 2006-05-11 (YYYY-DD-MM). (I don’t enter year because there is no need in it)

And i want to output articles wich will have birthday soon. Attribute day in chh_article_custom is, as I see, year-sensitive.
How can i output articles not looking to the year of post?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#167 2007-12-13 06:28:50

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

Re: [plugin] [ORPHAN] chh_article_custom

Hi!

Great plugin. Many thanks for sharing with the rest of us. :)

Not sure if this will help others, but maybe this change could be added to the next revision…

I added the below code to cch_article_custom right after line #249:

$pg = (!$pg) ? 1 : $pg; //  This is line #249
$pg = ($pg > $numPages) ? $numPages : $pg; // This will return the last set of articles if $_GET['pg'] is outside the range actual articles.

The above piece of code will return the last page of article if the $pg query string is greater-than the actual page limit… In other words, if someone modifies the ?pg (http://domain.com/?pg=X) query string in the URL to be a greater page number than what actually exists, then cch_article_custom will return the last page… Rather than returning nothing at all.

Not sure if this is a good feature request or not, but I just thought I would throw that out there. :)

Thanks again for sharing the plugin.

Cheers,
Micky

Offline

#168 2007-12-15 12:21:50

Alex007
Member
Registered: 2007-10-24
Posts: 57

Re: [plugin] [ORPHAN] chh_article_custom

Sorry i haven’t followed this long post, i have just installed this plugin and am trying to use it like so

If i am posting in the wrong place shout now…

code

<txp:chh_article_custom category=“Latest-News” listform=“news” />

<txp:if_article_list>
<div class=“paginationwrap”>
<txp:ob1_pagination firsttext=“First” previoustext=“Previous” nexttext=“Next” lasttext=“Last” ulclass=“pagination” />
</div>
</txp:if_article_list>

code

And i am getting a load of errors

Tag error: <txp:chh_article_custom category=“Latest-News” listform=“news” /> -> Textpattern Notice: Unknown tag attribute: listform on line 605

Tag error: <txp:chh_article_custom category=“Latest-News” listform=“news” /> -> Textpattern Notice: Unknown tag attribute: searchform on line 605

What have i done wrong?

I am unsing the following versions:
chh_article_custom 1.15
chh_article_lib 1.04

Thanks for any help.
A.

Offline

#169 2007-12-15 13:05:40

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

Re: [plugin] [ORPHAN] chh_article_custom

Set production status to ‘Live’ and the notices will probably go away :) If the plugin does what it’s supposed to do, you don’t need to worry.

Offline

#170 2007-12-15 13:28:11

Alex007
Member
Registered: 2007-10-24
Posts: 57

Re: [plugin] [ORPHAN] chh_article_custom

Thanks – it works but the pagination isn’t – do you know how to set this to show the following

  • First
  • Previous
  • 1
  • 2
  • Next
  • Last

Offline

#171 2007-12-15 14:03:22

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

Re: [plugin] [ORPHAN] chh_article_custom

That’s another plugin, I’m not familiar with it. You’d better ask in the plugin thread.

Offline

#172 2007-12-16 17:04:00

Alex007
Member
Registered: 2007-10-24
Posts: 57

Re: [plugin] [ORPHAN] chh_article_custom

Anyone have any idea how to display list of articles in category with pagination?

I have been trying to get this working with the help of jstubbs but we’ve not manage to succeed – I’m sure there must be a way to list 6 articles within a category and paginate through the rest of them?

Can anyone help?

For more info on what i am trying to achieve see this post

Last edited by Alex007 (2007-12-16 17:11:04)

Offline

#173 2007-12-16 17:11:04

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

Re: [plugin] [ORPHAN] chh_article_custom

Alex007, have you tried using chh_article instead of chh_article_custom?

Offline

#174 2007-12-16 17:17:52

Alex007
Member
Registered: 2007-10-24
Posts: 57

Re: [plugin] [ORPHAN] chh_article_custom

I just tried it like so – but no luck, it didnt show any articles – am i missing some attributes?

<!-- section page: display the first two articles then paginate -->
<txp:cch_article status="live" category="Latest-News" listform="news" limit="12" />
<div class="paginationwrap">
<txp:ob1_pagination firsttext="First" previoustext="Previous" nexttext="Next" lasttext="Last" ulclass="pagination" />
</div>

Offline

#175 2007-12-16 17:29:31

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

Re: [plugin] [ORPHAN] chh_article_custom

I’m not sure, I’ve never used this tag myself, but:

  1. What if you change listform to form?
  2. Does the regular pagination (<txp:older> and <txp:newer>) work with this? If so, the problem must be in the pagination plugin.

Offline

#176 2007-12-16 17:34:02

Alex007
Member
Registered: 2007-10-24
Posts: 57

Re: [plugin] [ORPHAN] chh_article_custom

The regular pagination will work but i want to have the google style pagination as this is more user friendly and people are used to this way.

I will see if the author of the pagination plugin can help.

Thanks.

Offline

#177 2007-12-16 17:59:12

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

Re: [plugin] [ORPHAN] chh_article_custom

Have you tried using another plugin for the pagination? If I remember well I have been using rsx_pagenumber with chh_article(_custom) in the past.

Offline

#178 2008-01-18 00:00:07

Adam_V
Member
From: Vancouver, BC, Canada
Registered: 2007-08-22
Posts: 10
Website

Re: [plugin] [ORPHAN] chh_article_custom

I’m just wondering if anyone is able to get this plugin to work. I’ve installed it on several sites hoping to get it to work because its features are so far beyond txp built in article_custom tag, but I always end up getting errors.

At any rate, here’s the code I put in:
<txp:chh_article_custom listform="newsfeed" category="news,journal,design-lab" sortby="Posted" sortdir="desc" status="live" />

I get the following errors on any page that I have it on (I’ve only included one line here, but txp repeats the same message for each tag attribute, so there’s about 20 error lines in all):
Tag error: <txp:chh_article_custom listform="newsfeed" category="news,journal,design-lab" sortby="Posted" sortdir="desc" status="live" /> -> Textpattern Notice: Unknown tag attribute: titlearticles on line 605

I am using textpattern 4.0.5 with chh_article_custom v1.15 and chh_article_lib v1.04. If anyone has any experience with these problems and has solutions to fix them, your help would be much appreciated. Cheers!

Last edited by Adam_V (2008-01-18 00:02:30)

Offline

#179 2008-01-18 00:40:43

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] chh_article_custom

It claims but works :0 Change site status to “Live” and everuthing will be Ok


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#180 2008-01-18 00:47:35

Adam_V
Member
From: Vancouver, BC, Canada
Registered: 2007-08-22
Posts: 10
Website

Re: [plugin] [ORPHAN] chh_article_custom

the_ghost wrote:

It claims but works :0 Change site status to “Live” and everuthing will be Ok

Hahaha… omg, I never even paid attention to the production status of the site. Thanks man! =D

Offline

Board footer

Powered by FluxBB