Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#157 2007-07-03 14:56:49
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: [plugin] [ORPHAN] chh_article_custom
Hack to have chh_article_custom category-features work with txp:article_custom :
Install chh_article_library and activate it; edit publish.php (in textpattern folder) around line 607 to :
$category = (!$category) ? '' : chh_sql_category($category, true)." ";
No need to install chh_article_custom.
Quite a few requests to make this core have already been posted.
Last edited by guiguibonbon (2007-07-03 16:56:51)
Offline
#158 2007-07-03 15:16:40
Re: [plugin] [ORPHAN] chh_article_custom
hi feragnoli
i just tried your mentioned asy-wondertag solution. but the author="<txp:author />"
generates the Real Name and not the Login-Name which is requested by article_custom.
Offline
#159 2007-07-03 16:47:13
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
I doubt this to be matter for a plugin but you might use something like this .
simple tag: <txp:nfe_author />
what was that again…?
Offline
#160 2007-07-03 19:15:01
Re: [plugin] [ORPHAN] chh_article_custom
Oh Yes! Thank you very much for this plugin. This is great!
Offline
#161 2007-07-03 19:46:56
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
well, you could actually just take that function and wrap it in a <txp:output_form ... />
tag between <txp:php>
tags and get the same result.
if you’re interested in finding out about Txp’s variables you should read something like this to start with.
the variables are context-sensitive and that means that, for instance, the array ‘thisarticle’ will be available only in an article page or inside an article form which is output of an article-list form.
go on, and good luck
what was that again…?
Offline
#162 2007-07-16 04:23:45
Re: [plugin] [ORPHAN] chh_article_custom
Does this plugins support to display custom_field?
Why I try to use chh_custom_form and I want display my custom_field with this code
<txp:chharticle_custom limit="9999" section="Pemasaran" category="kavling-vgg" form="data-kavling" />
on my data-kavling form code,
<tr <txp:zem_nth step=1 of=2>class="on_tb"</txp:zem_nth>
<txp:zem_nth step=2 of=2>class="KT_even"</txp:zem_nth>>
<td><txp:custom_field name="Kawasan" /></td>
<td><txp:custom_field name="Kavling" /></td>
<td><txp:custom_field name="Luas" /></td>
<td><txp:custom_field name="Ukuran" /></td>
<td><txp:custom_field name="Angsuran Total" /></td>
<td><txp:custom_field name="Angsuran Bulan" /></td>
</tr>
And display Nothing :(
But when I used the original article_custom
The script running with perfect.
Why I try to used chh_article_custom? because I want use more than one category on that form.
Please tell me what’s wrong?
Offline
#163 2007-08-02 10:34:53
- diniscorreia
- Member
- From: Lisbon, Portugal
- Registered: 2007-07-18
- Posts: 19
Re: [plugin] [ORPHAN] chh_article_custom
I’m using the plugi with no problems at all with version 4.0.5.
I was getting the chh_article_sql() error – it just meant I hadn’t installed chh_article_lib. You can get it here
Cheers!
-Dinis
Last edited by diniscorreia (2007-08-02 10:41:01)
Offline
#164 2007-09-15 21:33:46
Re: [plugin] [ORPHAN] chh_article_custom
If in an individual article, how do I display articles of the same section and category1 of the current article being displayed?
Here’s what I’m trying:
<txp:chh_article_custom section="?" limit="99" listform="article_thumbs" category="?" />
Last edited by mattmikulla (2007-09-15 21:34:28)
Art Rogue – Fine Art Photography
Offline
#165 2007-10-07 20:22:19
- sraone77
- Member
- Registered: 2007-08-23
- Posts: 11
Re: [plugin] [ORPHAN] chh_article_custom
Why chh_article_custom with older/newer on my site doesn’t work?
you give a glance
<txp:chh_article_custom listform=“form1” offset=“7” sort=“custom_1 desc” section=“attualita,cronaca,politica,economia,lavoro,turismo” />
<txp:older>« Pag. precedente</txp:older> | <txp:newer>Pag. successiva »</txp:newer>
Offline
#166 2007-10-26 22:37:08
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