Customizing 'add question' page in admin section

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
rogierl
Posts: 9
Joined: Wed Sep 03, 2014 4:25 pm

Customizing 'add question' page in admin section

Post by rogierl »

I am wondering how to customize the 'add question' page in the admin section (edit entry):

- I would like to make the field 'keywords' mandatory
- Also, I would like to get rid of the 'End date of the question' section

Does anyone know how to do this? Where do I find the responsible pages? Thanks in advance
Last edited by rogierl on Fri Sep 19, 2014 8:28 am, edited 2 times in total.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Customing 'add question' page in admin section

Post by Thorsten »

Hi,

that's in

admin/record.add.php
admin/record.edit.php
admin/record.save.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rogierl
Posts: 9
Joined: Wed Sep 03, 2014 4:25 pm

Re: Customing 'add question' page in admin section

Post by rogierl »

Thank you very much!
rogierl
Posts: 9
Joined: Wed Sep 03, 2014 4:25 pm

Re: Customizing 'add question' page in admin section

Post by rogierl »

Hi Thorsten,

You said that I could edit the 3 php-pages to get rid of the comment, sticky and start-/end date sections, but I'm having problems doing this. I removed all the parts in the php referring to these sections but they are still showing in the add question page (in the admin).

So I don't necessarily want to remove the functions, I just want to hide them in the front end (again, in the admin section).

How do I do this? Can you help me out? Thanx in advance!
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Customizing 'add question' page in admin section

Post by Thorsten »

Hi,

then please just hide them in admin/record.edit.php: https://github.com/thorsten/phpMyFAQ/bl ... p#L363-392

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rogierl
Posts: 9
Joined: Wed Sep 03, 2014 4:25 pm

Re: Customizing 'add question' page in admin section

Post by rogierl »

It worked! Thank you very much for your answer!
Post Reply