You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - once again google-tap 0.60 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Sun Feb 23, 2003 2:22 pm Reply with quoteBack to top

Hi there,

in the past I tried this hack on one of my sites, but it didn't worked because my hoster did not allow "AllowOverride" in httpd.conf.
Now, with my new site http://www.nukescripts.de/ the hoster installed PHP 4.3.0, mod-rewrite and activated "AllowOverride". The .htaccess works fine. You can see it here: http://www.nukescripts.de/reviews.html .

But the links on the pages are not converted from .php to .html. I made all changes to the header.php and footer.php, but no chance.

What is going on there? On my site, where "AllowOverride" is not activated, this works. But on that one, that allows that, it doesn't.
Do you have an idea?

Christian

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Feb 23, 2003 3:06 pm Reply with quoteBack to top

I might like to point out that Google's not as anti-php as you might think,

A hell of a lot of the referers for my site have picked up on the Idiots Guide module for some strange reason, and the referer was Google search results on that idiots guide - directly on that idiots guide.

ArtificialINtel
Find all posts by ArtificialIntelView user's profileSend private message
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Sun Feb 23, 2003 3:21 pm Reply with quoteBack to top

Thanks for your answer.
But this was already clear to me. Google indexes all php-pages, but not that good as html-pages. You can believe me, I know several sites, which were listed much better after applying the mod-rewrite changes.

But I wonder why the links are not converted?

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Feb 23, 2003 5:15 pm Reply with quoteBack to top

Hi Christian and welcome. I tried the reviews.html link and got this:

Sorry, dieses Modul ist nicht aktiv!

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Sun Feb 23, 2003 5:22 pm Reply with quoteBack to top

Hi,

this means: "This module isn't active".
But it shows that the mod-rewrite works. You saw the page nukescripts.de/modules.php?name=Reviews by typing reviews.html in your browser.
So the problem is just, why does the script in the header.php and footer.php not change the links?

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Feb 23, 2003 5:37 pm Reply with quoteBack to top

Yes I know its translation. Wink

Ok, now I understand the problem... PHP-Nuke likes to intermingle the use of "&" and "&" in its URL creations. Take a look at the header.php for the reviews matches to see what is being used. Then you can either change it there, or change it directly in your reviews module index.php file.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Mon Feb 24, 2003 6:09 am Reply with quoteBack to top

I already thought of that. But that seems not to be the problem. Now I used both "& amp;" and "&", but nothing. If it may be useful for you, I am using this code in the header.php for testing:
Code:
ob_start();

function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=gallery'",
"'(?<!/)modules.php\?op=modload&name=gallery&file=index&include=albums.php'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_]*)&id=([a-zA-Z0-9_]*)&op=modload&name=gallery&file=index&include=view_photo.php([&=a-zA-Z0-9_]*)'",

// and so on...

"'(?<!/)modules.php\?name=Forums'",
"'(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)'",
"'(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&uname=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&uname=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=logout'",
"'(?<!/)modules.php\?name=Your_Account&op=logout'"
);

$urlout = array(
"article\\1.html",
"article\\1.html",
"gallery.html",
"gallery.html",
"gallery-\\1-\\2.html",
"gallery-\\1-\\2-fullsized.html",
"gallery-\\1-page\\2.html",
"gallery-\\1.html",
"archive-\\1-\\2-\\3.html",
"archive.html",
"chat.html",

// and so on...

"faq.html",
"faq-\\1-\\2.html",
"forums-cat-\\1-\\2.html",
"forums-cat-\\1-\\2.html",
"forumsid-\\1.html",
"forums.html",
"contentid-\\1.html",
"content-cat-\\1.html",
"userinfo-\\1.html",
"userinfo-\\1.html",
"logout.html",
"logout.html"
);

$s = preg_replace($urlin, $urlout, $s);
return $s;
}

require_once("mainfile.php");

I made the code a little bit shorter. Wink

And this one in the footer.php:
Code:
foot();

$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
global $dbg_starttime;

?>

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Mon Feb 24, 2003 6:50 am Reply with quoteBack to top

On my site I have the NSN-Navbar (JavaScript), that all NSN sites have. Could this cause the problem?
I also can't get htmlarea (WYSIWYG-Editor) working.

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 24, 2003 10:05 am Reply with quoteBack to top

Let me do some testing on this end.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Mon Feb 24, 2003 11:15 am Reply with quoteBack to top

Do you need my files?

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 24, 2003 11:27 am Reply with quoteBack to top

Yeah that would help.. header, footer, and htaccess in a tarball please.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Mon Feb 24, 2003 12:00 pm Reply with quoteBack to top

Okay. Mail is sent. But it is a zip-file. I hope that is okay for you. I don't have a tool to create tar-files.

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 24, 2003 12:22 pm Reply with quoteBack to top

In that case since its only three files, can you upload them to the site here?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Mon Feb 24, 2003 12:31 pm Reply with quoteBack to top

I don't know how to upload them here, so I sent them unzipped to you now.

_________________
Christian Einig
NukeScripts Network Germany
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 24, 2003 1:10 pm Reply with quoteBack to top

Just use the Uploads module in the top nav bar.

Also, can you run thru the reviews module at computercops.biz? As you see its working there.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.287 Seconds - 367 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::