| Author |
Message |
ANTH
Newbie


Joined: Mar 20, 2007
Posts: 3
|
Posted:
Tue Apr 17, 2007 9:35 am |
|
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&rop=(enprepa|informations)'",
"'(?<!/)modules.php\?name=Tutoriaux&rop=tutoriaux_sousrub&tid=([0-9]+)'",
"'(?<!/)modules.php\?name=Tutoriaux&rop=tutoriaux&did=([0-9]+)'",
"'(?<!/)modules.php\?name=Tutoriaux&file=print&did=([0-9]+)'",
"'(\"|\')modules.php\?name=Tutoriaux\\1'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&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"
);
?> |
|
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 926
|
Posted:
Wed Apr 18, 2007 7:41 am |
|
Thanks! |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Delectable
Newbie


Joined: Jun 27, 2007
Posts: 2
|
Posted:
Wed Aug 29, 2007 8:33 am |
|
|
|
 |
Susann
Newbie


Joined: Jan 04, 2007
Posts: 55
Location: Cyberworld
|
Posted:
Tue Mar 18, 2008 4:31 pm |
|
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 ? |
_________________ My Playzone |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 926
|
Posted:
Tue Mar 18, 2008 10:04 pm |
|
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 |
|
|
 |
Susann
Newbie


Joined: Jan 04, 2007
Posts: 55
Location: Cyberworld
|
Posted:
Wed Mar 19, 2008 9:57 am |
|
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. |
_________________ My Playzone |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 926
|
Posted:
Thu Mar 20, 2008 9:18 pm |
|
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 |
|
|
 |
Susann
Newbie


Joined: Jan 04, 2007
Posts: 55
Location: Cyberworld
|
Posted:
Mon Mar 24, 2008 7:26 pm |
|
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] |
|
_________________ My Playzone |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 926
|
Posted:
Mon Mar 24, 2008 7:36 pm |
|
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 |
|
|
 |
Susann
Newbie


Joined: Jan 04, 2007
Posts: 55
Location: Cyberworld
|
Posted:
Mon Mar 24, 2008 7:48 pm |
|
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", |
_________________ My Playzone |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 926
|
Posted:
Mon Mar 24, 2008 10:04 pm |
|
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 |
|
|
 |
|
|