Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Matslom/mybb-theme-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyBB template editor

Edit MyBB templates using your favourite text editor.

This script saves all templates from template group to files and watching changes.

Installation:

  1. Download .zip
  2. Unpack and call in your folder
npm install

Configuration:

  1. Edit config/app.json and fill your data

Configuration options:

{
	"database": {
		"prefix": "mybb_" 		// MyBB table prefix
	},
	"mysql": { 					// Database configuration
		"host": "localhost",
		"username": "root",
		"password": "secret",
		"database": "mybb"
	},
	"theme": {
		"id": 2					// Template group id
	},
	"app": {
		"datadir": "templates",	// Dirname with templates
		"fileext": ".html"		// Extension for files
	}
}

Usage:

  1. Save templates to files node index.js init
  2. Watch changes node index.js watch

Available commands:

Usage: index [options] [command]


  Commands:

    init         create template repository
    write-file   overwrite all files by templates from database
    write-db     overwrite all database templates by templates from files
    watch        watch templates
    clear        delete all file templates

  Options:

    -h, --help     output usage information
    -V, --version  output the version numbers

About

nodejs script which help edit MyBB themes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published