Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-04-03 17:53:46

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

Re: [archived] rei_recent_comments: Recent Comments Unordend List

One more try…

word<code><</code>br

(If this doesn’t work, I won’t try again… I’ll trust that you know what I mean)

Offline

#32 2005-05-12 08:49:21

Marco70
New Member
Registered: 2005-05-12
Posts: 4

Re: [archived] rei_recent_comments: Recent Comments Unordend List

This plug-in is very cool. I have a request for 2 extra features which will make it utterly suitable for a Guestbook system:

- Limit the display to the comments of a specific section/article

- Sorting the comments according to date, newest comment displayed first.

It would be great to have these features, as the only alternative right now (sdr_guestbook) is very difficult to customize.

Last edited by Marco70 (2005-05-12 08:51:31)

Offline

#33 2005-08-09 21:39:39

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Hi Reinier!

Your plugin is pretty cool.

Is it possible to show the comment without html-tags? just the content string, no p-tags or else?

Offline

#34 2005-08-12 14:03:35

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

May I add a second question: is it possible, to integrate the gravatar into the recent comments?

Offline

#35 2005-08-21 13:04:43

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

Re: [archived] rei_recent_comments: Recent Comments Unordend List

The Gravatar things depents on another plugin right? Or is it a built in feature of 4.0?


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

Offline

#36 2005-08-21 16:19:14

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

The Gravatar ist another plugin. But the code does not seem to be too complicated. Probably you could integrate that into your plugin.

Offline

#37 2005-10-20 07:57:19

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Please, does somebody know how to make recent comments “zebra”? So every even comment will have a specific class?

Last edited by beztak (2005-10-20 09:16:39)

Offline

#38 2005-11-11 15:43:03

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Is anyone having problem with this plugin when using 4.0.2

Because when i click on the link of the recent comments i get an error page saying it can’t find the page of the article. I notice that the url is messy something like this /index.php?id=32#c000007. I think it worked ok when i was using 4.0.1 or probably i hadn’t noticed before.

Offline

#39 2005-11-12 21:05:46

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

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Try this, I made a quick hack. Let me know if it works!

http://www.reinier.biz/txp_plugins/rei_recent_comments.txt


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

Offline

#40 2005-11-14 13:41:33

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: [archived] rei_recent_comments: Recent Comments Unordend List

when i try to install it i get this message

Notice: Undefined variable: author in /web/sites/205/morava/www.morava.f2s.com/book/textpattern/include/txp_plugin.php on line 208

Notice: Undefined variable: author_uri in /web/sites/205/morava/www.morava.f2s.com/book/textpattern/include/txp_plugin.php on line 209

Notice: Undefined variable: version in /web/sites/205/morava/www.morava.f2s.com/book/textpattern/include/txp_plugin.php on line 210

Notice: Undefined variable: description in /web/sites/205/morava/www.morava.f2s.com/book/textpattern/include/txp_plugin.php on line 211

Offline

#41 2005-11-14 19:05:50

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

Re: [archived] rei_recent_comments: Recent Comments Unordend List

I updated the plugin:
http://www.reinier.biz/txp_plugins/rei_recent_comments.txt

FYI: Notices from PHP aren’t a big deal, the code works fine.


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

Offline

#42 2005-11-14 20:51:27

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: [archived] rei_recent_comments: Recent Comments Unordend List

yes, it works fine

thanks a lot

Offline

#43 2005-11-15 16:33:12

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

Re: [archived] rei_recent_comments: Recent Comments Unordend List

I’ll be working on a ‘zebra’ function. I think it’s finished somewhere this weekend.


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

Offline

#44 2005-11-24 09:37:44

kellner
Member
Registered: 2004-02-27
Posts: 21
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

A few more thoughts/questions/suggestions:

- the “labeltag” isn’t used, meaning that the label of the recent comments list is part of the unordered list rather than being placed inside a special labeltag on top of it. (This is like the bug we’ve had in older Txp versions.)
- links are in messy mode even though my site is set to clean url mode. No idea why.
- I use “ul” as wraptag and “li” as break, and textile is allowed in comments (it’s not for the older comments that were importend from WordPress). The latter setting seems to entail that comment messages are automatically wrapped in a “p” tag in the database. As a result, the words from the message are automatically wrapped in “p” as well in the recent comments list, which is not nice if they are then embedded in “li”. Would it be possible to strip a surrounding “p” from the comment message in the plugin before the output code is computed?

Thanks!

Offline

#45 2005-11-25 17:20:27

kellner
Member
Registered: 2004-02-27
Posts: 21
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Just found out how to strip tags from the comment message. In case anyone else would like to get rid of them:

in the plugin code, right before “$wrds = explode(” “,$message);”, add this line:
“$message = strip_tags($message);”

Offline

Board footer

Powered by FluxBB