| Author |
Message |
dean Worker


Joined: Apr 14, 2004 Posts: 193
|
Posted:
Thu Jul 14, 2005 11:56 am |
|
Would you please post the completed tap and htaccess entries here? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Jul 14, 2005 12:05 pm |
|
I modified my .htaccess to this | Code: | | RewriteRule ^nukemanual-([[:alnum:]_-]*).html modules.php?name= PHP-Nuke_HOWTO&page=$1\.html [L] |
cPanel works just fine. |
|
|
|
 |
grantb Regular


Joined: Feb 16, 2005 Posts: 67 Location: Canada
|
Posted:
Thu Jul 14, 2005 12:07 pm |
|
I had to change the three url's with the extra periods in them to be "_" in the book1.html, index.php, and renamed the files to use the "_" instead of "." |
|
|
|
 |
64bitguy The Mouse Is Extension Of Arm

Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
|
Posted:
Thu Jul 14, 2005 12:09 pm |
|
Does anybody know if this thing is even getting worked on?
I've found a huge number of issues in this thing and that's why I don't have it on my domain. I realize that it makes a decent reference, but being so outdated, one must wonder if anyone is actually updating the thing. Is Chris or anyone else evolving it? I think February 2004 is pretty outdated in my mind anyway. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Jul 14, 2005 12:13 pm |
|
I did not modify anything in the books, afaik. Here is what I am now using | Code: | $urlin = array(
"'(?<!/)modules.php\?name=PHP-Nuke_HOWTO&page=([[:alnum:]-]*)\.html'",
"'(?<!/)modules.php\?name=PHP-Nuke_HOWTO'",
"'(?<!/)modules.php\?name=CPanel_User_Guide&page=([[:alnum:]]*)\.htm'",
"'(?<!/)modules.php\?name=CPanel_User_Guide'"
);
$urlout = array(
"nukemanual-\\1.html",
"nukemanual.html",
"cpaneluserguide-\\1.html",
"cpaneluserguide.html"
);
.htaccess
#NukeManual User Guide
RewriteRule ^nukemanual-([[:alnum:]_-]*).html modules.php?name= PHP-Nuke_HOWTO&page=$1\.html [L]
RewriteRule ^nukemanual.html modules.php?name= PHP-Nuke_HOWTO [L]
#cPanel User Guide
RewriteRule ^cpaneluserguide-([[:alnum:]_-]*).html modules.php?name= CPanel_User_Guide&page=$1\.htm [L]
RewriteRule ^cpaneluserguide.html modules.php?name= CPanel_User_Guide [L] |
|
|
|
|
 |
64bitguy The Mouse Is Extension Of Arm

Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
|
Posted:
Thu Jul 14, 2005 12:19 pm |
|
Yeah, but your credits-versions pages aren't working raven. Look for the ones with the extra periods in them, none of those are working. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Jul 14, 2005 12:22 pm |
|
I haven't added that code yet - sorry |
|
|
|
 |
grantb Regular


Joined: Feb 16, 2005 Posts: 67 Location: Canada
|
Posted:
Thu Jul 14, 2005 12:28 pm |
|
Now for the php-manual and the pear manual.. LOL I think now I might be able to figure it out on my own I'll post the code if I get it working. I noticed that these two manuals have alot more "." in them so this could be interesting.. Any one know how to incorporate the "." into the rewrite? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Jul 14, 2005 12:44 pm |
|
Okay, try this | Code: | "'(?<!/)modules.php\?name=PHP-Nuke_HOWTO&page=([[:alnum:]-\.]*)\.html'",
"'(?<!/)modules.php\?name=PHP-Nuke_HOWTO'",
"'(?<!/)modules.php\?name=CPanel_User_Guide&page=([[:alnum:]]*)\.htm'",
"'(?<!/)modules.php\?name=CPanel_User_Guide'"
);
$urlout = array(
"nukemanual-\\1.html",
"nukemanual.html",
"cpaneluserguide-\\1.html",
"cpaneluserguide.html"
);
#NukeManual User Guide
RewriteRule ^nukemanual-([[:alnum:]_-]*).html modules.php?name= PHP-Nuke_HOWTO&page=$1\.html [L]
RewriteRule ^nukemanual-([[:alnum:]_-]*).([[:alnum:]_-]*).html modules.php?name= PHP-Nuke_HOWTO&page=$1\.$2\.html [L]
RewriteRule ^nukemanual.html modules.php?name= PHP-Nuke_HOWTO [L]
#cPanel User Guide
RewriteRule ^cpaneluserguide-([[:alnum:]_-]*).html modules.php?name= CPanel_User_Guide&page=$1\.htm [L]
RewriteRule ^cpaneluserguide.html modules.php?name= CPanel_User_Guide [L] |
|
|
|
|
 |
64bitguy The Mouse Is Extension Of Arm

Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
|
Posted:
Thu Jul 14, 2005 12:51 pm |
|
Yup, that should work with the \. after the alnum in there for the older version of GoogleTap.
Grant, If you see periods in there like that in your Cpanel manual, change the Cpanel functions to be the way raven has it coded for the howto guide.
You'll have to do the same thing in your .htaccess |
|
|
|
 |
grantb Regular


Joined: Feb 16, 2005 Posts: 67 Location: Canada
|
Posted:
Thu Jul 14, 2005 1:10 pm |
|
Yep that did it!! I have now tapped the PHP-Manual.. and all url's work. You were right Steph, Raven's code for the periods "." worked great. Now for the Pear Manual..  |
|
|
|
 |
grantb Regular


Joined: Feb 16, 2005 Posts: 67 Location: Canada
|
Posted:
Thu Jul 14, 2005 1:16 pm |
|
Pear Manual tapped the same way as the php-manual and the phpnukehowto. You guys are the best! Oh and here is the page that I added your links to Let me know if you would like me to change the descriptions. Anyone up for making a Apache manual for nuke?.. heheh |
|
|
|
 |
64bitguy The Mouse Is Extension Of Arm

Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
|
Posted:
Thu Jul 14, 2005 1:52 pm |
|
Hey Thanks.... Glad I could help, though I think raven did more.
If you want, you can use my signature or my standard banner:
Signature file:
Standard 468 Banner used by referers
as my theme center is pretty crappy... (In fact I think I'm going to dump this theme soon anyway.) |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Jul 14, 2005 1:55 pm |
|
Thanks for the link back. Glad I could help! |
|
|
|
 |
grantb Regular


Joined: Feb 16, 2005 Posts: 67 Location: Canada
|
Posted:
Thu Jul 14, 2005 2:01 pm |
|
For some reason the sig file didn't work.. probly the module I am using for links, but used the referers banner you posted. Anyone needs the code for any of the manuals, let me know or post on my forums in the phpnuke section. I am looking at the Apache manual next, but looks like it could be quite the job to make into a module.. |
|
|
|
 |
|
|
|
|