04-25-2009, 11:30 AM
This simple modification allows you to add a global copyright that will appear at the bottom of all your hosted forums from your mybb multiforums host control panel. Also forum owners will not be able to remove your copyright from there forum.
All files i mention in this post are in the .zip attachment, except for global.php
It will output a copyright like this:
The First thing you need to do is in your database run the following query:
Next you will need to upload copyright.php, copyrightexecute.php, and copyright.txt to the following directories:
copyright.php and copyrightexecute.php /path_to_your_forums/create/adm
copyright.txt /path_to_your_forums/create/ads
Next open /path_to_your_forums/global.php
Find the following:
and add below it the following:
Next find:
and replace it with:
Save and reupload global.php
Next open path_to_your_forums/create/adm/linksbar.php
find the following:
add below it:
Save and reupload linksbar.php
Then login into path_to_your_forums/create/adm, and click on manage copyright, enter your settings and then go to one of your hosted forums and make sure you see your copyright at the bottom.
[attachment=166]
All files i mention in this post are in the .zip attachment, except for global.php
It will output a copyright like this:
Quote:Hosted by Your_Site © Host your free forum now!
The First thing you need to do is in your database run the following query:
Code:
CREATE TABLE IF NOT EXISTS `hosted_copyright` (
`id` int(11) NOT NULL,
`copyurl` varchar(30) NOT NULL,
`copysite` varchar(30) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;Next you will need to upload copyright.php, copyrightexecute.php, and copyright.txt to the following directories:
copyright.php and copyrightexecute.php /path_to_your_forums/create/adm
copyright.txt /path_to_your_forums/create/ads
Next open /path_to_your_forums/global.php
Find the following:
Code:
//Set up our ads
$hads = file_get_contents("create/ads/headers.txt");
$fads = file_get_contents("create/ads/footers.txt");and add below it the following:
Code:
//Set up our copyright
$hostcopy = file_get_contents("create/ads/copyright.txt");Next find:
Code:
if ($flag == 1){
eval("\$footer = \"".$templates->get("footer").""\";");
}
else
{
eval("\$footer = \"".$fads."".$templates->get("footer").""\";");
}and replace it with:
Code:
if ($flag == 1){
eval("\$footer = \"".$templates->get("footer")."".$hostcopy."\";");
}
else
{
eval("\$footer = \"".$fads."".$templates->get("footer")."".$hostcopy."\";");
}Save and reupload global.php
Next open path_to_your_forums/create/adm/linksbar.php
find the following:
Code:
<p align='left'><a href='ads1.php' target='main'>Manage Ads</a></p>add below it:
Code:
<p align='left'><a href='copyright.php' target='main'>Manage Copyright</a></p>Save and reupload linksbar.php
Then login into path_to_your_forums/create/adm, and click on manage copyright, enter your settings and then go to one of your hosted forums and make sure you see your copyright at the bottom.
[attachment=166]
