2 differents FAQ

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

2 differents FAQ

Post 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.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22647
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: 2 differents FAQ

Post by Mick »

"The more connected we get the more alone we become" - Kyle Broflovski©
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: 2 differents FAQ

Post 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.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: 2 differents FAQ

Post 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
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: 2 differents FAQ

Post 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.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games
User avatar
Lumpy Burgertushie
Registered User
Posts: 68007
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 2 differents FAQ

Post by Lumpy Burgertushie »

I am curious about what functions are missing and what you want to explain to users about it.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: 2 differents FAQ

Post by Ariane A »

For example smilies and most bbcode have been removed so I want to remove these questions in the FAQ.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: 2 differents FAQ

Post 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.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: 2 differents FAQ

Post 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.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: 2 differents FAQ

Post 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.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52063
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: 2 differents FAQ

Post 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...
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: 2 differents FAQ

Post 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.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games
Locked

Return to “[3.0.x] Support Forum”