Disable some features

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Disable some features

Post by ubellavance »

Hi,

I'm looking for a way to disable certain tabs in phpMyFAQ... Actually, if I could just keep the main page it would be the best, but if it is not possible, here are the ones I'd like to see disappear from our setup, in order of importance):
  • Ask a question/Open questions
  • Contact
  • Add FAQ
  • I'm feeling lucky (since we enabled instant search on home page, not needed...)
  • Sitemap
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Disable some features

Post by Thorsten »

Hi,

just removed the template variables in template/default/index.tpl

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: Disable some features

Post by ubellavance »

Easy :). Done.
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Re: Disable some features

Post by swguy »

But doing this still allows them to enter the URL

index.php?action=ask&category_id=0

and get to the ask page. So it might be good to also modify template/YOUR-TEMPLATE/ask.tpl (and the templates any other page you want to disable) and remove the content in that file.
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Re: Disable some features

Post by swguy »

Perhaps 3.0 could have feature flags so you could turn off Ask and User Contributed Content.
Post Reply