Custom Field Names

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Custom Field Names

Post by garvinhicking » Wed Oct 19, 2005 4:35 pm

# 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/

Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz » Wed Oct 19, 2005 5:14 pm

nice, well done!
Marc

very beginner

Post by very beginner » Wed Nov 02, 2005 1:43 pm

is there any equivalent for comments ?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Thu Nov 03, 2005 9:46 am

Very beginner, what do you mean?

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/

very beginner

Post by very beginner » Thu Nov 03, 2005 11:59 am

i mean, i've just install a fresh 0.9 serendipity blog,
i'm looking at customizing the comment form :
i would like to add some more fields, and hook to save them in a separate table

so i've been searching the forum about that, and came across that post
i thought i was quite near from what i wanted,

i may have not search enough, but i'm trying to customize this in a way i can easily upgrade afterwards.

i suspect i should find an answers somewhere, i will find harder...

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Thu Nov 03, 2005 1:10 pm

Ah, okay. Adding custom items to that form is not possible as easily, but you can do it.

I suggest you to look at these things:

templates/default/commentform.tpl
include/functions_comments.inc.php
/comment.php

Modifying your table should also be possible. Abstracting the issue would also work, and could then offer this as a plugin, but it is still a few hours of work to do...

If you are able to abstract the functionality, we can gladly patch it into our core, so you're safe for upgrading. It will only be a few lines of serendipity_plugin_api::hook_event() calls, so you might want to look at that?

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/

Post Reply