Modules don't have Preferred URL for GoogleTap

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Modules don't have Preferred URL for GoogleTap
Snoboreders
CZ Newbie
Snoboreders has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jul 13, 2005
0.00 posts per day
Posts: 5
Points: 202
   
I installed Googletap GT Nextgen following the instructions in the beta4.0 version; however, it appears it isn't working. I altered the header, footer, .htaccess, and sessions.php as was directed. Any Idea why my modules don't give the option for preferred URL?

Is there anyway somebody could look at my code to see if I messed something up?

Thanks

I didn't see:

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

on my header.php;however, I did see

if (stristr($_SERVER['SCRIPT_NAME'], "header.php")) {
Header("Location: index.php");
die();
}
so I placed it under there. Is that the reason things aren't working?

In the Beta4.0 version, the installation instructions under the header.php googletap have this:

//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;

I just changed the 0 to a 1, and my whole site was blank...so I obviously turned it back. Any ideas or help? What should I do about that zero



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Have you tried posting this on the gt-nextgen site?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Modules don't have Preferred URL for GoogleTap
scz74
CZ Active Member
scz74 has been a member for over 20 year's 20 Year Member
philippines.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Aug 15, 2004
0.02 posts per day
Posts: 145
Points: 7,972
   
gt nextgen takes forever to reply, anyway i think the code you posted that should be added to header.php is incomplete i believe this is the complete code:




#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;
}
}




_________________
[ Register or login to view links on this board.]
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   re: Modules don't have Preferred URL for GoogleTap
Snoboreders
CZ Newbie
Snoboreders has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jul 13, 2005
0.00 posts per day
Posts: 5
Points: 202
   
I have all the code, I just didn't post it all...they're helping me on NukeCops and CastleCops...thanks though



Back to top Reply with quote
#5   re: Modules don't have Preferred URL for GoogleTap
scz74
CZ Active Member
scz74 has been a member for over 20 year's 20 Year Member
philippines.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Aug 15, 2004
0.02 posts per day
Posts: 145
Points: 7,972
   
no prob, gudluck. icon_smile.gif




_________________
[ Register or login to view links on this board.]
[ Register or login to view links on this board.]
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