[3.2][RC] FAQ Manager

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

Re: [3.2][BETA] FAQ Manager

Post by Ger »

Hippie459MN wrote: Mon Oct 22, 2018 1:41 am Go to your ACP, click on the General tab, then go down to FAQ Manager and on that screen, right next to where it says "Read default language files into FAQ database:" Click Submit. Worked like a charm for me.
Thanks for covering the support :)
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
orynider
Translator
Posts: 273
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin

Re: [3.2][BETA] FAQ Manager

Post by orynider »

So, You are importing bbcode.php and faq.php to the database.

How You export them back to the language/help/ folder? Is this not required ?
User avatar
Hippie459MN
Registered User
Posts: 966
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA

Re: [3.2][BETA] FAQ Manager

Post by Hippie459MN »

orynider wrote: Wed Oct 31, 2018 10:58 pm So, You are importing bbcode.php and faq.php to the database.

How You export them back to the language/help/ folder? Is this not required ?
Its not importing and deleting the original FAQ files/database, just importing. You can disable the extension and the original FAQ will still be there. This just replaces the original with one that you can edit and also import the original from the phpBB database into the FAQ extension. If you want to delte them then I would assume either do them one by one or disable the extension then clear data then re-enable it but doing that will delete everything, even the custom entries.

I hope that all makes sense. :)
eindgebruiker
Registered User
Posts: 19
Joined: Thu Oct 11, 2018 8:09 am

Re: [3.2][BETA] FAQ Manager

Post by eindgebruiker »

I found another bug: Users who are not logged in will be shown the FAQ in English, instead of the default forum language. Example (default forum language is Dutch): https://www.wereldfietser.nl/www/phpbb/faqpage
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

Re: [3.2][BETA] FAQ Manager

Post by Ger »

Do you have both languages active in the FAQ manager?
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
eunaumtenhoid
Registered User
Posts: 1021
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][BETA] FAQ Manager

Post by eunaumtenhoid »

Module not accessible?? why?

Code: Select all

General Error
Module not accessible

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/functions_module.php
LINE: 565
CALL: trigger_error()

FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
the link name could only be faq and not faqpage :)
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
eindgebruiker
Registered User
Posts: 19
Joined: Thu Oct 11, 2018 8:09 am

Re: [3.2][BETA] FAQ Manager

Post by eindgebruiker »

Ger wrote: Fri Nov 02, 2018 6:02 pm Do you have both languages active in the FAQ manager?
If I go to /phpbb/adm/index.php?i=-ger-faqmanager-acp-main_module&mode=manage I see both British English and Nederlands. Is it possible to deactivate English?
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

Re: [3.2][BETA] FAQ Manager

Post by Ger »

eunaumtenhoid wrote: Sat Nov 03, 2018 1:53 am Module not accessible?? why?
No idea since you didn't tell me where you got this message.

eindgebruiker wrote: Mon Nov 05, 2018 12:18 pm If I go to /phpbb/adm/index.php?i=-ger-faqmanager-acp-main_module&mode=manage I see both British English and Nederlands. Is it possible to deactivate English?
I did my best to reproduce this, but I can't. :P
even set the boards language to British English but since my user has Dutch as board language, it presents me the Dutch entries.

Can you answer these?
  1. What version of phpBB do you have?
  2. What version of the FAQ manager do you have?
  3. Which languages do you have installed?
  4. Any other extensions that I should know of?
  5. Can you post the result of this query?

    Code: Select all

    SELECT lang, count(faq_id) FROM phpbb_faqmgr GROUP BY lang;
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
eindgebruiker
Registered User
Posts: 19
Joined: Thu Oct 11, 2018 8:09 am

Re: [3.2][BETA] FAQ Manager

Post by eindgebruiker »

Ger wrote: Tue Nov 06, 2018 8:28 am
  1. What version of phpBB do you have?
    3.2.2
  2. What version of the FAQ manager do you have?
    1.0.0-b5
  3. Which languages do you have installed?
    British English and Dutch.
  4. Any other extensions that I should know of?
    Board Announcements
    Joined date format
    Post Love
  5. Can you post the result of this query?
    en: 79
    nl: 73
eindgebruiker
Registered User
Posts: 19
Joined: Thu Oct 11, 2018 8:09 am

Re: [3.2][BETA] FAQ Manager

Post by eindgebruiker »

Ger wrote: Tue Nov 06, 2018 8:28 am even set the boards language to British English but since my user has Dutch as board language, it presents me the Dutch entries.
Please note that it only happens to users who are not logged in.
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

Re: [3.2][BETA] FAQ Manager

Post by Ger »

eindgebruiker wrote: Tue Nov 06, 2018 8:58 am Please note that it only happens to users who are not logged in.
Yeah, noticed that.

Can you check the language preference of the anonymous user?
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
eindgebruiker
Registered User
Posts: 19
Joined: Thu Oct 11, 2018 8:09 am

Re: [3.2][BETA] FAQ Manager

Post by eindgebruiker »

I think I found a fix. In faqpage.php, line 42 (hah ;-) )

Code: Select all

$faq = $this->handler->get_faq_data($this->user->data['user_lang']);
I changed this to:

Code: Select all

$faq = $this->handler->get_faq_data($this->language->get_used_language());
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

Re: [3.2][BETA] FAQ Manager

Post by Ger »

That is an improvement indeed, thanks. However, this suggests that somehow your anonymous user doesn't have a valid language (or English). Your change uses the fallback array, which is indeed intended for this.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
eindgebruiker
Registered User
Posts: 19
Joined: Thu Oct 11, 2018 8:09 am

Re: [3.2][BETA] FAQ Manager

Post by eindgebruiker »

Where can I check/set the language preference of the anonymous user?

EDIT: found it. Yes, setting it to Dutch solved it. Thanks.
User avatar
eunaumtenhoid
Registered User
Posts: 1021
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][BETA] FAQ Manager

Post by eunaumtenhoid »

Ger wrote: Tue Nov 06, 2018 8:28 am
eunaumtenhoid wrote: Sat Nov 03, 2018 1:53 am Module not accessible?? why?
No idea since you didn't tell me where you got this message.

Code: Select all

General Error
Module not accessible

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/functions_module.php
LINE: 565
CALL: trigger_error()

FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
when I click on the submit button to edit or add new faq
-------
Is it possible to change the faqpage link name to only FAQ?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

Return to “Extensions in Development”