MyBB Community Forums

Full Version: [release] MyBB Copyright Image with updating year
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Updated On: 12/29/08.

Users have been requesting the MyBB copyright in an image form lately. So here it is, it also updates the year automatically.

Why switch to an image?
A lot of spambots search for forums by the powered by lines, to prevent your forum from coming up in the search, you can use the image copyright, which looks the same but isn't in text form.

The installation instructions are located below the download.
Color changing instructions are located at the bottom of this post.

The copyright will look like this on your site:
[attachment=9121]

Download:
[attachment=12210]



Installation:
Create a folder in the main directory of your forum called 'copyright' and upload the imagecopy.php file to it.

Now open up the footer template in your admin panel under the templates manager. Remove the copyright lines that are in the footer template which are as follows:
Powered By MyBB
Copyright © 2002-2008 MyBB Group

After removing the powered by and copyright lines include this code:
Be sure to replace 'YOURSITE.COM/FORUM' to your forum url.
<a href="http://mybboard.net" target="_blank"><img src="http://YOURSITE.com/FORUM/copyright/imagecopy.php" /></a>

Enjoy!

FYI: This image is a replacement of the original text-form powered by and copyright lines. The Image can be clickable and can be done by using the code provided above. Follow the instructions above and it should work.


Changing The Background Color.

To change your background color, first find the RGB color code. You can do so using this: http://www.tayloredmktg.com/rgb/
If you have a HEX code (or 6 alphanumeric code) use this conversion system: http://www.drpeterjones.com/colorcalc/ (instructions on how to convert are located below the background color tutorial.)

Once you have the RGB code, open up imagecopy.php in your favorite text-editor and find this line:
$white = ImageColorAllocate($im, 255, 255, 255);

So I don't make this confusing, we're not going to change the name of the variable nor create a new one. Now copy your RGB color code and change it.

For example, I have this RGB code: 107, 142, 35 and I want to change the background color,

I would replace this:
$white = ImageColorAllocate($im, 255, 255, 255);

With this:
$white = ImageColorAllocate($im, 107, 142, 35);

Once done, save the changes to the file and (re)upload the file by following the installation instructions above.


Converting HEX to RGB.

If you have a 6 alphanumeric HEX code (E.G ffffff or ececec) and want to convert it to RGB follow these simple steps.

Visit this site: http://www.drpeterjones.com/colorcalc/

On the left, you'll see this text "« enter 6-digit HEX code ", to the left of it, theirs a textbox, enter your HEX code into it then click "Calculate". Once done, at the right of your screen you'll see the following text "« RGB values" to the left of it you'll find textboxes with the code. Copy each set of numbers and separate them by a comma (E.G 255, 255, 255). Now, go back to the "Changing The Background Color" tutorial above and continue following the instructions.
Just updated some of the code. To upgrade, just replace the file. For security reasons, if you're upgrading follow these instructions:

Delete the imagecopy.php file and 'copyright' folder from the inc folder.
Now create a folder in your main forum directory and call it 'copyright'.
From there, upload the new imagecopy.php file and update the code in the footer template to the following:
<a href="http://mybboard.net" target="_blank"><img src="http://YOURSITE.com/FORUM/copyright/imagecopy.php" /></a>
so this is just for spam prevention? *just curious*
(2008-12-29, 09:13 PM)MCII-Totality Wrote: [ -> ]so this is just for spam prevention? *just curious*

Pretty much. It also helps protect your forum from hackers.

I'm uploading this to my forum right now. Thanks. Smile
(2008-12-29, 09:13 PM)MCII-Totality Wrote: [ -> ]so this is just for spam prevention? *just curious*

Pretty much. It won't prevent all the spam, but it will cover most of the bots who search for "Powered by MyBB" forums. I know you're probably thinking "I can just remove the powered by altogether since MyBB is under the GPL". The only thing is, by removing the MyBB powered by line you won't get support and you won't be helping MyBB grow. So this would be your alternative to protecting yourself.

(2008-12-29, 09:17 PM)Snowman01 Wrote: [ -> ]I'm uploading this to my forum right now. Thanks. Smile


No problem.
I'm still running a copy of MyBB 1.1.8 somewhere with a copyright image on the footer ... nobody ever hacked it. Toungue
oh i understood. Big Grin I just wanted to be sure what this was, I'm uploading it now ^_^
Don't understand me wrong: it's just a discussion board 'for fun', it doesn't mind if it gets hacked. Smile
(2008-12-29, 09:30 PM)destroyer Wrote: [ -> ]Don't understand me wrong: it's just a discussion board 'for fun', it doesn't mind if it gets hacked. Smile

Exactly. So this is not an alternative to not upgrading, always upgrade to the latest version. This will only help keep the spam bots away and potential hackers who search for MyBB powered forums.
Upgrate thanks so much. I've change the colors for the same of my theme,. Is there a problem with that?
Pages: 1 2