Bugs: freetag plugin and recent comments plugin

Found a bug? Tell us!!
Post Reply
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Bugs: freetag plugin and recent comments plugin

Post by carl_galloway »

Hi all,

Freetag plugin, not sure if its a bug or feature, but on the startpage the freetag plugin is placed under the entry footer, but in detailed view its above the entry footer. Could this be fixed so it is either above or below on both?

Recent comments plugin, this definitely is a bug, if a comment author is anonynous the plugin leaves a blank space. Could this be fixed?

Cheers
Carl
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

What would you like the anonymous name to be? I'll probably make all blank names the same thing.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Carl: Thanks for the freetag pointer. I just committed a new version to CVS (2.33) which should fix that. Can you try it?

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/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Judebert, anonymous comments in the entry's page are just known as anonymous, I could suggest coward, yellow knees etc, but probably 'anon' would be better. It has the advantage of brevity, and when used in a sidebar or dropdown small is better.

Garvin, awesome, thanks I'll check it out asap.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

erm, something went wrong with the comment fix. I've posted a screenshot here. I updated to the latest nightly build, but other than that I'm not using anything else different from the standard installation.

As you can see from the screenshot (bottom of the page), the comments area is being messed around quite badly. This is the detail page for a single entry. The startpage works as per it was before the freetag change.

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

Post by garvinhicking »

Hi Carl!

That error you posted there is impossible to stem from the "recent comments" commit I made.

Does this error happen with the default template, without ANY changes made? Since I can'T reproduce this problem here on my machine...

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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

To get a default name for anonymous comments, add this code at line 177 of serendipity_plugin_comments.php:

Code: Select all

                $user = trim($user);
                if (empty($user))
                {
                    $user = PLUGIN_COMMENTS_ANONYMOUS;
                }
           
Then, in the plugin's lang_en.inc.php, add this line:

Code: Select all

@define('PLUGIN_COMMENTS_ANONYMOUS', 'anon');
You can use any string you want, of course, including "yellowbelly". :)

I'll try to commit this to CVS later tonight.
Judebert
---
Website | Wishlist | PayPal
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

judebert your fix worked like a charm. I would suggest this be 'committed' as a regular part of s9y.

Garvin, I'm sorry, my brain is on overload, I meant the freetag plugin, not the comments plugin - hope this hasn't caused you any headaches.

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

Post by garvinhicking »

Carl,

thanks for mentioning. I confused the two threads on my own, so it's my fault :) I also fixed the plugin in the new version 2.34 now; it was missing the array index "[0]" before "['add_footer']"...

Best 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/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Garvin, that worked beautifully (the freetag fix). thank you.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Garvin, I tried to commit my fix at Sourceforge, but the serendipity_plugin_comments is not an additional_plugin. When I checked out the base, I found the existing plugin was only version 1.0, and obviously needed updating. Are we keeping the Serendipity core code elsewhere?
Judebert
---
Website | Wishlist | PayPal
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

judebert,

the core plugins are hosted at berlios, but I don't know how to access them for your purposes. This linkwill show you what's there.

Carl
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Okay, NOW it's in. I hope. I'm new to SVN, but it's very similar to CVS, so everything should have worked out correctly.
Post Reply