Ok l downloaded the Google Tap from nukecops and lm a bit confussed l have mod_rewrite so thats not a problem but what is it l do with the files inside the zip folde l have uploaded the htaccess file to the main root of my nuke site but what do l do with the rest of the files to get it to start to work any help would be appreciated l really what to utilize this google tap in our site ..!
XtraX
Last edited by XtraX on Tue Sep 30, 2003 7:59 am; edited 1 time in total
XtraX Lieutenant
Joined: Aug 23, 2003
Posts: 195
Posted:
Tue Sep 30, 2003 7:57 am
Ok l have edited the Session.php file but still curiose on what l do with the footer and header file do l over write my existing ones with these files it has the code inside and my question would be do l just past the small amount of code in to my header and footer will anyone help lm really new at this ....but wish to make google tap work .
XtraX
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Tue Sep 30, 2003 8:07 am
What version of Nuke are you using? I'll edit the header & footer for you, in the meantime upload the .htaccess file.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
XtraX Lieutenant
Joined: Aug 23, 2003
Posts: 195
Posted:
Tue Sep 30, 2003 8:32 am
Thank you Chatserve it seems l can always count on your reply
I'am using PHPNuke-6.9
and l really appreciate all your help
I have been banging my head over this for days trying to get this to work or to figure out to what it is l do with these files .
Thank you thank you thank you ..
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Tue Sep 30, 2003 8:58 am
<center><b>Header.php</center></b>
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("header.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
##################################################
# Include some common header for HTML generation #
##################################################
$header = 1;
function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
$ThemeSel = get_theme();
include("themes/$ThemeSel/theme.php");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";
online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
message_box();
blocks(Center);
}
?>
<center><b>Footer.php</center></b>
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("footer.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$footer = 1;
function footmsg() {
global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = ""._PAGEGENERATION." ".substr($total_time,0,5)." "._SECONDS."";
echo "<font class=\"footmsg\">\n";
if ($foot1 != "") {
echo "$foot1<br>\n";
}
if ($foot2 != "") {
echo "$foot2<br>\n";
}
if ($foot3 != "") {
echo "$foot3<br>\n";
}
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
echo "$copyright<br>$total_time<br>\n</font>\n";
}
$contents = ob_get_contents(); // store buffer in $contents
ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen
foot();
?>
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
XtraX Lieutenant
Joined: Aug 23, 2003
Posts: 195
Posted:
Tue Sep 30, 2003 11:03 am
thanks allot chatserve one more question is say l created a few mods myself and wish to added them what us the basic rule to follow so l can
add them also to google tap..
XtraX
XtraX Lieutenant
Joined: Aug 23, 2003
Posts: 195
Posted:
Tue Sep 30, 2003 11:11 am
Ok its seems to be working when l click on downloads it comes up downloads.html
wich is good but l get this after clicking it
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Am i still doing something wrong here or does it just take awhile to chnge the links .. ?/
XtraX
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Tue Sep 30, 2003 12:33 pm
Usually when that happens it means mod_rewrite is not enabled or might be a bit outdated, check with analyzer.php, it should give you more information.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
XtraX Lieutenant
Joined: Aug 23, 2003
Posts: 195
Posted:
Tue Sep 30, 2003 3:21 pm
Ok l have uploaded the analyzer to my site but not saure to what it is your talking about so l will send you a pm to the link to where it is stored as well l have uploaded it directly in the same root as config.php so it should work mod_rewrite has been set to All or Full for my entire site by my host provider sao that is why l am still confused ... l will send you the link in your message boc chatserve tell me what l may need to do to get this to work please.
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