Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
ANTH
Newbie
Newbie



Joined: Mar 20, 2007
Posts: 3

PostPosted: Tue Apr 17, 2007 9:35 am Reply with quote

Ht lines

Code:
#Tutoriaux
RewriteRule ^tutoriaux-(enprepa|informations).html modules.php?name=Tutoriaux&rop=$1 [L]
RewriteRule ^tutoriaux-t([0-9]+).html modules.php?name=Tutoriaux&rop=tutoriaux_sousrub&tid=$1 [L]
RewriteRule ^tutoriaux-d([0-9]+).html modules.php?name=Tutoriaux&rop=tutoriaux&did=$1 [L]
RewriteRule ^tutoriaux-print-([0-9]+).html modules.php?name=Tutoriaux&file=print&did=$1 [L]
RewriteRule ^tutoriaux.html modules.php?name=Tutoriaux [L]


GT-Tutoriaux.php

Code:
<?php

$urlin = array(
"'(?<!/)modules.php\?name=Tutoriaux&amp;rop=(enprepa|informations)'",
"'(?<!/)modules.php\?name=Tutoriaux&amp;rop=tutoriaux_sousrub&amp;tid=([0-9]+)'",
"'(?<!/)modules.php\?name=Tutoriaux&amp;rop=tutoriaux&amp;did=([0-9]+)'",
"'(?<!/)modules.php\?name=Tutoriaux&amp;file=print&amp;did=([0-9]+)'",
"'(\"|\')modules.php\?name=Tutoriaux\\1'",
"'(?<!/)modules.php\?name=Your_Account&amp;op=userinfo&amp;username=([a-zA-Z0-9_-]*)'"
);

$urlout = array(
"tutoriaux-\\1.html",
"tutoriaux-t\\1.html",
"tutoriaux-d\\1.html",
"tutoriaux-print-\\1.html",
"\\1tutoriaux.html\\1",
"userinfo-\\1.html"
);

?>
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Apr 18, 2007 7:41 am Reply with quote

Thanks!

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Delectable
Newbie
Newbie



Joined: Jun 27, 2007
Posts: 2

PostPosted: Wed Aug 29, 2007 8:33 am Reply with quote

There are still some taps missing here.
I have the complete tap here.
http://www.deltamax.nl/downloads-cat15.html

Greet Delectable Wink
 
View user's profile Send private message
Susann
Newbie
Newbie



Joined: Jan 04, 2007
Posts: 61
Location: Germany

PostPosted: Tue Mar 18, 2008 4:31 pm Reply with quote

Thanks, I tried your download but it seems its also incomplete.
Write a comment isn´t a short url and within my navigation block its also not shorten to tutorials.html permanently. Somewhere I know this error from the old GT. So what should go in the GTZ page.php to get rid of this error ?
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Mar 18, 2008 10:04 pm Reply with quote

Actually, you have to add a line to your modules block tap. For example, the base block module is GTB-block-Modules.php from *nuke. That is where you add the one line for tutorials.html.

This is assuming you are using ShortLinks or my GTNG Blocks Hack.

Regarding the "write a comment", I do not run Tutoriax on any of my sites, so would need Delectable to respond to that one I think unless you can post the link here.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Susann
Newbie
Newbie



Joined: Jan 04, 2007
Posts: 61
Location: Germany

PostPosted: Wed Mar 19, 2008 9:57 am Reply with quote

Indeed I forgot the GTB-block-Modules.php completely and there is nothing about in the readme file.
So I added in $urlout = array(
'tutorials.html',
);

and a new line in .htaccess:
RewriteRule ^tutoriaux.html modules.php?name=Tutoriaux [L]

but maybe its not required because it worked before without this line.

Montego don´t laugh but the question I still think about what should I add into urlin in GTB-block-Modules.php ?

The comments issue isn´t urgent. I can wait.
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Mar 20, 2008 9:18 pm Reply with quote

Susann,

Just adding that one row in the $urlout array definition without a corresponding one in the exact same position for the $urlin will cause issues. Within the $urlin array definition for GTB-block-Modules.php, it would look like the others but have

Tutoriaux

for the name= part.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Susann
Newbie
Newbie



Joined: Jan 04, 2007
Posts: 61
Location: Germany

PostPosted: Mon Mar 24, 2008 7:26 pm Reply with quote

Took a while but I think I changed it correctly cause it works.
I also removed this:

Quote:
urlout = array(
'tutorials.html',
);

and a new line in .htaccess:
RewriteRule ^tutoriaux.html modules.php?name=Tutoriaux [L]
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Mar 24, 2008 7:36 pm Reply with quote

Let me ask you this, if you have removed the tap for Tutoriaux from GTB-block-Modules.php, do you see it tapped properly when you are in some other module, such as Forums? If so, then you must have it included within GTZ-PageTap.php, unless I am missing something.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Susann
Newbie
Newbie



Joined: Jan 04, 2007
Posts: 61
Location: Germany

PostPosted: Mon Mar 24, 2008 7:48 pm Reply with quote

I removed my old entires within the GTB-block-Modules.php and use instead just:

for urlin :

"'(\"|\')modules.php\?name=Tutoriaux\\1'",

urlout:
"\\1tutorials.html\\1",
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Mar 24, 2008 10:04 pm Reply with quote

Oh, I see. I misunderstood your post. You do still have the taps in GTB-block-Modules.php. That is good.

Thank you for clarifying for me.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunchlinear-bunch