============================================================================================================================
Modification Name: Google Adsense Theme Colors v1.0

Description: This modification will display the google adsense using the colors from the board's current theme.
	 You MUST have a Google Adsense account and the adsense code must be placed in either your header or footer templates, or both.

Compatibility: XMB v1.9.5 SP1

Code Developed By: Adam Clarke (http://www.scriptdesign.co.uk & http://www.xmbgarage.com)

Install Note: Before adding this modification to your forum, you should back up all files related to this modification.

Affected Files: header.php

Affected Templates: header and possibly footer.

License Note: This modification is released under the GPL License v3. A copy is provided with this software package.

Author Note:
You downloaded this modification from XMBGarage.com, the #1 source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.
============================================================================================================================
=======
Step 1:
=======
=================
Edit File: header.php
=================
==========
Find Code:
==========

if (false === strpos($top, '.')) {
    $topbgcode = "bgcolor=\"$top\"";
} else {
    $topbgcode = "style=\"background-image: url($imgdir/$top)\"";
}

===============
Add Code Below:
===============

// Google Adsense Theme Colors Mod Begin
// convert colors for Google Adsense
$google_border = str_replace("#", "", $bordercolor);
$google_bg = str_replace("#", "", $altbg1);
$google_link = str_replace("#", "", $headertext);
$google_url = str_replace("#", "", $link);
$google_text = str_replace("#", "", $text);
// Google Adsense Theme Colors Mod End

============================================================================================================================
=======
Step 2:
=======
========================================================
Find Code: (?????? will not be in template, this is used as the color is unknown)
========================================================

google_color_border = "??????";
google_color_bg = "??????";
google_color_link = "??????";
google_color_url = "??????";
google_color_text = "??????";

================
Replace Code With:
================

google_color_border = "$google_border";
google_color_bg = "$google_bg";
google_color_link = "$google_link";
google_color_url = "$google_url";
google_color_text = "$google_text";

============================================================================================================================
Enjoy!