Textpattern Forum

You are not logged in. Register | Login | Help

#21 2004-10-23 14:51:46

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

> Michael wrote:

> When trying to install your v02 on the 1rc1 of TXP, it says: Badly formed or empty plugin > code.

> How can I fix this?

You can use this code in RC1:

<code>
YTo4OntzOjQ6Im5hbWUiO3M6MTk6InJlaV9yZWNlbnRfY29tbWVudHMiO3M6NjoiYXV0aG9yIjtzOjEzOiJSZWluaWVyIExhZGFuIjtzOjEwOiJhdXRob3JfdXJpIjtzOjIzOiJodHRwOi8vd3d3LnJlaW5pZXIuYml6LyI7czo3OiJ2ZXJzaW9uIjtzOjM6IjAuMyI7czoxMToiZGVzY3JpcHRpb24iO3M6NDE6IlNob3cgcmVjZW50IGNvbW1lbnRzIGlzIGFuIHVub3JkZW5kIGxpc3QuIjtzOjQ6ImhlbHAiO3M6NzU1OiINCg0KCTxwPldoYXQgY2FuIEkgc2F5PyBJJ2xsIGdpdmUgeW91IHNvbWUgZXhhbXBsZXM6PC9wPg0KCTxwPjxjb2RlPjx0eHA6cmVpX3JlY2VudF9jb21tZW50cyAvPjwvY29kZT48L3A+DQoJPHA+PGNvZGU+PHR4cDpyZWlfcmVjZW50×2NvbW1lbnRzIHNob3djb21tZW50PSJ5ZXMiIC8+PC9jb2RlPjwvcD4NCgk8cD48Y29kZT48dHhwOnJlaV9yZWNlbnRfY29tbWVudHMgc2hvd2NvbW1lbnQ9InllcyIgbWF4d29yZHM9IjIwIiAvPjwvY29kZT48L3A+DQoJPGRsPg0KCSAgICA8ZHQ+PGNvZGU+Jmx0O3R4cDpyZWlfcmVjZW50×2NvbW1lbnRzIC8mZ3Q7PC9jb2RlPjwvZHQ+DQoJCTxkZD5SZXR1cm5zIGxpbmtzIHRvIHRoZSBsYXN0IDEwIGNvbW1lbnRzLjwvZGQ+DQogICAgICAgIDxkdD48Y29kZT4mbHQ7dHhwOnJl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dHkoJG1heHdvcmRzKSkgID8gNTAgOiAkbWF4d29yZHM7DQoNCgkJJHEgPSAic2VsZWN0ICIuUEZYLiJ0eHBfZGlzY3Vzcy4qLCIuUEZYLiJ0ZXh0cGF0dGVybi4qIGZyb20gIi5QRlguInR4cF9kaXNjdXNzDQogICAgICAgICAgICBsZWZ0IGpvaW4gIi5QRlguInRleHRwYXR0ZXJuIG9uICIuUEZYLiJ0ZXh0cGF0dGVybi5JRCA9ICIuUEZYLiJ0eHBfZGlzY3Vzcy5wYXJlbnRpZA0KCQkJb3JkZXIgYnkgIi5QRlguInR4cF9kaXNjdXNzLnBvc3RlZCBkZXNjIGxpbWl0IDAsJGxpbWl0IjsNCg0KCQkkcnMgPSBnZXRSb3dzKCRxKTsNCg0KCQlpZiAoJHJzKSB7DQoJCQlpZiAoJGxhYmVsKSAkb3V0W10gPSAkbGFiZWw7DQoJCQlmb3JlYWNoICgkcnMgYXMgJGEpIHsNCgkJCQlleHRyYWN0KCRhKTsNCgkJCQkNCiAgICAgICAgICAgICAgICAkd3JkcyA9IGV4cGxvZGUoIiAiLCRtZXNzYWdlKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICBpZihjb3VudCgkd3JkcykgPiAkbWF4d29yZHMpew0KICAgICAgICAgICAgICAgICAgICAkcmxlY2hvID0gIiI7DQogICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICBmb3IoJGk9MDskaTw9JG1heHdvcmRzOyRpKyspIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICRybGVjaG8gLj0gJHdyZHNbJGldLicgJzsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgJG1lc3NhZ2UgPSAnPHA+Jy4kcmxlY2hvLicuLi48L3A+JzsNCiAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgJG1lc3NhZ2UgPSAnPHA+Jy4kbWVzc2FnZS4nPC9wPic7DQogICAgICAgICAgICAgICAgfQ0KDQogICAgICAgICAgICAgICAgJE1lc3NhZ2UgPSAoJHNob3djb21tZW50ID09ICdubycpID8gJycgOiAkbWVzc2FnZTsNCg0KCQkJCSRvdXRbXSA9ICgkdXJsX21vZGUpDQoJCQkJPwknPGEgaHJlZj0iJy4kcGZyLiRTZWN0aW9uLicvJy4kSUQuJy8jYycuJGRpc2N1c3NpZC4nIj4nDQoJCQkJCQkuJG5hbWUuJyAoJy4kVGl0bGUuJyk8L2E+Jy4kTWVzc2FnZQ0KCQkJCToJJzxhIGhyZWY9IicuJHBmci4naW5kZXgucGhwP2lkPScuJElELicjYycuJGRpc2N1c3NpZC4nIj4nDQoJCQkJCQkuJG5hbWUuJyAoJy4kVGl0bGUuJyk8L2E+Jy4kTWVzc2FnZTsNCgkJCX0NCgkJCWlmIChpc19hcnJheSgkb3V0KSkgew0KCQkJCWlmKCRicmVhayA9PSAnbGknKSB7DQoJCQkJCXJldHVybiAoJHdyYXB0YWcpIA0KCQkJCQk/CXRhZygiPGxpPiIuam9pbigiPC9saT5cbjxsaT4iLCRvdXQpLiI8L2xpPiIsJHdyYXB0YWcpIA0KCQkJCQk6IAkiPGxpPiIuam9pbigiPC9saT5cbjxsaT4iLCRvdXQpLiI8L2xpPiI7DQoJCQkJfQ0KCQkJCXJldHVybiAoJHdyYXB0YWcpIA0KCQkJCT8JdGFnKGpvaW4oJGJyZWFrLm4sJG91dCksJHdyYXB0YWcpIA0KCQkJCTogCWpvaW4oJGJyZWFrLm4sJG91dCk7DQoJCQl9DQoJCX0NCgkJcmV0dXJuICcnOw0KCQkNCgkJDQoJfQ0KDQoiO3M6MzoibWQ1IjtzOjMyOiI1NDk3MjZkNjdhNTVmNzhkYzA4OGQwMGVlMzY4YzEwYiI7fQ==
</code>


VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”

Offline

#22 2005-02-14 10:41:53

kirk
New Member
From: LA
Registered: 2005-01-20
Posts: 8

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Is there a way to have my own comment replies not show up on the list?

Perhaps in the SQL SEARCH query, is there a way to disinclude my own name (“kirk”) from txp_discuss?

CURRENT CODE
$q = “select “.PFX.“txp_discuss.,”.PFX.“textpattern. from “.PFX.“txp_discuss
left join “.PFX.“textpattern on “.PFX.“textpattern.ID = “.PFX.“txp_discuss.parentid
order by “.PFX.“txp_discuss.posted desc limit 0,$limit”;

HOW DO I CHANGE THIS? to make it not display my own comments—I reply to certain comments in my own add comment area.

Thank you,

Offline

#23 2005-02-16 06:55:26

kirk
New Member
From: LA
Registered: 2005-01-20
Posts: 8

Re: [archived] rei_recent_comments: Recent Comments Unordend List

AFTER:
$q = “select “.PFX.“txp_discuss.,”.PFX.“textpattern. from “.PFX.“txp_discuss

I ADDED:
where “.PFX.“txp_discuss.discussid.name != ‘kirk’

But that doesn’t seem to work.
Any suggestions?

Kirk

Last edited by kirk (2005-02-16 06:55:57)

Offline

#24 2005-02-28 22:13:37

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

> kirk wrote:

> AFTER:
> $q = “select “.PFX.“txp_discuss.,”.PFX.“textpattern. from “.PFX.“txp_discuss

> I ADDED:
> where “.PFX.“txp_discuss.discussid.name != ‘kirk’

Try this instead:

where “.PFX.“txp_discuss.name != ‘kirk’

CURRENT CODE
$q = “select

Last edited by ReinierBiz (2005-02-28 22:15:15)


VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”

Offline

#25 2005-03-01 00:43:16

kirk
New Member
From: LA
Registered: 2005-01-20
Posts: 8

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Thanks ReinerBiz,

I already got this problem resolved, here.
Maybe you can add it to your next versions of your plugin.

I modded to be able to output:
(1) comments from specific sections
(2) and to not include my own comments

Once again, thanks for your great plugin.

Last edited by kirk (2005-03-01 00:47:19)

Offline

#26 2005-03-01 06:26:20

andreas
Member
Registered: 2004-02-28
Posts: 452
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Feature request:

Reinier, would it be possible to determine the number of comments myself? E.g. in the form <txp:rei_recent_comments comments="5" showcomment="yes" maxwords="20" />

Offline

#27 2005-03-01 08:57:14

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

> andreas wrote:

> Feature request:

> Reinier, would it be possible to determine the number of comments myself? E.g. in the form <txp:rei_recent_comments comments="5" showcomment="yes" maxwords="20" />

Yes, use:
<txp:rei_recent_comments limit="5" showcomment="yes" maxwords="20" />


VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”

Offline

#28 2005-03-01 18:33:53

andreas
Member
Registered: 2004-02-28
Posts: 452
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Great! Thanks.

Offline

#29 2005-04-03 17:49:15

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,380
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Reinier, I’m using your plugin and just found out one small thing:
When using maxwords=“n”, and the n-th word has a <code><br /></code> tag behind it, like this: <code>word<br /></code>, the plugin sees the word as <code>word<br</code> because of the space in it. Which gets me a validation error for ‘not closing the tag’.

Of course I can live with that, but there might be a simple solution for it (other than scanning all my comments for br-tags)?


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#30 2005-04-03 17:50:48

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,380
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Grmpf, can’t edit. I meant the plugin sees the word as: word<br


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

Board footer

Powered by FluxBB