Changlog for Manual Updates for Beta 0.4
Please make the below changes to be up to date and using beta 0.4
If you are using Beta 0.1 or 0.2, please install 0.4 fully as these changes
are for upgrades from Beta 0.3.

------------------------------------------
Update to GT-NExtGEn Beta 0.4
------------------------------------------

------------------
Open Header.php
------------------
Find:
All GT-NExtGEn Header Code:
From #Start of Google Tap Header to #End of Google Tap Header

Replace With:
#Start of Google Tap Header 
global $nextgen_name, $prefix, $db; 

// Google Tap On or Off, 1=On, 0=Off 
$next_gen_ob = 1; 

//Used for main module or a module without a name 
if ($nextgen_name == "") { 
$sql = "SELECT main_module FROM ".$prefix."_main"; 
$result = $db->sql_query($sql); 
$row = $db->sql_fetchrow($result); 
$mainmod_name = $row[main_module]; 
$nextgen_name = $mainmod_name; 
} 

//Make the path to the GT-NExtGEn Files 
$nextgen_path = "GoogleTap/GT-".$nextgen_name.".php"; 
if ($next_gen_ob == 1) { 
   if (file_exists($nextgen_path)) { 
   ob_start(); 
   } else { 
   $next_gen_ob = 0; 
   } 
} 

function replace_for_mod_rewrite(&$s, $nextgen_path) { 

//Check to see if file exists before continuing 
     if (file_exists($nextgen_path)) { 
     include($nextgen_path); 
     } 
     $s = preg_replace($urlin, $urlout, $s); 
     return $s; 
} #End of Google Tap Header 

------------------
Open Footer.php
------------------
Find:
All GT-NExtGEn Footer Code:
From #Start of Google Tap Footer to #End of Google Tap Footer

Replace With:
#Start of GoogleTap Footer 
if ($next_gen_ob == 1) { 
// Store Buffer in $contents 
$contents = ob_get_contents(); 
//Replace all standalone &'s with &amp's 
$contents = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&amp;", $contents); 
//Fix up for && in script and bad coding of middot;'s, and  ;'s 
$contents = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "", " ;"), $contents); 
//delete output buffer and stop buffering 
ob_end_clean(); 
//display modified buffer to screen 
echo replace_for_mod_rewrite($contents, $nextgen_path); 
} else { 
//if module has unusual method of including footer, make NExtGEn variables 
//global and try it again. If variables have values for NExtGEn it will succeed 
//else it will go to normal footer. 
global $next_gen_ob, $nextgen_path; 
   if ($next_gen_ob == 1 AND $nextgen_path != "") { 
   $contents = ob_get_contents(); 
   $contents = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&amp;", $contents); 
   $contents = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "", " ;"), $contents); 
   ob_end_clean(); 
   echo replace_for_mod_rewrite($contents, $nextgen_path); 
   } 
} 
#End of GoogleTap Footer 

------------------
Open modules.php
------------------

Find: 
if (isset($name)) { 
 
After this and on a new line, add: 
$nextgen_name = $name; 
 
Code should now resemble the following:
if (isset($name)) { 
    $nextgen_name = $name; 
    global $nukeuser; 
 
------------------
Open .htaccess
------------------
Find in #WebLinks Section:
RewriteRule ^links-search-([a-zA-Z0-9_-]*).html modules.php?name=Web_Links&l_op=search&query=$1 
RewriteRule ^links-search-([a-zA-Z0-9_-]*)-orderby-([a-zA-Z]*).html modules.php?name=Web_Links&l_op=search&query=$1&orderby=$2 
RewriteRule ^links-search-([a-zA-Z0-9]*)-([0-9]*)-orderby-([a-zA-Z]*)-([0-9]*) modules.php?name=Web_Links&l_op=search&query=$1&min=$2&orderby=$3&show=$4 

Replace With (Basically changed order):
RewriteRule ^links-search-([a-zA-Z0-9]*)-([0-9]*)-orderby-([a-zA-Z]*)-([0-9]*) modules.php?name=Web_Links&l_op=search&query=$1&min=$2&orderby=$3&show=$4 
RewriteRule ^links-search-([a-zA-Z0-9_-]*)-orderby-([a-zA-Z]*).html modules.php?name=Web_Links&l_op=search&query=$1&orderby=$2 
RewriteRule ^links-search-([a-zA-Z0-9_-]*).html modules.php?name=Web_Links&l_op=search&query=$1 


Find in #Private Messages Section:
RewriteRule ^messages-post-([0-9]*).html modules.php?name=Private_Messages&mode=post&u=$1

After Add:
RewriteRule ^messages-new.html modules.php?name=Private_Messages&file=index&mode=post

-----------------
Open GT-Forums.php
-----------------
Remove from $urlin array:
"'(?<!/)modules.php\?name=Your_Account\"'",
"'(?<!/)modules.php\?name=Journal&amp;file=edit'",
"'(?<!/)modules.php\?name=WebMail'"

Remove from $urlout array:
"account.html\"",
"journal-edit.html",
"webmail.html"

------------------
Uploads
-----------------
Upload GoogleTap/GT-Private_Messages.php to GoogleTap Folder
Upload GoogleTap/GT-Members_List.php to GoogleTap Folder

------------------
Code Removal
------------------
Open modules/Journal/functions.php and remove:
global $ob;

Open includes/page_tail.php and remove:
global $ob;

-------------------
DONE!
-------------------