Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Custom Fields for a Post

Hello Community,

what is the best way to add a custom field to a post? I could not find a plugin therefore.

Thank you very much!

Comments

  • R_JR_J Admin

    HA! That's something I'm messing around with right now. So I might be able to help.

    • the first "post" is a discussion and the ongoing posts are comments. That's important to know!
    • add a custom field in table discussions
    • add a custom field in table comments
    • enable the eventi plugin (great tool!) and look for the name of the event where you want to show your extra information. Hook all events to reflect create, read and update of your field
    • showing this is just done with any other field from discussion and comment so you can use the standard comment/discussion view as a blueprint.
    • the best is: the same goes for inserting and updating! It is really simple, because you just have to show a textbox with the corresponding name in the view and that's it.

    You can take a look at this http://vanillaforums.org/addon/usersvanillaversion-plugin. That should be really helpful because it is quite simple and does what you try to achieve, although it adds an extra field to profile and not to dicsussions/comments. But with the eventi plugin it should be a snap to choose the right events. Good luck!

  • Thank you very much R_J,

    I will try that when I'm home tonight!

Sign In or Register to comment.