MyBB Community Forums

Full Version: Google SEO installer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi forum,

Because of some threads I've read here, other communities and some friends regarding adding the additional code to the functions.php file everytime the forum is upgraded for the Google-SEO plugin by frostschutz, I've decided to write this small script to do the work.

Teorically, this script would work with MyBB 1.4.x and 1.6.x, however I just tested it in 1.6.0, 1.6.1 and 1.4.14.

Also, it will create a copy of the original file under the name functions.php.bkp... but still I recommend doing your own backup copy.

Instructions:
  1. Upload the script install_seo.php to the same directory where functions.php is located at.
  2. Navigate through your browser to install_seo.php.
  3. Delete the file as soon as the modification finishes.

Another note: This script will only work the functions.php file... it won't modify the .htaccess file.

Hope this comes in handy.

UPDATE: There was a bug in the method for writing the new file. Please re-download. Thanks.
Nice. Thanks.
There was a bug in the method for writing the new file. Please re-download. Thanks.
Thanks for the fix Smile
thanks for this.