Download FAQ - help_faq.php local file ?

Support zu den Modifikationen (MODs) von Entwickler OXPUS für das phpBB 3.0.x
bog_tom
Beiträge: 66
Registriert: Fr 5. Jun 2009, 15:36

Download FAQ - help_faq.php local file ?

Beitrag von bog_tom »

Is there any way you could leave Download FAQ entries outside of language/en/help_faq.php?

Code: Alles auswählen

array(
		0 => '--',
		1 => 'Downloads'
	),
.....
.....

array(
		0 => 'How I can rate Downloads?',
		1 => 'Behind each download into a category or the detail view you will find a section for rating.<br />By click on "Rate" a registered user can rate the download from 1 point (very bad) to 10 points (very good). You can rate a download only one time.'
	),
It will be good for localized Download MOD version to include one more file which should contains Download FAQ entries.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download FAQ - help_faq.php local file ?

Beitrag von oxpus »

Why I should separate the download FAQ into a new file?
For translations not realy. You can translate a file in the same way as the lines for the help_faq.php.
On the other side if the new file is missing, the FAQ page will display an error, but if the help_faq.php is missing, the page is only be "empty" and shown the placeholders instead the text...
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
bog_tom
Beiträge: 66
Registriert: Fr 5. Jun 2009, 15:36

Re: Download FAQ - help_faq.php local file ?

Beitrag von bog_tom »

You have included in the MOD's XML install the instructions for English and German only so if somebody will want to install it on a Spanish forum (for example) we can't provide Spanish translation file separately. It has to be part of the XML install (separated from help_faq.php eventually: \language\es\mods\dl_help.php and to be referenced in the language/es/help_faq.php).
Zuletzt geändert von bog_tom am Mi 15. Jun 2011, 21:20, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download FAQ - help_faq.php local file ?

Beitrag von oxpus »

And that can not be translated?
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
bog_tom
Beiträge: 66
Registriert: Fr 5. Jun 2009, 15:36

Re: Download FAQ - help_faq.php local file ?

Beitrag von bog_tom »

It can... but each time phpBB.com releases a new version you have to manually apply changes to language/es/help_faq.php too.

It would be easier just to overwrite language/es/help_faq.php file with the original one and to add one line that will reference MOD's help file: \language\es\mods\dl_help.php

Eventually you could do it this way: change overall_header in such way when user access Download section, FAQ link will display FAQ Download MOD related only. This workaround won't require any changes on original language/es/help_faq.php

My two cents...
bog_tom
Beiträge: 66
Registriert: Fr 5. Jun 2009, 15:36

Re: Download FAQ - help_faq.php local file ?

Beitrag von bog_tom »

Any comments about this quote?
bog_tom hat geschrieben:Eventually you could do it this way: change overall_header in such way when user access Download section, FAQ link will display FAQ Download MOD related only. This workaround won't require any changes on original language/es/help_faq.php
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download FAQ - help_faq.php local file ?

Beitrag von oxpus »

Short:
None of all!

There is one FAQ page in the forum which collects and contains all FAQs of the forum, so the download FAQ will be inserted and displayed there, too.
And I'll not separate/create an extra file for the downloads to include this into the board FAQ.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
bog_tom
Beiträge: 66
Registriert: Fr 5. Jun 2009, 15:36

Re: Download FAQ - help_faq.php local file ?

Beitrag von bog_tom »

I still believe it's a good idea :)

Download FAQ applies only to Download section. Install procedure (w/o AutoMOD) will help English and German boards only...
gloplug
Beiträge: 9
Registriert: Do 9. Jun 2011, 22:57

Re: Download FAQ - help_faq.php local file ?

Beitrag von gloplug »

bog_tom,

If this is a problem for your board and u want to have a separate download faq... then y not install the faq manager mod, and one of the addons for that like rules page.... change some language around to make rules page actually download faq, and insert all the download faq into that.... just a thought

On the other hand u said
but each time phpBB.com releases a new version you have to manually apply changes to language/es/help_faq.php too.
every new release doesnt change every file.... infact i just upgraded to 3.0.8 manually (i have 8 mods) and i only had to repair about 70% of the modded files... the other 30% were not changed between versions. this past mod was like 150 file changes.... out of prob like 300 or something.

I checked this past update and the difference in the 2 help_faq.php files.... they changed a "then" to a "than"
thats it!
When i was doing my manual update and i had a heavy modded file.... like the overall header... and found some stupid change like that... i just applyed their change to my file... and presto done!

And furthermore if you use the autoupdater then all that is mute.... (my server wouldnt let me run the autoupdate)
bog_tom
Beiträge: 66
Registriert: Fr 5. Jun 2009, 15:36

Re: Download FAQ - help_faq.php local file ?

Beitrag von bog_tom »

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...
Antworten