Skip to content

Commit 8e59c1a

Browse files
committed
docs: updated upgrade parts, fixed typos
1 parent 5b5ccb4 commit 8e59c1a

File tree

7 files changed

+125
-70
lines changed

7 files changed

+125
-70
lines changed

docs/administration.md

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ You can switch the current language in the administration backend, and you have
2828
### 5.1.1 User Administration
2929

3030
phpMyFAQ offers flexible management of privileges (or rights) for different users in the admin area. To search for a
31-
certain user, just start typing the username in the input form, and you'll get a list of hits for usernames. It is
31+
certain user, start typing the username in the input form, and you'll get a list of hits for usernames. It is
3232
possible to assign different privileges to real people (represented by the term users). Those privileges are very
33-
detailed and specific, so that you could allow a certain user to edit but not to delete an entry. It is very important
33+
detailed and specific, so that you could allow a certain user to edit but not to delete an entry. It is crucial
3434
to contemplate which user shall get which privileges. You could edit an entry by completely deleting all content, which
3535
would be equivalent to deleting the whole entry. The number of possible users is not limited by phpMyFAQ.
3636

@@ -55,7 +55,7 @@ permissions, please set the permission level from _basic_ to _medium_ in the mai
5555
### 5.2.1 Category Administration
5656

5757
phpMyFAQ lets you create different categories and nested subcategories for your FAQs.
58-
You can also re-arrange your categories in a different order with drag'n'drop.
58+
You can re-arrange your categories in a different order and create nested ones with drag'n'drop.
5959
It is possible to use various languages per category, too; there's also a frontend to view all translated categories.
6060
For accessibility reasons, you should add a small description for every category.
6161
You can add an image for every category, which will be shown even on the start page if you flag this category with this
@@ -119,8 +119,8 @@ time with all the relevant data of the specific entry. The meaning of the fields
119119
be invisible. Suggested FAQs are deactivated by default to prevent any abuse.
120120

121121
- **Sticky?**
122-
If a FAQ is "sticky" it is a very important FAQ record and will always be shown on all pages on the right column.
123-
You should mark records as sticky if they're very important for your whole FAQ. Sticky records also appear at the
122+
If a FAQ is "sticky" it is a crucial FAQ record and will always be shown on all pages on the right column.
123+
You should mark records as sticky if they're crucial for your whole FAQ. Sticky records also appear at the
124124
top positions of the lists of FAQ entries.
125125

126126
- **Comments?**
@@ -158,31 +158,39 @@ phpMyFAQ lets visitors contribute to the FAQ by asking questions. Every visitor
158158
the public area, and may give an answer. If you wish to get rid of open questions, you can do so using this section.
159159
Alternatively, you can take over a question and answer it yourself and hereby add it to the FAQ.
160160

161-
### 5.2.3 Comment Administration
161+
### 5.2.3 Sticky FAQs
162+
163+
You can arrange the order of the sticky FAQs by drag'n'drop.
164+
The order of the sticky FAQs will be the same in the public frontend.
165+
166+
### 5.2.4 Comment Administration
162167

163168
In this frontend, you can see all comments that'd been posted in the FAQs and the news. You can't edit comments,
164169
but you can delete them with one easy click.
165170

166-
### 5.2.4 Open questions
171+
### 5.2.5 Open Questions
167172

168-
...
173+
On the "Open Questions" page, you can see all open questions that visitors have posted.
174+
You can answer them directly or, if they are not visible due to your configuration in the public area, you can activate
175+
them.
176+
Additionally, you can delete them, too.
169177

170-
### 5.2.5 Glossary
178+
### 5.2.6 Glossary
171179

172180
A glossary is a list of terms in a particular domain of knowledge with the definitions for those terms. You can add,
173181
edit and delete glossary items here. The items will be automatically displayed in <abbr> tags in the frontend.
174182

175-
### 5.2.6 News Administration
183+
### 5.2.7 News Administration
176184

177185
phpMyFAQ offers the ability to post news on the starting page of your FAQ. In the administration area you can create
178186
new news, edit existing news or delete them.
179187

180-
### 5.2.7 Attachment Administration
188+
### 5.2.8 Attachment Administration
181189

182190
In the attachment administration, you can see an overview of all all attachments with their filename, file size,
183191
language and MIME type. You can delete them, too.
184192

185-
### 5.2.8 Tags Administration
193+
### 5.2.9 Tags Administration
186194

187195
You can edit existing tags, of if you need to, you can delete the tag.
188196

@@ -219,20 +227,22 @@ installation. You can export the report then as a CSV file.
219227
## 5.4 Imports & Exports
220228

221229
### 5.4.1 Imports
230+
222231
You can import faqs from a csv file. Further, you find an example of such a csv file:
223232

224233
> [!IMPORTANT]
225234
> It is not allowed to have the first line of the following example file containing the headers in the uploaded file as well. Otherwise, the import will fail.
226235
227-
| category-Id | question | answer | keywords | language code | author | email address of author | active | sticky |
228-
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
229-
| 1 | What's the answer? | This one is the answer | question,answer | en | Thorsten | [email protected] | true | false |
230-
| 1 | Can you buy me an ice cream? | Strawberry or chocolate is available. | ice,strawberry,chocolate | en | Thorsten | [email protected] | true | true |
236+
| category-Id | question | answer | keywords | language code | author | email address of author | active | sticky |
237+
| ----------- | ---------------------------- | ------------------------------------- | ------------------------ | ------------- | -------- | ----------------------- | ------ | ------ |
238+
| 1 | What's the answer? | This one is the answer | question,answer | en | Thorsten | [email protected] | true | false |
239+
| 1 | Can you buy me an ice cream? | Strawberry or chocolate is available. | ice,strawberry,chocolate | en | Thorsten | [email protected] | true | true |
231240

232241
> [!NOTE]
233242
> All cells are required except of the keywords. Additionally, you are able to use several keywords that are seperated with commas.
234243
235244
### 5.4.2 Exports
245+
236246
You can export your contents of your whole FAQ or just some selected categories into four formats:
237247

238248
- a JSON file
@@ -264,12 +274,7 @@ To back up the whole data located on your web server you can run our simple back
264274
Here you can edit the general, FAQ specific, search, spam protection, spam control center, SEO related, Social networks
265275
settings, Mail setup for SMTP, LDAP configuration, and API settings of phpMyFAQ.
266276

267-
### 5.6.2 System information
268-
269-
On this page phpMyFAQ displays some relevant system information like PHP version, database version or session path.
270-
Please use this information when report bugs.
271-
272-
### 5.6.3 FAQ Multi-sites
277+
### 5.6.2 FAQ Multi-sites
273278

274279
You can see a list of all multisite installations, and you're able to add new ones.
275280

@@ -293,14 +298,31 @@ For example, if you want to use _faq.example.org_ and _beta.faq.example.org_, it
293298
|-- constants.php
294299
`-- database.php
295300

296-
### 5.6.4 Stop Words configuration
301+
### 5.6.3 Stop Words configuration
297302

298303
We need stop words for the smart answering feature and the related answers. If a user is adding a new question to your
299304
FAQ the words will be checked against all FAQs in your database but without the stop words. Stop words are words with a
300305
very low relevance like the English word _the_.
301306

307+
### 5.6.4 phpMyFAQ Update (Experimental feature)
308+
309+
If you're running phpMyFAQ 4.0.0 or later, you can use the built-in automatic upgrade feature.
310+
You can click through the update wizard:
311+
312+
1. Check for System Health: this checks if your system is ready for the upgrade
313+
2. Check for Updates: this checks if there is a new version of phpMyFAQ available
314+
3. Download of phpMyFAQ: this downloads the latest version of phpMyFAQ in the background, this can take some seconds
315+
4. Extracting phpMyFAQ: this extracts the downloaded archive, this can take a while
316+
5. Install downloaded package: first, it creates a backup of your current installation, then it copies the downloaded
317+
files into your installation and in the end, the database is updated
318+
302319
### 5.6.5 Elasticsearch configuration
303320

304321
Here you can create and drop the Elasticsearch index, and you can run a full import of all data from your database
305322
into the Elasticsearch index. You can also see some Elasticsearch relevant usage data. This page is only available if
306323
Elasticsearch is enabled.
324+
325+
### 5.6.2 System information
326+
327+
On this page phpMyFAQ displays some relevant system information like PHP version, database version or session path.
328+
Please use this information when report bugs.

docs/development.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ is a templates/default directory where the default layouts get shipped.
77

88
In phpMyFAQ code and layout are separated. The layout is based on several template files, that you can modify to suit
99
your own needs. The most important files for phpMyFAQ's default layout can be found in the directory
10-
_assets/themes/default/_. All original templates are valid HTML5 based on Bootstrap v5.3
10+
_assets/themes/default/_. All original templates are valid HTML5 based on Bootstrap v5.3.
1111

1212
### 6.1.1 Creating a custom layout
1313

@@ -159,24 +159,24 @@ During development, you can use the watch mode:
159159

160160
$ pnpm build:watch
161161

162-
To run the PHPUnit based tests, you can use the following command:
162+
To run the PHPUnit-based tests, you can use the following command:
163163

164164
$ composer test
165165

166-
To run the Jest based tests, you can use the following command:
166+
To run the Jest-based tests, you can use the following command:
167167

168168
$ pnpm test
169169

170170
### 6.4.7 Rebase your Patch
171171

172172
Before submitting your patch, please update your local branch:
173173

174-
$ git checkout 3.2
174+
$ git checkout 4.0
175175
$ git fetch upstream
176-
$ git merge upstream/3.2
176+
$ git merge upstream/4.0
177177
$ git checkout YOUR_BRANCH_NAME
178-
$ git rebase 3.2
178+
$ git rebase 4.0
179179

180180
### 6.4.8 Make a Pull Request
181181

182-
You can now make a pull request on the phpMyFAQ Github repository.
182+
You can now make a pull request on the phpMyFAQ GitHub repository.

docs/index.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
# phpMyFAQ Manual
22

3-
phpMyFAQ is a multilingual, completely database-driven FAQ system. It supports various databases to store all data,
4-
PHP 8.1+ is needed to access this data. phpMyFAQ also offers a multi-language Content Management System with a
5-
WYSIWYG editor and an Image Manager, real time search support with Elasticsearch, flexible multi-user support with user
6-
and group based permissions on categories and records, a wiki-like revision feature, a news system, user-tracking,
7-
40+ supported languages, enhanced automatic content negotiation, HTML5/CSS3 based responsive templates with support for
8-
own text and HTML snippets, PDF-support, a backup-system, a dynamic sitemap, related FAQs, tagging, built-in spam
9-
protection systems, OpenLDAP, Microsoft Active Directory, and Microsoft Entra ID support, and an easy-to-use
10-
installation script. You can run phpMyFAQ on almost every web hosting provider or in the cloud in a Docker container.
3+
phpMyFAQ is a comprehensive, multilingual FAQ system that is entirely database-driven.
4+
It is compatible with a variety of databases for data storage and requires PHP 8.2+ for data access.
5+
The system features a multi-language Content Management System equipped with a WYSIWYG editor and an Image Manager.
6+
It also provides real-time search capabilities with Elasticsearch.
117

12-
This documentation should help you with installing, updating, using and administrating phpMyFAQ.
8+
phpMyFAQ supports flexible multi-user functionality,
9+
offering user and group-based permissions on categories and records.
10+
It includes a wiki-like revision feature, a news system, and configurable user-tracking.
11+
With support for over 40 languages, it also boasts enhanced automatic content negotiation and HTML5- / CSS3-based
12+
responsive templates.
13+
These templates allow for the inclusion of your own text and HTML snippets.
14+
15+
Additional features include PDF support, a backup system, a dynamic sitemap,
16+
related FAQs, tagging, and built-in spam protection systems.
17+
It also supports OpenLDAP, Microsoft Active Directory, and Microsoft Entra ID.
18+
The system is easy to install, thanks to its user-friendly installation script.
19+
20+
phpMyFAQ is versatile
21+
and can be run on almost any web hosting provider or deployed in the cloud using a Docker container.
22+
23+
This documentation serves as a guide to help you install, update, use, and administer phpMyFAQ effectively.
1324

1425
### Copyright
1526

16-
phpMyFAQ is published under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/2.0/) (MPL). This
17-
license guarantees you the free usage of phpMyFAQ, access to the source code and the right to modify and distribute phpMyFAQ.
27+
phpMyFAQ is published under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/2.0/) (MPL).
28+
This license guarantees you the free usage of phpMyFAQ, access to the source code and the right to modify and distribute
29+
phpMyFAQ.
1830

1931
The only restrictions apply to the copyright, which remains at all times at Thorsten Rinne and the phpMyFAQ Team. Any
2032
modified versions of phpMyFAQ will also fall under the terms of MPL. Any other program that may only be accessing
@@ -25,7 +37,7 @@ met.
2537

2638
We decided to use MPL as the licensing model for phpMyFAQ because we feel that it is a good compromise between the
2739
protection of the openness and free distribution on the one hand and the interaction with other software regardless of
28-
its licensing model. When compared to other licensing models its text is short and easily comprehensible, even for
40+
its licensing model. When compared to other licensing models, its text is short and easily comprehensible, even for
2941
newcomers.
3042

3143
This documentation is licensed under a [Creative Commons License](http://creativecommons.org/licenses/by/2.0/).

docs/installation.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To install it, you will need a web server that meets the following requirements:
77

88
### PHP requirements
99

10-
- version 8.1 or later
10+
- version 8.2 or later
1111
- memory_limit = 128M (the more the better)
1212
- cURL support
1313
- GD support
@@ -48,12 +48,12 @@ In case PHP runs as a module of the Apache, you will have to be able to do a cho
4848
files and directories must be owned by the web server's user.
4949

5050
You can determine which versions your web server is running by creating a file called **info.php** with the following
51-
content: `<?php phpinfo(); ?>`
51+
content: `<?php phpinfo();`
5252

5353
Upload this file to your webspace and open it using your browser. The installation-script checks which version of PHP
5454
is installed on your server. Should you not meet the requirements, you cannot start the installation process.
5555

56-
In case you're running PHP before 8.1, you cannot use phpMyFAQ.
56+
In case you're running PHP before 8.2, you cannot use phpMyFAQ.
5757

5858
phpMyFAQ uses a modern HTML5/CSS3 powered markup. The supported browsers are the latest Mozilla Firefox
5959
(Windows/macOS/Linux), the latest Safari (macOS/iOS), the latest Chrome (Windows/macOS/Linux), the latest Opera
@@ -325,10 +325,11 @@ of performance reasons, its availability is checked automatically at the run tim
325325

326326
Please be aware:
327327

328-
- Disabling encryption will cause all files be saved unencrypted. In this case you'll benefit sparing disk space,
328+
- Disabling encryption will cause all files be saved unencrypted. In this case, you'll benefit from sparing disk space,
329329
because identical files will be saved only once.
330-
- Do not change the default attachment encryption key once files was uploaded. Doing so will cause all the previously
331-
uploaded files to be wrong decrypted. If you need to change the default key, you will have to re-upload all files.
330+
- Do not change the default attachment encryption key once files were uploaded.
331+
Doing so will cause all the previously uploaded files to be wrong decrypted.
332+
If you need to change the default key, you will have to re-upload all files.
332333
- Always memorize your encryption keys. There is no way to decrypt files without a correct key.
333334
- Files are always saved with names based on a virtual hash generated from several tokens (just like key and issue id
334335
etc), so there is no way to asses a file directly using the name it was uploaded under.
@@ -359,9 +360,10 @@ To disable highlighting altogether use the "nohighlight" class:
359360

360361
## 2.16 Elasticsearch Support
361362

362-
To improve the search performance and quality of search results it's possible to use Elasticsearch. You need a
363-
running Elasticsearch instance accessible by phpMyFAQ via HTTP/REST. You can add the IP(s)/Domain(s) and port(s)
364-
of your Elasticsearch cluster during installation or later by renaming the Elasticsearch file located in the folder
365-
config/. If you choose to add this during installation, the file will be automatically written and the index will be
366-
built. If you enabled Elasticsearch support in the admin configuration panel, you can create, re-import and delete your
363+
To improve the search performance and quality of search results, it's possible to use Elasticsearch.
364+
You need a running Elasticsearch instance accessible by phpMyFAQ via HTTP/REST.
365+
You can add the IP(s)/Domain(s) and port(s) of your Elasticsearch cluster during installation or later by renaming the
366+
Elasticsearch file located in the folder config/.
367+
If you choose to add this during installation, the file will be automatically written and the index will be built.
368+
If you enabled Elasticsearch support in the admin configuration panel, you can create, re-import and delete your
367369
index with a user-friendly interface.

docs/thank-you.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Thank you for using phpMyFAQ! :-)
44

5-
Authors: Thorsten Rinne, Stephan Hochhaus, Markus Gläser
5+
Authors: Thorsten Rinne, Stephan Hochhaus, Markus Gläser, Jan Harms
66

7-
© 2001-2023 phpMyFAQ Team
7+
© 2001-2024 phpMyFAQ Team
88

99
This documentation is licensed under a [Creative Commons License](http://creativecommons.org/licenses/by/2.0/).

docs/update.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ support for updating an old FAQ from the 1.x or 2.x series, [please email us](th
1313

1414
## Before you upgrade
1515

16-
Please make sure that you're running at least PHP 8.1, otherwise the upgrade won't work.
16+
Please make sure that you're running at least PHP 8.2, otherwise the upgrade won't work.
1717

1818
## Upgrading from phpMyFAQ 3.0.x
1919

@@ -78,6 +78,8 @@ updated.
7878

7979
## Upgrading from phpMyFAQ 4.0.x
8080

81+
### Manual upgrade
82+
8183
Please make a full backup before you run the upgrade!
8284
First, log in as admin into the admin section and enable the maintenance mode.
8385
Second, you have to delete all files **except**:
@@ -92,10 +94,23 @@ URL in your browser:
9294
Choose your installed phpMyFAQ version and click the button of the update script, your version will automatically be
9395
updated.
9496

95-
## Modifying templates for phpMyFAQ 3.2
97+
### Automatic upgrade (Experimental feature)
98+
99+
If you're running phpMyFAQ 4.0.0 or later, you can use the built-in automatic upgrade feature.
100+
Log in as admin into the admin section and enable the maintenance mode.
101+
Then go to the "phpMyFAQ Update" page in the configuration section click through the update wizard:
102+
103+
1. Check for System Health: this checks if your system is ready for the upgrade
104+
2. Check for Updates: this checks if there is a new version of phpMyFAQ available
105+
3. Download of phpMyFAQ: this downloads the latest version of phpMyFAQ in the background, this can take some seconds
106+
4. Extracting phpMyFAQ: this extracts the downloaded archive, this can take a while
107+
5. Install downloaded package: first, it creates a backup of your current installation, then it copies the downloaded
108+
files into your installation and in the end, the database is updated
109+
110+
## Modifying templates for phpMyFAQ 4.0
96111

97112
We recommend you take a look at the main [Bootstrap documentation](https://getbootstrap.com/).
98-
Please don't forget that the style sheets are written with [SCSS](https://sass-lang.com/).
113+
Please remember that the style sheets are written with [SCSS](https://sass-lang.com/).
99114
You have to compile the SCSS files into CSS using a SCSS compiler with Node.js.
100115

101116
If you need help with theming phpMyFAQ, please don't hesitate to ask in our [forum](https://forum.phpmyfaq.de/).

0 commit comments

Comments
 (0)