Page 1 of 1
Custom Field Names
Posted: Wed Oct 19, 2005 4:35 pm
by garvinhicking
Posted: Wed Oct 19, 2005 5:14 pm
by Col. Kurtz
nice, well done!
Posted: Wed Nov 02, 2005 1:43 pm
by very beginner
is there any equivalent for comments ?
Posted: Thu Nov 03, 2005 9:46 am
by garvinhicking
Very beginner, what do you mean?
Regards,
Garvin
Posted: Thu Nov 03, 2005 11:59 am
by very beginner
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...
Posted: Thu Nov 03, 2005 1:10 pm
by garvinhicking
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