PhpBB Modifications Documentation

From PHPBB用户手册

Jump to: navigation, search

文档目录

Contents

phpBB3 MOD开发简介

简介

历史

MOD开发政策

phpBB3.0 MOD收录规范

中文 英文原稿

MOD重新打包政策

政策

Modifications Insta-deny Policy

作者须知

Insta-deny Criteria

Licensing phpBB MODs

编写 phpBB3.0 代码

使用 phpBB3.0 语言系统

使用 php 语言系统

在模板档案中使用语言系统

加入新项目

使用 phpbb3.0风格/模板系统

风格/模板档案

风格/模板变量

分配风格/模板变量

控制结构

模块变量
分配模块变量
使用模块变量
条件语句
逻辑上的操作
包括其它风格/模板

标记页数

外挂使用的风格/模板

Using the phpBB3.0 DBAL

初始数据库连接

Selecting Data

Building Queries

Inserting Data

Updating Data

Removing Data

Managing the Cache

Using phpBB3's Basic Functions

User input

Preserving sessions

Redirecting users

The User Class

Validating input

Checking authorisation

Inserting Posts and Private Messages

Building URLs, hidden fields and other HTML

Errors

Log In

Confirm Box

Page Header and Footer

Bringing it all together: A Sample Page

Using the phpBB3.0 Module System

Adding a Module

Writing a Module

Modules and Modes
The Info File
The Module Class
Templates
Language

Modifications Tools & Utilities Documentation

mEAL Automated Check

System Requirements

Linux
MAC OSX
Windows

Using mEAL

Linux, MAC OSX and MONO on Windows®
The .net Framework on Windows® (best for windows)

Glossary

Glossary

Appendicies

phpBB Versioning Explained

Major Version Number (X)

Minor Version Number (Y)

Revision Version Number (Z)

Release Version Number (a)

Development Vs Stable Version Numbers

The Modifications Text Template

Basic Template

Header

Title
Author
phpBB.com Username
E-mail Address
Real Name
URL
Examples
Multiple Authors
Description
Version
Installation Level
Installation Time
Files to Edit
Included Files
License
Security Disclaimer
Author Notes
MOD History
Installation Disclaimer

Actions

Action definition
The SQL Action
The COPY Action
The DIY INSTRUCTIONS Action
The OPEN Action
The FIND Action
The REPLACE WITH Action
The AFTER, ADD Action
The BEFORE, ADD Action
The INCREMENT Action
The IN-LINE FIND Action
The IN-LINE AFTER, ADD Action
The IN-LINE BEFORE, ADD Action
The IN-LINE REPLACE WITH Action
Conclusion
Concluding a MOD Text Template file

List of Figures

6.1. phpBB version numbering system fields 6.2. Tree diagram depicting the version history of a fictional MOD.