VBulletin Development Summary

Source: Internet
Author: User
Tags vbulletin

I believe many enterprises will purchase VBulletin as the development framework of Enterprise Forums, blogs, or CMS. When you are new to VBulletin, you may be confused. Or you can add your own fancy logic to some pages through your own painstaking efforts, however, this operation may affect your system upgrade in the future. Therefore, this article aims to help you understand the program structure of VBulletin, so that you can easily customize your own applications.

1. Forum program Portal

/Index. php ==> content. php ==> Vb/Bootstrap. php

In Bootstrap. in PHP, contain/program des/init. PHP, perform initialization, and then introduce Vb/VB. PHP starts its MVC router. The router forwards client requests to the Controller, registers the template in the controller, and render the final page.

 

2. Program core classes and functions

The core class is mainly in class_core.php, and other classes are basically defined as javasdes/class _ *. php.

Database related: vb_datavase

Cache related: vb_datastore

Request related: vb_input_cleaner

Core Registrar: vb_register

Session related: vb_session

Template engine: vb_template _*

 

The core function is mainly used in functions des/functions. php. Other classes are basically defined as functions des/functions _ *. php.

 

3. template Management

3.1 Page Management

Add a new template: styles & templates> style Manager> Add new templates

Edit template: styles & templates> style Manager> edit templates

Page header template: styles & templates> style Manager> edit templates> Header

Navigation template: styles & templates> style Manager> edit templates> navigation/breadcrumb templates> navbar

Footer template: styles & templates> style Manager> edit templates> footer

3.2js framework

The JS framework used in VBulletin is yahooui, the user manual can refer to: http://developer.yahoo.com/yui/docs/YAHOO.util.Dom.html

 

4. Embedded program and plug-in management

Plugins & Products> plugin manager> Add new plugin

Product: Leave with default value

Hook location: member_build_blocks_start

Title: forumalias

Execution order: Leave with default value

Plugin is active: Yes

Plugin PHP code:

 

5. Language Pack Management

. Upload and download the complete Language Pack

Languages ages & phrases> language Manager

. Add or modify a subitem in the Language Pack

Ages & phrases> phrase Manager> Add new phrase

 

6. Background menu management

Add inlcudes/XML/cpnav_vbulletin _ *. xml

 

7. Tips

Add DEBUG = ture to/shortdes/config. php to enable the debugging status of the program.

 

Let's talk a little more about it. If you have any questions, please feel free to ask.

You can also refer to the development documents officially provided by VBulletin.

Http://members.vbulletin.com/api/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.