Page 1 of 1

2 differents FAQ

Posted: Tue Apr 09, 2013 1:00 pm
by Ariane A
Hello,

I have installed the Artodia.com style for mobiles on my board http://www.monreso.ch version 3.0.11.
However, as some fuctionalities have been removed in this style, I would like to have a different FAQ for users using this style in order to remove or change some questions & answers.

How can I do this? I don't understand how the link between faq_body.html and the language file help_faq.php is made.

Thanks for your help.

Re: 2 differents FAQ

Posted: Tue Apr 09, 2013 1:57 pm
by Mick

Re: 2 differents FAQ

Posted: Tue Apr 09, 2013 2:35 pm
by Ariane A
Thanks but I already have a different faq_body.html file, as there are 2 different styles.
But I still don't know how to link to a different language file.

Re: 2 differents FAQ

Posted: Tue Apr 09, 2013 10:32 pm
by Oyabun1
(I'm only guessing the style you are talking about is Artodia: Mobile and SEO)

Download and open the template/overall_header.html file.

Find

Code: Select all

<li><a href="{U_FAQ}">{L_FAQ}</a></li>
Change the {U_FAQ} part to the path to your other FAQ file.

Save, upload, and refresh the templates component for the style:
ACP > STYLES > Style Components > Templates > style name > Refresh

Re: 2 differents FAQ

Posted: Wed Apr 10, 2013 12:47 pm
by Ariane A
(I'm only guessing the style you are talking about is Artodia: Mobile and SEO)
Correct.

Sorry if I misunderstand, but doing this will still link the html file to the language/.../help_faq.php?
So it doesn't help me as I want to make changes to the questions&answers, not to the appearance of the FAQ.

Thanks.

Re: 2 differents FAQ

Posted: Wed Apr 10, 2013 2:59 pm
by Lumpy Burgertushie
I am curious about what functions are missing and what you want to explain to users about it.


robert

Re: 2 differents FAQ

Posted: Wed Apr 10, 2013 3:21 pm
by Ariane A
For example smilies and most bbcode have been removed so I want to remove these questions in the FAQ.

Re: 2 differents FAQ

Posted: Wed Apr 10, 2013 8:49 pm
by Oyabun1
Ariane A wrote:Sorry if I misunderstand, but doing this will still link the html file to the language/.../help_faq.php?
Did you try it?

The value of {U_FAQ} variable is the path to the original help_faq.php file. If you replace that variable with the path to the new file there is no way it can still point to the old file.

Re: 2 differents FAQ

Posted: Thu Apr 11, 2013 12:41 pm
by Ariane A
The value of {U_FAQ} variable is not the path to the original help_faq.php file, but to the faq.php file in the root directory.
In this file, line 36:

Code: Select all

$user->add_lang('faq', false, true);
function add_lang() is in the session.php file.

Another question: how can add_lang('faq') link to help_faq.php? It's a different name. How could I call help_faq_mobile.php for example?

So I could create another faq.php file in the root directory just to change this line, but this seems a bit stupid. I'm sure there is a better way, but I will do that if somebody can explain how to use this add_lang function.

Thank you.

Re: 2 differents FAQ

Posted: Thu Apr 11, 2013 10:37 pm
by Oyabun1
Sorry, I misread you post I though your new FAQ page was just a HTML page.

Have a look at how this MOD does it, Rules page. From memory it makes a renamed duplicate of the help_faq.php file and uses it as a rules page.

Re: 2 differents FAQ

Posted: Thu Apr 11, 2013 10:53 pm
by Brf
How would you remove smilies and BBcodes from a style? I can see you removing them from the posting template, but that would not stop users from simply typing them in...

Re: 2 differents FAQ

Posted: Thu Apr 18, 2013 3:29 pm
by Ariane A
Oyabun1 wrote:Sorry, I misread you post I though your new FAQ page was just a HTML page.

Have a look at how this MOD does it, Rules page. From memory it makes a renamed duplicate of the help_faq.php file and uses it as a rules page.
Thanks ! This idea was what I needed.