|
||||||
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Creating a New UBB.threads Page · ArticleWhat Is Covered• Summary • Example Files • Example Language File • Example Script File • Example Template File SummaryCreating a new system (page) in UBB.threads can be a challenge, even to a vested veteran; but examples are everywhere within the system once you know how to utilize it. Note Initially, there was a set of sample files supplied with the UBB.threads stock archive, but a previous developer had removed the file to save (very little) space. This article was initially inspired by those sample files. Each system in UBB.threads has (at least) three parts: • The Language file (/languages/english/example.php) - The language file, containing all of the strings that your new page will be using. • The Script file (/scripts/example.inc.php) - The script file, containing all of the PHP that your script will be utilizing. • The Template File (/templates/default/example.tpl) - The template file, which contains the overall outline of how your script is presented. Likewise, each Admin system has three parts: • The Language file (/languages/english/admin/example.php) - The admin language file, containing all of the strings that your new page will be using. • The Script file (/admin/example.inc.php) - The admin script file, containing all of the PHP that your script will be utilizing. • The Template File (/templates/default/admin/example.tmpl) - The admin template file, which contains the overall outline of how your script is presented. Additionally, one can opt to utilize the "Extra CSS" section of the style editor to add any additional styling options that your new page will need. Note If you're accessing a page, the template/script/language file is commonly listed in your address bar, such as: Active Topics: ubbthreads.php/activetopics/7/1.html Example FilesWe generally recommend that you learn how the system itself works by looking at the various files included with your install, but getting started can be a caveat; we've produced the below Sample Files so that you know how to get started. For the sake of simplicity we've named everything "sample" where you'll need to simply rename to fit your page. Example Language File(/languages/english/example.php)Code <?php Example Script File(/scripts/sample.inc.php)Code <?php defined("UBB_MAIN_PROGRAM") or exit; Example Template File(/templates/default/example.tpl)Code {* Posted on July 30th, 2016 · Updated on January 13th, 2017
▼ Sponsored Links ▼
▲ Sponsored Links ▲ Comments( |
||||||
▼ Sponsored Links ▼
▲ Sponsored Links ▲ |
||||||