PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
persona_non_grata



Joined:
Posts: 0

PostPosted: Mon Jun 12, 2006 3:37 pm Reply with quote Back to top

ok, this is weird..
php manual is more or less build the same as phpnuke howto and cpanel userguide and i tried to use the same lines with php-manual but non of them works..

any working version around..please post it here if possible..


Last edited by persona_non_grata on Wed Jun 14, 2006 12:46 pm; edited 1 time in total
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 6:41 am Reply with quote Back to top

Which version of GT are you using? The original GoogleTap? GTNG 0.4beta? GTNG 0.4a beta?

The issue is most likely NOT the rewrite rules, but more likely how header.php and footer.php is called in this module. I had the same issues tapping the Journal (yeah, I know, who would want to do that! LOL).

If header.php and/or footer.php is called within a function, one or more of the variables needed (for footer.php most likely) is not being found. You may have to declare it in the global statement within the function.
View user's profile Send private message Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Tue Jun 13, 2006 6:44 am Reply with quote Back to top

im using gt nextgen o4,not the update after that..wasnt that 0.4a?
anyway...
the php-manual is build exactly the same as mentioned above..
but then it produces urls like php-manual.html&page=install.windows.html
and whatever link you click,it sits right there on the index but nothing happens...
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 7:00 am Reply with quote Back to top

Ok, I see. More details always brings out the true issues... Wink

Lets work on ONE of these to start with. Please post both the original un-tapped link here as well as your urlin/out rules and let me take a look.
View user's profile Send private message Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Tue Jun 13, 2006 7:06 am Reply with quote Back to top

well original address would be :
modules.php?name= PHP_Manual


GT-PHP_Manual.php

$urlin = array(
"'(?<!/)modules.php\?name=PHP_Manual&page=([a-zA-Z0-9_-]*)\.html'",
"'(?<!/)modules.php\?name=PHP_Manual&amp;page=([a-zA-Z0-9_-]*)\.html'",
"'(?<!/)modules.php\?name=PHP_Manual'",
);

$urlout = array(
"php-manual-\\1.html",
"php-manual-\\1.html",
"php-manual.html",
);
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 7:24 am Reply with quote Back to top

Quote:

well original address would be :
modules.php?name= PHP_Manual


Well, that doesn't help much... lol

This isn't really the complete link to a page is it?
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 7:33 am Reply with quote Back to top

persona_non_grata, I removed your reply, not because there was anything wrong with it, but it was cut off and it wasn't what I was after (no fault of yours). I tried to change it so the code bbcode would work, but gave up... Laughing

What I was looking for was for you to "turn off" GT for a minute and post a sample untapped URL. I think I get the structure though based on what you posted.

Have you tried removing the first line in both urlin and urlout? Should only be the last two lines of each... I think...
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 7:35 am Reply with quote Back to top

Just had another thought too... I know what is happening. We need to somehow get the "." to be included in the ([a-zA-Z0-9_-]*). Try these and see if one of these works:

([a-zA-Z0-9_-\.]*) OR

([a-zA-Z0-9_-.]*)
View user's profile Send private message Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Tue Jun 13, 2006 1:43 pm Reply with quote Back to top

no.. Sad
No difference...
i can see its still building up the same url...
and i tried without the forst lines of in and out....
and tried your 2 samples....
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 9:59 pm Reply with quote Back to top

Ok... I am REALLY fishing here.... Try this?

([a-zA-Z0-9_-\\.]*)

Ok, I have to ask you, is the original untapped URL look like this:

modules.php?name= PHP_Manual &page=something.something.html

Obviously without the extra spaces around the PHP_Manual.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Jun 13, 2006 11:40 pm Reply with quote Back to top

You know, you could try to get really "fancy"

([/:\-\'{}()\,\._&amp;a-zA-Z0-9+= ]*)
View user's profile Send private message Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Wed Jun 14, 2006 4:42 am Reply with quote Back to top

in your other reply...

yes without my address its like...

modules.php?name= PHP_Manual&page=getting-started.html
modules.php?name= PHP_Manual&page=language.constants.html
modules.php?name= PHP_Manual&page=language.functions.html
modules.php?name= PHP_Manual&page=security.hiding.html
(without space... Smile
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Wed Jun 14, 2006 4:48 am Reply with quote Back to top

ah....i think your getting close...
the fancy approach now makes the urls like.. php-manual-language.expressions.html

so its getting better...
but it shows page cannot be found...
View user's profile Send private message
grantb
Regular
Regular


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

PostPosted: Wed Jun 14, 2006 11:14 am Reply with quote Back to top

hello Raven and 64bitGuy helped me on this once before. I am using gt next gen 0.4a Maybe this would help, if it posts right Smile

Code:

([[:alnum:]-\.]*)

in htaccess use the format
Code:
RewriteRule ^PHP_Manual-([[:alnum:]_-]*).html modules.php?name= PHP_Manual &page=$1\.html

Goodluck


Last edited by grantb on Wed Jun 14, 2006 11:22 am; edited 1 time in total
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Wed Jun 14, 2006 11:22 am Reply with quote Back to top

thanks...seems like the code you posted is almost gone..
anyway...i did tried it but then my module ends up blank... Sad
View user's profile Send private message
grantb
Regular
Regular


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

PostPosted: Wed Jun 14, 2006 11:23 am Reply with quote Back to top

was just trying to get the urls to post right.. so i shortend it
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Wed Jun 14, 2006 12:12 pm Reply with quote Back to top

well if it works for you then it should for me...can you put up the codes in a text file and show me an address where i can view it?
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Wed Jun 14, 2006 12:45 pm Reply with quote Back to top

ah nevermind grantb....
a comma was missing and didnt saw that..

so yes ...its solved !
im sure you must be glad monty .....
valuable time is saved.....

thank monty and grantb for the help...

ill post the whole stuff again in case someone needs it...


contents of GT-PHP_Manual.php

$urlin = array(
"'(?<!/)modules.php\?name=PHP_Manual&amp;page=([[:alnum:]-\.]*)\.html'",
"'(?<!/)modules.php\?name=PHP_Manual'",
);

$urlout = array(
"PHP_Manual-\\1.html",
"PHP_Manual.html",
);

in your htaccess...

#Php Manual
RewriteRule ^PHP_Manual-([[:alnum:]_-]*).html modules.php?name= PHP_Manual&page=$1\.html [L]
RewriteRule ^PHP_Manual-([[:alnum:]_-]*).([[:alnum:]_-]*).html modules.php?name= PHP_Manual&page=$1\.$2\.html [L]
RewriteRule ^PHP_Manual-([[:alnum:]_-]*).([[:alnum:]_-]*).([[:alnum:]_-]*).html modules.php?name= PHP_Manual&page=$1\.$2\.$3\.html [L]

after checking...lines are published ok...
watch the space between name= and PHP_Manual
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Thu Jun 15, 2006 6:29 am Reply with quote Back to top

Well, now why didn't I think of that? ROTFL Very nice, simple and elegant.

By the way, my sample would have worked too if you would have then updated the .htaccess rewrite rule to match. Sorry. Just figured you knew that.

However, I like this much better!
View user's profile Send private message Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Thu Jun 15, 2006 6:37 am Reply with quote Back to top

well i did made some changes.....
i do recommend that whoever uses it to replace the capitals...
like PHP_Manual.html change to php_manual.html

Google was busy last night looking for a lot of pages starting with php_manual instead of PHP_Manual , so thats what i changed.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum