07-19-2008, 02:29 AM
So, you want to make your own skin for the forum installer so it matches your site? No problem!
For the index.php:
The index.php file is really nothing more than a HTML form. Thus, you could simply create a new HTML form on your website that posts to mkforum.php. The form you make for your site should post the following values to mkforum.php:
Then just create a new form with those fields that posts to mkforum.php on your server.
Editing mkforum.php:
First, create a HTML mockup of what you want the completed mkforum.php file to look like to the end user after they have installed a forum. Save this as a .html file and then do a find and replace on the file to make sure all double quotes (") are turned into single quotes (').
Then in mkforum.php find:
This is the default HTML for the forum installer. Delete or edit as necessary. Make sure to wrap your HTML inside of an echo ""; statement. You can use this list of variables for dynamic content, such as the forum name, forum link, email, username, password, etc.
Unless you are a Premium Member you MUST include a visible link to http://webringamerica.com/mybbmf/ with the text Powered by Brandon's MyBB Multiforums Mod somewhere on the forum installer.
Hope it helps,
BMR777
For the index.php:
The index.php file is really nothing more than a HTML form. Thus, you could simply create a new HTML form on your website that posts to mkforum.php. The form you make for your site should post the following values to mkforum.php:
- fname - This is the forum name
- email - User's Email Address
- uname - Forum Admin Username
- pass1 - Admin password
- pass2 - Confirm Password
- forumname - Display Name that appears on the top of the forum
Then just create a new form with those fields that posts to mkforum.php on your server.
Editing mkforum.php:
First, create a HTML mockup of what you want the completed mkforum.php file to look like to the end user after they have installed a forum. Save this as a .html file and then do a find and replace on the file to make sure all double quotes (") are turned into single quotes (').
Then in mkforum.php find:
PHP Code:
echo "<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<title>MyBB Multiforum Installer</title>
<style type='text/css'>
<!--
body,td,th {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: #4392C6;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
a:hover {
color: #000000;
}
a:active {
color: #000000;
}
.style1 {
color: #1174B5;
font-weight: bold;
}
.style3 {font-size: 14px}
.style6 {
font-size: 16px;
font-weight: bold;
}
.style9 {font-size: 14px; font-weight: bold; }
.style10 {font-size: 12px}
-->
</style></head>
<body>
<div align='left'></div>
<center><table width='700' border='0' cellpadding='0' cellspacing='0'>
<!--DWLayoutTable-->
<tr>
<td width='700' height='82' valign='top' bgcolor='#FFFFFF'><img src='mfmod.gif' width='248' height='82'>
</td>
</tr>
<tr>
<td height='15' valign='top' bgcolor='#347AA9'><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height='253' valign='top' bgcolor='#FFFFFF'><div align='center'>
<p> </p>
<p class='style1'><u>MyBB Multiforums Installer:</u></p>
";
$myURL = $newURL;
echo "Your forum is now set up! You can view it at <a href=$myURL>$myURL</a><br>";
echo '<br><b>Here are your login details:</b><br>';
echo 'Username: '.$uname.'<br>';
echo 'Password: '.$pass1.'<br><br>';
echo 'You will receive shortly an activation code via email.
Click on the notice on your forums to activate your forums.
<b>Until you activate your forums they can be automatically deleted or pruned at any time!</b>
Once you activate your forums they cannot be automatically deleted.
If you do not receive an email from us shortly please check your spam or junk email folder.<br>';
echo '<br>Have a nice day!<br>';
$copyrite = "http://www.webringamerica.com/mybbmf/";
echo "<br><a href=$copyrite>Powered by Brandon's MyBB Multiforums Mod</a><br><br>";
echo "</div></td>
</tr>
</table>
</center>
</body>
</html>";
This is the default HTML for the forum installer. Delete or edit as necessary. Make sure to wrap your HTML inside of an echo ""; statement. You can use this list of variables for dynamic content, such as the forum name, forum link, email, username, password, etc.
Unless you are a Premium Member you MUST include a visible link to http://webringamerica.com/mybbmf/ with the text Powered by Brandon's MyBB Multiforums Mod somewhere on the forum installer.
Hope it helps,
BMR777
