It would be useful for new Hotschi's Download MOD
localized installation. If a user wants to use a different language than EN/DE, he has to translate MOD changes for language/en (or de)/help_faq.php to local language because these aren't included in the localized archive file !
I'm providing below instructions for all users who wants to use a separate Hotschi's Download FAQ file:
1. Unzip/extract localized files under language/ro (ro = Romanian); thus, help_faq_download.php will be similar with original help_faq.php file but will include only Hotschi's Download FAQ entries according with MOD instructions:
install_mod.xml#language/en/help_faq.php
2. Open
includes/functions.php find
Code: Alles auswählen
'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"),
Add these lines on a new blank line after the preceding line(s)
Code: Alles auswählen
'U_FAQ_DOWNLOAD' => append_sid("{$phpbb_root_path}faq.$phpEx?mode=download"),
3. Open
faq.php find
Code: Alles auswählen
case 'bbcode':
$l_title = $user->lang['BBCODE_GUIDE'];
$user->add_lang('bbcode', false, true);
break;
Add these lines on a new blank line after the preceding line(s):
Code: Alles auswählen
case 'download':
$l_title = $user->lang['FAQ_EXPLAIN'];
$user->add_lang('faq_download', false, true);
break;
4. Make a copy of
styles/used_style/template/overall_header.html to
styles/used_style/template/overall_header_download.html ; find
Code: Alles auswählen
<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
and replace it with
Code: Alles auswählen
<li class="icon-faq"><a href="{U_FAQ_DOWNLOAD}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
5. Clear forum cache.
Now, if you access FAQ link from Download section you will see only Download FAQ related instructions.
Demo
Forum's FAQ:
http://phpbb.ro/faq.php
Download section:
http://phpbb.ro/downloads.php
Download's FAQ:
http://phpbb.ro/faq.php?mode=download
PS. Probably it isn't the optimal way to do it but it's better than nothing. I just hope this feature will be included in the MOD in the near future...