How to show custom form instead of new topic form

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
vishwap
Registered User
Posts: 6
Joined: Sun Sep 17, 2017 6:36 am

How to show custom form instead of new topic form

Post by vishwap » Sun Sep 17, 2017 6:44 am

Hi i am new to phpbb, I want to show user custom form for posting new topic with extra fields for specific forum. I searched even list but didnt find any event related to it. please tell me event? should i store extra fields in post_text using json_encode or should i use another table for storing it ?

rxu
Extensions Development Team
Posts: 2752
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: How to show custom form instead of new topic form

Post by rxu » Sun Sep 17, 2017 10:03 am

vishwap wrote:
Sun Sep 17, 2017 6:44 am
please tell me event?
I guess you can select any appropriate event from the posting_editor.html (for styles/prosilver/template style folder).
vishwap wrote:
Sun Sep 17, 2017 6:44 am
should i store extra fields in post_text using json_encode or should i use another table for storing it ?
No, that'll break the board. You should use new field (no matter in the same or in another table).

vishwap
Registered User
Posts: 6
Joined: Sun Sep 17, 2017 6:36 am

Re: How to show custom form instead of new topic form

Post by vishwap » Sun Sep 17, 2017 2:29 pm

thanks but i dont understand oops so i am editing it directly. but i am stuck at one problem although user submitted values are available in posting.php and i have set these values to $data array but its showing null in submit_post() function . i am saving these values in different table and its only happening in edit mode . can you please help?

rxu
Extensions Development Team
Posts: 2752
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: How to show custom form instead of new topic form

Post by rxu » Mon Sep 18, 2017 5:06 am

vishwap wrote:
Sun Sep 17, 2017 2:29 pm
i dont understand oops so i am editing it directly
To get it understanded, you might need to read the docs first, see https://area51.phpbb.com/docs/dev/3.2.x/extensions/

vishwap
Registered User
Posts: 6
Joined: Sun Sep 17, 2017 6:36 am

Re: How to show custom form instead of new topic form

Post by vishwap » Tue Sep 19, 2017 2:53 am

ok thanks i solved that

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests

cron