Notifications
Clear all

wpForo 1.x.x [Closed] Custom Field to Topic or Programmatic Topic Submission

4 Posts
2 Users
0 Reactions
2,395 Views
Posts: 11
Topic starter
(@themofella)
Active Member
Joined: 6 years ago

Hi,

I really hope this is possible within wpForo as I am looking to use wpForo for more structured exchanges between members.

Context: I am looking to use wpForo as means to share information between members of potential opportunities. Unlike a general conversation style topic, the opportunities have specific information related to them e.g. valid until, location, income, etc and unless I provide a structured mechanism to provide this input the poster is likely to just put unstructured information and not answer the typical information requirements of other members.

Ideal Solution: It would be great if wpForo topic submission form can be extended to include additional fields (quite similar to "Topic tags" field). This would then prompt members to provide the right  information. Is this possible to do, even if it means through some coding and integration with ACF or similar?

Workaround Solution: If the above is not possible, then is there a way to use a form builder plugin to capture this structured input and add a new topic programmatically when the user submits it. The content within the topic can then be formatted e.g. putting each field on a new line with a colon separator, etc. While this is not ideal, it would be an acceptable workaround.

Hope you can help. 

Topic Tags
3 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

@themofella,

wpForo provides hooks for this purpose if you're a developer we'll provide those and you'll be able to add the custom fields. If not you should ask some developer to do that for you.  

Posts: 11
Topic starter
(@themofella)
Active Member
Joined: 6 years ago

Hi @Sofy,

Yes please. I am a techy so happy to integrate those into code/my theme. Can you share details of the relevant APIs.

Thank you. 

Posts: 11
Topic starter
(@themofella)
Active Member
Joined: 6 years ago

Hi @Sofy,

I did some digging and have identified the wpforo_topic_form_buttons_hook, wpforo_topic_form_extra_fields_before, wpforo_topic_form_extra_fields_after hooks which appear to be suitable. Did you mean the same?

I couldn't however find any related documentation or full examples. Are you aware of any or point me to any documentation related to these hooks.

Thank you.