Giter Site home page Giter Site logo

phpbb / documentation Goto Github PK

View Code? Open in Web Editor NEW
16.0 32.0 62.0 9.03 MB

Documentation for end-users: board visitors, moderators and administrators

Home Page: http://www.phpbb.com

Makefile 27.60% Python 38.14% Batchfile 27.36% CSS 2.37% JavaScript 0.47% HTML 4.07%
phpbb documentation

documentation's Introduction

phpBB User Documentation

Documentation for board visitors, moderators and administrators can be seen online here.

phpBB Developer Documentation

Documentation for phpBB development and extension authors can be seen online here.

Get Involved

Do you have an improvement, bug fix or translation for our Docs? Read our Contributing guidelines to help improve our Documentation.

License

Documentation © 2021 phpBB Limited.
Licensed under the CC Attribution-NonCommercial-ShareAlike 3.0 license.

documentation's People

Contributors

acydburn avatar anthonyclphpbb avatar brunoais avatar canonknipser avatar crizz0 avatar cs278 avatar davidiq avatar derky avatar fberci avatar gmartenscb avatar hanakin avatar imattpro avatar jask avatar jonstanley avatar joshyphp avatar kasimi avatar marc1706 avatar michaelcullum avatar naderman avatar nickvergessen avatar nicofuma avatar noxwizard avatar oyabun1 avatar paul999 avatar phpbb-es avatar raimon avatar rxu avatar skouat avatar stevemaury avatar zerok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

documentation's Issues

Example Code License?

Hello!

I didn't see this mentioned anywhere, so I thought I'd open an issue about it.

What license is the example code in the documentation licensed under?

For example, I would like to copy and paste the code from here and modify it to suit my needs, but I'm not sure what license the code is made available under.

Thanks! :)

twig documentation

hi,
is there a twig documentation ? i'm missing it here and it's not on the wiki either.

Add documentation for extensions and unit tests

  • Unit tests
  • Functional tests
  • Automatic testing on Travis CI

But this involves:

  • having php in the enviroment path
  • installing phpBB from git
  • run composer
  • using a git repo for the extension (travis only)

Missing Information - Update 3.0 - 3.1

On Page https://www.phpbb.com/support/docs/en/3.1/ug/upgradeguide/upgrade3/ i miss some information:

  1. Going after this guide, the folder "cache" should be deleted. After this, the new folder is not writeable. I see 2 solutions: Telling the admin, not to delete but to empty the folder. Or telling the admin to set the writeable-rights. If the cache-folder is not writeable the database-update stops with error-message: cache not writeable.
  2. Missing information: 7. Delete and rebuild the search-index after update.
  3. Before starting the update you should tell the admin to think about the option to clear the database to a unmodded clean state with the 3.0.x-Tool because for 3.1 - until now - no database-cleanup-tool is available. Its not so easy to remove the bugs that are generated by old database-mod-changes.
  4. For updates from 3.0.12 to 3.1.1 its better to take the database-update.php from the update-package, isnt it? Going through all 3.0.x-database-updates is irritating the admin.

Why i'am telling you this here? I hope this is the right place. - see: https://tracker.phpbb.com/browse/WEBSITE-1176?jql=project%20%3D%20WEBSITE

Maybe the reported bug 1176 about .htaccesss should be integrated too.

Add filename to code examples

As requested by @nickvergessen I'm adding this as an issue:

It's really useful to see the filename in example code like Symfony's documentation has. I don't think it's necessary for all example code, but especially for large code blocks andcomplete files it is.

Maybe with /ext/ and the full path?

// ext/acme/demo/acp/main_module.php

E.g.

// ext/acme/demo/acp/main_module.php
<?php
/**
 *
 * This file is part of the phpBB Forum Software package.
 *
 * @copyright (c) phpBB Limited <https://www.phpbb.com>
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 * For full copyright and license information, please see
 * the docs/CREDITS.txt file.
 *
 */

namespace acme\demo\acp;

class main_info
{
    public function module()
    {
        return array(
            'filename'      => '\acme\demo\acp\main_module',
            'title'         => 'ACP_DEMO_TITLE',
            'version'       => '1.0.0',
            'modes'         => array(
                'settings' => array(
                    'title' => 'ACP_DEMO',
                    'auth'  => 'ext_acme/demo && acl_a_board',
                    'cat'   => array('ACP_DEMO_TITLE'),
                ),
            ),
        );
    }
}

PDF documentation does not build due to parse exception

When running the generation of the PDF documentation, we currently encounter this issue:

SEVERE: org.xml.sax.SAXParseException; systemId: file:documentation/documentation/xsl/pdf/fo/pagesetup.xsl; lineNumber: 689; columnNumber: 57; java.lang.reflect.UndeclaredThrowableException
Jan 29, 2023 1:27:44 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: javax.xml.transform.TransformerException: java.lang.reflect.UndeclaredThrowableException
javax.xml.transform.TransformerException: java.lang.reflect.UndeclaredThrowableException
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:177)
        at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: javax.xml.transform.TransformerException: java.lang.reflect.UndeclaredThrowableException
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
        at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
        ... 3 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy2.readUnsignedInt(Unknown Source)
        at org.apache.xmlgraphics.image.loader.impl.PreloaderEPS.preloadImage(PreloaderEPS.java:65)
        at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:175)
        at org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128)
        at org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:122)
        at org.apache.fop.fo.properties.CommonBorderPaddingBackground.getInstance(CommonBorderPaddingBackground.java:381)
        at org.apache.fop.fo.PropertyList.getBorderPaddingBackgroundProps(PropertyList.java:577)
        at org.apache.fop.fo.pagination.Region.bind(Region.java:66)
        at org.apache.fop.fo.pagination.RegionBody.bind(RegionBody.java:58)
        at org.apache.fop.fo.FObj.processNode(FObj.java:124)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:280)
        at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175)
        at org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
        at org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
        at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:243)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        ... 32 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$ObservingImageInputStreamInvocationHandler.invoke(AbstractImageSessionContext.java:219)
        ... 49 more
Caused by: java.io.EOFException
        at java.desktop/javax.imageio.stream.ImageInputStreamImpl.readInt(ImageInputStreamImpl.java:251)
        at java.desktop/javax.imageio.stream.ImageInputStreamImpl.readUnsignedInt(ImageInputStreamImpl.java:266)
        ... 54 more


So in essence PDFs can't be generated.

Documentation builds for creating PDF fail

It's currently not possible to build the PDF of the user documentation:

error	30-Mar-2018 15:12:36	SEVERE: Exception
error	30-Mar-2018 15:12:36	org.apache.fop.apps.FOPException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
error	30-Mar-2018 15:12:36	javax.xml.transform.TransformerException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.Main.startFOP(Main.java:177)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.Main.main(Main.java:208)
error	30-Mar-2018 15:12:36	Caused by: javax.xml.transform.TransformerException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780)
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756)
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
error	30-Mar-2018 15:12:36		... 3 more
error	30-Mar-2018 15:12:36	
error	30-Mar-2018 15:12:36	---------
error	30-Mar-2018 15:12:36	
error	30-Mar-2018 15:12:36	; SystemID: http://www.docbook.org/xml/4.4/docbookx.dtd; Line#: 1; Column#: 1
error	30-Mar-2018 15:12:36	javax.xml.transform.TransformerException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780)
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756)
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
error	30-Mar-2018 15:12:36		at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.Main.startFOP(Main.java:177)
error	30-Mar-2018 15:12:36		at org.apache.fop.cli.Main.main(Main.java:208)

This seems to be caused by docbook now requiring a https link: https://www.docbook.org/xml/4.4/docbookx.dtd

Git Readme

Adding a readme for the git repository to explain what its for. Similar to those for other phpBB sub-projects.

Update scripts for creating 3.3.x documentation

Todo:

  • Update bamboo config
  • Update scripts for developer documentation
  • Update scripts for user documentation
  • Test correct creation of scripts
  • Update website related scripts (should reference the correct branch for 3.3.x etc.)
  • Update Area51 to contain 3.3.x coding guidelines instead of master ones for 3.3.x (!!)
  • Make sure link to styles demo for 3.3.x works (@michaelcullum ?)
  • Check links to 3.3.x pages on area51
  • Add +x to build_code_changes_33.sh
  • Use different stylesheet for 3.3.x (?)

Document the usage of the new permission tool "role_exists"

Working example

namespace phpbbstudio\mnote\migrations;

class install_permissions extends \phpbb\db\migration\migration
{
	public function effectively_installed()
	{
		$sql = 'SELECT * FROM ' . $this->table_prefix . "acl_options
			WHERE auth_option = '" . $this->db->sql_escape('a_phpbbstudio_mnote') . "'";
		$result = $this->db->sql_query_limit($sql, 1);
		$row = $this->db->sql_fetchrow($result);
		$this->db->sql_freeresult($result);

		return $row !== false;
	}

	public static function depends_on()
	{
		return ['\phpbb\db\migration\data\v33x\v334'];
	}

	public function update_data()
	{
		return [
			// Add permissions not set
			['permission.add', ['a_phpbbstudio_mnote']],
			['permission.add', ['m_phpbbstudio_mnote']],

			// Set permission on role if it exists
			['if', [
				['permission.role_exists', ['ROLE_ADMIN_FULL']],
				['permission.permission_set', ['ROLE_ADMIN_FULL', 'a_phpbbstudio_mnote']],
			]],

			['if', [
				['permission.role_exists', ['ROLE_MOD_FULL']],
				['permission.permission_set', ['ROLE_MOD_FULL', 'm_phpbbstudio_mnote']],
			]],
		];
	}
}

Where is the third area in "Forum moderation"?

Hi guys!

In this line it mentioned 3 areas in the Forum moderation screen.

For the two first (1 listbox and 1 dropdown menu) no problem...
But for the last, which refer to Finally, the third area's selection will only affect exactly this forum.
Where is this area?

Regards.

Merge Translation Policies into Docu

Request, config etc. classes documentation

I think we need to document somewhere about the request class in particular (and how it prevents security issues) but it would be good to also talk about other commonly used services like the config class.

typo in language usage

When using language extries in the JavaScript context with the new twig syntax, the following methods are possible:

should be entries instead of extries

<languagename>_<version> folder inside zip file

https://github.com/phpbb/documentation/blob/master/development/language/validation.rst says:

The submitted <languagename>_<version>.zip must contain a <languagename>_<version> folder. The files from above should be placed in this folder.

But that dont sound smart that the zip file should contain a folder by the same name as the zip file. When you extract it you would get:

british_english_3_2_2/british_english_3_2_2/language/
british_english_3_2_2/british_english_3_2_2/ext/
british_english_3_2_2/british_english_3_2_2/styles/

This would be smarter:

british_english_3_2_2/language/
british_english_3_2_2/ext/
british_english_3_2_2/styles/

Also it says "The files from above" but there are none above.

Add instructions for "how to generate development documentation"

Hi guys!

I tried to use your script to generate the development documentation.

After installing Python and Sphinx, the script make.bat returns the following error.

Extension error:
Could not import extension sensio.sphinx.refinclude (exception: No module named 'sensio')

After some research, I found how to install Sensio extensions. but it was not easy when we don't know where and what to look for.

Maybe It will be usefull to add something about this in the readme.md

Update scripts for creating 3.2.x documentation

Todo:

  • Update bamboo config
  • Update scripts for developer documentation
  • Update scripts for user documentation
  • Test correct creation of scripts
  • Update website related scripts (should reference the correct branch for 3.2.x etc.)
  • Update Area51 to contain 3.2.x coding guidelines instead of master ones for 3.2.x (!!)
  • Make sure link to styles demo for 3.2.x works (@michaelcullum ?)
  • Check links to 3.2.x pages on area51
  • Use different stylesheet for 3.2.x (?)

frontpage link

on the frontpage of this repository you mention

"Documentation for board visitors, moderators and administrators. Can be seen online here
https://github.com/phpbb/documentation"

Please can you add a link to the online developer documentation aswell.

Add new lang system replacement for LA_KEY

@VSEphpbb from #38 (comment)

Add a bit about the new lang system replacement for LA_KEY by doing {{ lang('KEY')|e('js') }}
Other possible options:
{{ lang('KEY')|escape('js') }}
{{ lang('KEY')|e('addslashes') }}
{{ lang('KEY')|escape('addslashes') }}

addslashes is our own custom func that simply addslashes the string.
js is a native twig function that escapes a string for the JavaScript context.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.