|
|
HOME
>
CHAPTER 8
Chapter 8: Programming phpBB
We've
learned a lot about installing phpBB, configuring it, and customizing it
to suit
our community's needs. It's now time for the last, most advanced chapter
of the book, describing what you need to know in order to program new
custom phpBB features.
PHP programming knowledge and some SQL knowledge are pre-requisites for
a good understanding of the chapter, but even if you're not familiar
with PHP, you can still skim through the examples, if only to whet your
programming appetite. Who knows, maybe you'll like what you see and
decide to learn some more PHP.
This chapter is not a comprehensive guide to the phpBB programming
experience, but instead will concentrate on the most used phpBB
libraries and functions. The chapter starts with a simple "Hello phpBB
World" script and slowly moves on to include more complicated examples.
At the end of the chapter, you'll develop an all-new phpBB script called
"What's Up?", which displays the recent topics from all the forums in
your board on a single screen, while respecting the user-specific
privileges.
In this chapter you will learn about:
-
Creating the "Hello phpBB World!"
script
-
Working with the database
-
Using phpBB messages
-
phpBB's multi-language system
-
Using phpBB templates
-
User authentication
-
Other handy phpBB functions and coding
standards
-
Putting it all together to create a
new phpBB add-on script
- Database Abstraction
- Database Abstraction Working
- Using the phpBB Database Abstraction Layer
- Option 1
- Option 2
- Option 3
- Using phpBB Messages
- Using phpBB's Multi-Language System
- Using phpBB Templates
- A Simple Example
- Using Loops in phpBB Templates
- Using Conditions in phpBB Templates
- Using the Authentication Function
- Checking for Poll-Creation Privileges
- Getting Board Statistics
- Retrieving User Information
- Encoding and Decoding IP Addresses
- Displaying Dates
- Getting a List of Censored Words
- Preserving the Session in the Hyperlinks
- IN_PHPBB
- Postings-Related Functions
- Create Links Automatically
- Processing Smilies
- Displaying a Posting Body
- The Challenge
- The Template
- The Code
|
 |
|
 |
| |
Paperback,
360 pages
Released: May 2005
ISBN: 1904811132
Authors: Stoyan
Stefanov, Jeremy
Rogers, Mike Lothar |
|
|
|
|
|
Introduction
1: Introduction to phpBB
2: Installing and Configuring phpBB
3: A Quick Tour of phpBB
4: Customizing Your Forum
Free Chapter
5: Forum Administration
6: Creating Your Own Template
7: Creating a New MOD
8: Programming phpBB
Appendix A: Directory Structure
Appendix B: phpBB Resources
Appendix C: phpBB Code and Permission Cheatsheets
Appendix D: phpBB Database Structure
Index
|
 |
|

View the book details
on PacktPub.com
|
 |