07-19-2008, 02:06 AM
Hello All,
This post contains a list of variables that my script uses. This list will make it easier for you as a themer or modder to work with my script.
These variables will especially come in handy for themers. They will allow you as a themer to make a HTML mock-up of how you want your forum installer to look and then simply replace certain static elements of the forum installer with the dynamic variable name.
Here is a list of the variables by file name and what each one does:
Global Variables (Can be called from any file that includes mconfig.php):
Forum Installer Variables (mkforum.php):
MyBB inc > config.php Variables:
I hope this helps.
BMR777
This post contains a list of variables that my script uses. This list will make it easier for you as a themer or modder to work with my script.
These variables will especially come in handy for themers. They will allow you as a themer to make a HTML mock-up of how you want your forum installer to look and then simply replace certain static elements of the forum installer with the dynamic variable name.
Here is a list of the variables by file name and what each one does:
Global Variables (Can be called from any file that includes mconfig.php):
PHP Code:
$dname // Your domain name, in the form of yoursite.com
$spath // Script folder where you installed the script
$dbhost // Database Host, ex localhost
$dbname // Database Name
$dbuser // Database User
$dbpass // Database Password
$backups_enabled // Manages forum backup manager for hosted forums
// 0 = Disabled, 1 = Enabled, 2 = Enabled for Paid only
Forum Installer Variables (mkforum.php):
PHP Code:
$fname // Forum Name as entered by user
$email // The user's email address
$uname // Username specified by user
$pass1 // Password
$pass2 // Password Confirm
$display // Display Name for forum
$table // Forum name with underscore for DB Prefix, like forum_
$newURL // Full forum url, like http://forumname.domain.com
$do // Forum URL without http://www portion
$act // Forum activation code
$message // Email message to be sent on new forum creation, should contain activation code
$lb // Copyright Linkback - DO NOT CHANGE
MyBB inc > config.php Variables:
PHP Code:
$ref // Table Prefix, like forum_
I hope this helps.
BMR777