Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
izone
Involved
Involved



Joined: Sep 07, 2004
Posts: 354
Location: Sweden

PostPosted: Fri Sep 09, 2005 7:15 am Reply with quote

I have got these codes below (here on Ravens) to show my html docs as a module in Nuke.

Everythings worked fine. But after adding Google Tap (by adding codes in header.php and footer.php and .htaccess) and patch 3.0 it wont works proprely. This is codes for index.php:

Code:


<?
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
  die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }
if (file_exists("modules/$module_name/copyright.php"))
$index=0;

$go_to_address1="modules/mybooks/index.html";
$go_to_address=rawurldecode($go_to_address1);
include("header.php");
OpenTable();
echo "<center><h4><a href=\"index.php\">Back to first page</a></h4></center>";
OpenTable();
echo "<center><img src=\"modules/mybooks/images/books.jpg\" border=\"0\">"; // Your Image
CloseTable();
echo "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"700\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";

CloseTable();
include("footer.php");
die;
?>


When I call this module instedt of showing index.html in iframe it shows frontpage of the site there (index.php for nuke).

The only things that I could to do was changing index.html to index2.html to get this work. But I have about 400 other html file which is linking to index.html. Do I have to change the links for theme or is there any way to solve this problem easier??

Best Regards
 
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Mon Sep 12, 2005 10:04 pm Reply with quote

I don't get it. Is that the code that exists in a module's index.php file?

If so, dump all of that and simply create a GoogleTap rule that says in your .htaccess
mybooks.html module.php?name=mybooks&file=index.php

Then do the in and out rules that go with it for specific pages in your header.php (or GoogleTap folder, depending on what version of GoogleTap you are using).

Remember, if your domain is going to see dynamic pages, they can't be named the same thing and in this case, it won't show a sub-directory structure, but rather will exist as a root link (in this example as http://www.yourdomain.com/mybooks.html)

Hope this helps.
Steph

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
izone







PostPosted: Tue Sep 13, 2005 3:22 am Reply with quote

64bitguy, thank you very much. I knew that somebody will give me a hand on this.

Yes this is all the codes in index.php for this module. It shows a html doc. in iframe. And yes I am using google tap "header.php ver."

I'll give it a try and comeback if the problem still is there Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©