GT-NExtGeN_Beta_0.4 Install

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   GT-NExtGeN_Beta_0.4 Install
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Downloaded [ Register or login to view links on this board. ] I tried the install from a base 7.9 install. It gave me blank pages when trying to view the forums and didn't seem to work at all, period. In the install_README.txt, it says you must make some minor modifactions to so a few files. I can't find the edits for 2 of those files listed. includes/page_tail.php and modules/Journal/functions.php

Installation Steps (Installation time, ~10 Mins, Difficulty: Easy)
These following files will need to be slightly modified for the GT-NExtGEn beta to work correctly:
.htaccess
header.php
footer.php
includes/page_tail.php
modules/Journal/functions.php

** Be sure to back up all files above before doing the below install instructions **

-.htaccess
  You must remember to update your existing .htaccess file, I would suggest adding your existing custom code (Custom Modules not in Distro's .htaccess) to the GT-NExtGEn  .htaccess file as there have been updates to some .htaccess statements and additional GT code added that was not available in the last distribution.

  If you have no custom module code for GoogleTap simply overwrite your existing .htaccess file with the .htaccess file located within the GT-NExtGEn beta distribution.

- Next, Upload the included GoogleTap directory to your main directory (Same directory your mainfile.php, header.php and footer.php are located in). This directory contains the necessary files for converting your modules URL's to their .html equivalents.

- Open header.php
  Find:
if (eregi("header.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

After Above and On A New Line, Add:

#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

Save header.php and upload.

- Open footer.php
  Find:
function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
    if ($home == 1) {
   blocks(Down);
    }
    if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
   $cpname = ereg_replace("_", " ", $name);
   echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &copy;</a></div>";
    }
    themefooter();
    echo "</body>\n"
   ."</html>";
    die();
}

  After Above and On A New Line, Add:
#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

Save footer.php and upload.

- Open modules.php (Located in main nuke directory)
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;

Save modules.php and upload.

I am sure if you are using this beta your includes/sessions.php file should already have the necessary statements, if you are unsure, please refer to the includes directory within the GT-NExtGEn distribution for instructions on updating this file. Either overwrite with the file provided or do the manual changes located within the sessions_manualchanges.txt file.

If you use the AvantGo module, please upload the modules files provided with this distribution (modules/AvantGo). This module has now been revamped to work exclusively with GT-NExtGEn beta.

If you are interested in having your news articles print page GT'd, please see modules/News_Module_Tweak.txt for instructions on how to do so.

# Done #


Anybody got a better readme or install tutorial?


Back to top Reply with quote
#2   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
You don't have to do those edits, it took me 10 different times to install this mod



Back to top Reply with quote
#3   re: GT-NExtGeN_Beta_0.4 Install
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
well I wish I had some help. You wanna edit my file for me icon_biggrin.gif



Back to top Reply with quote
#4   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
How much you got done?



Back to top Reply with quote
#5   re: GT-NExtGeN_Beta_0.4 Install
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
none of it. I could prolly do the install nice an easy but it just seems so confusing to me. Like the directions aren't very clear. Its a brand new install of nuke though. That is kinda nice.



Back to top Reply with quote
#6   re: GT-NExtGeN_Beta_0.4 Install
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Ok I made all the edits in the above text file and the uploaded the GoogleTap folder. The site is not blank, but it doesn't appear to be working. What did I do wrong? There has to be some step missing here. All I did was edit the header.php, footer.php, modules.php, and the .htaccess file.



Back to top Reply with quote
#7   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
Try going into forums and check the links and see if they changed



Back to top Reply with quote
#8   re: GT-NExtGeN_Beta_0.4 Install
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Nope, I am thinking it could be a problem with the .htacess file, because my sentinel admin auth does not wonna work either.

Is there something that was suppose to installed, before gt-nextgen? It seems to easy, to be so hard.

I did some checking to make sure my host allowed the .htaccess file and what not. [ Register or login to view links on this board. ]

It would appear they do from reading this link.



Back to top Reply with quote
#9   re: GT-NExtGeN_Beta_0.4 Install
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
The only thing I can think of to questionable as far as code goes is the modules.php but here it is.

if (isset($name) && $name == $_REQUEST['name']) {
  $nextgen_name = $name;
  $name = addslashes(trim($name));
  $modstring = strtolower($_SERVER['QUERY_STRING']);
  if (stripos_clone($name, "..") OR ((stripos_clone($modstring,"&file=nickpage") || stripos_clone($modstring,"&user=")) AND ($name=="Private_Messages" OR $name=="Forums" OR $name=="Members_List"))) header("Location: index.php");
  global $nukeuser, $db, $prefix, $user;


That of course is just the few lines that had changes.

This is the edit instructions from the install.txt just so you don't have to scroll up.

- Open modules.php (Located in main nuke directory)
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;

Save modules.php and upload.


There is of course as always a login, if needed for some reason

User:test
Pw:test


Back to top Reply with quote
#10   
craigmack
CZ Active Member
 Codezwiz Site Donator
craigmack has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Age: 46
Gender: Male
Fav. Sports Team: Pistons
Status: Offline
Joined: Feb 15, 2005
0.02 posts per day
Posts: 147
Points: 6,072
   
Did you upload all the files? Make all the edits found in the install_readme?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum