Bug in History plugin?

Creating and modifying plugins.
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Bug in History plugin?

Post by yellowled »

While working on its HTML output, I played around with the History plugin a lot, but I never got it to actually display the entry body. The relevant part of the plugin code as far as I understand it is:

Code: Select all

strip_tags($e[$x]['body']) . '<br />';
Is this a bug in the plugin or a misconfiguration in my devblog?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Bug in History plugin?

Post by garvinhicking »

Hi!

Body is only shown when this is enabled in the config of the history plugin. (something like "Fetch full"...)

REgards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Bug in History plugin?

Post by yellowled »

garvinhicking wrote:Body is only shown when this is enabled in the config of the history plugin. (something like "Fetch full"...)
Erm ... yeah, I know. Exactly my point. I did turn it on in the plugin config explicitly, yet it still doesn't show up in the sidebar ...

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Bug in History plugin?

Post by garvinhicking »

Hi!

I just committed a fix , can you try that?

REgards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Bug in History plugin?

Post by yellowled »

garvinhicking wrote:I just committed a fix , can you try that?
I know, I was just about to commit my changes to that plugin to svn when I noticed the update :)

Yup, now it's working. I'll commit my changes to the code now.

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Bug in History plugin?

Post by yellowled »

yellowled wrote:I'll commit my changes to the code now.
Hmmm. Once I put this:

Code: Select all

strip_tags($e[$x]['body']) . '<br />';
into a div like this

Code: Select all

echo '<div class="serendipity_history_info"><span class="serendipity_history_author">' . $author . '</span> <span class="serendipity_history_date">'. $date . "</span> <a href='$url' title='".str_replace("'", '`', htmlspecialchars($e[$x]['title']))."'>". htmlspecialchars($t) . '</a></div><div class="serendipity_history_body"' .
                 strip_tags($e[$x]['body']) . '</div>';
the body disappears again. Any idea why this is? It would really be nicer to put the body into a div, too.

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Bug in History plugin?

Post by yellowled »

yellowled wrote:Any idea why this is?
Because I am too stupid, that's why :) Problem solved.

YL
Post Reply