Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
dean
Worker
Worker


Joined: Apr 14, 2004
Posts: 193

PostPosted: Thu Jul 14, 2005 11:56 am Reply with quote

Would you please post the completed tap and htaccess entries here?
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Thu Jul 14, 2005 12:05 pm Reply with quote

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.
 
View user's profile Send private message
grantb
Regular
Regular


Joined: Feb 16, 2005
Posts: 67
Location: Canada

PostPosted: Thu Jul 14, 2005 12:07 pm Reply with quote

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 "."

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1159
Location: Sanbornton, NH USA

PostPosted: Thu Jul 14, 2005 12:09 pm Reply with quote

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.

_________________
Steph Benoit Only registered users can see links on this board! Get registered or login!
1CMS, 100% Section 508 and W3C XHTML/CSS Compliant (Truly) 
View user's profile Send private message Visit poster's website
Raven
PostPosted: Thu Jul 14, 2005 12:13 pm Reply with quote

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&amp;page=([[:alnum:]-]*)\.html'",
"'(?<!/)modules.php\?name=PHP-Nuke_HOWTO'",
"'(?<!/)modules.php\?name=CPanel_User_Guide&amp;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
PostPosted: Thu Jul 14, 2005 12:19 pm Reply with quote

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
PostPosted: Thu Jul 14, 2005 12:22 pm Reply with quote

I haven't added that code yet - sorry
 
grantb
PostPosted: Thu Jul 14, 2005 12:28 pm Reply with quote

Now for the php-manual and the pear manual.. LOL I think now I might be able to figure it out on my own Wink 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
PostPosted: Thu Jul 14, 2005 12:44 pm Reply with quote

Okay, try this
Code:
"'(?<!/)modules.php\?name=PHP-Nuke_HOWTO&amp;page=([[:alnum:]-\.]*)\.html'",

"'(?<!/)modules.php\?name=PHP-Nuke_HOWTO'",
"'(?<!/)modules.php\?name=CPanel_User_Guide&amp;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
PostPosted: Thu Jul 14, 2005 12:51 pm Reply with quote

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
PostPosted: Thu Jul 14, 2005 1:10 pm Reply with quote

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. Smile Now for the Pear Manual.. Rolling Eyes
 
grantb
PostPosted: Thu Jul 14, 2005 1:16 pm Reply with quote

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 Only registered users can see links on this board! Get registered or login! Let me know if you would like me to change the descriptions. Smile Anyone up for making a Apache manual for nuke?.. heheh
 
64bitguy
PostPosted: Thu Jul 14, 2005 1:52 pm Reply with quote

Hey Thanks.... Glad I could help, though I think raven did more. Smile

If you want, you can use my signature or my standard banner:

Signature file: Only registered users can see links on this board! Get registered or login!

Standard 468 Banner used by referers Only registered users can see links on this board! Get registered or login!

as my theme center is pretty crappy... (In fact I think I'm going to dump this theme soon anyway.)
 
Raven
PostPosted: Thu Jul 14, 2005 1:55 pm Reply with quote

Thanks for the link back. Glad I could help!
 
grantb
PostPosted: Thu Jul 14, 2005 2:01 pm Reply with quote

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..
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

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 ©