| Author |
Message |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 92
|
Posted:
Sat Nov 25, 2006 11:31 am |
|
I have been struggling with this for this for a few days and I know I have less hair because of it.
Excuse my messy style!
The Problem
The pagejumper link does not seem to work I keep getting these results on mouseover.
| Code: |
| shop-viewproduct-page-6--4&show=4-.html |
Here is GT-SimpleCart.php
| Code: |
$urlin = array(
'"(?<!/)modules.php\?name=SimpleCart&p_op=viewproduct&cid=([0-9]*)&min=([0-9)*)&show=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&p_op=search&query=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&p_op=viewproduct&cid=([0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&p_op=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=Reviews&rop=write_review"',
'"(?<!/)modules.php\?name=Reviews"',
'"(?<!/)modules.php\?name=SimpleCart"'
);
$urlout = array(
'shop-viewproduct-page-\\1--\\2-\\3.html',
'shop-search-\\1.html',
'shop-viewproduct-cat-\\1.html',
'shop-\\1.html',
'reviews-new.html',
'reviews.html',
'shop.html'
); |
.htaccess
| Code: |
#SimpleCart
RewriteRule ^shop-viewproduct-page-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=SimpleCart&p_op=viewproduct&cid=$1&min=$2&show=$3 [L]
RewriteRule ^shop-search-([a-zA-Z0-9]*).html modules.php?name=SimpleCart&p_op=search&query=$1 [L]
RewriteRule ^shop-viewproduct-cat-([0-9]*).html modules.php?name=SimpleCart&p_op=viewproduct&cid=$1 [L]
RewriteRule ^shop-([a-zA-Z]*).html modules.php?name=SimpleCart&p_op=$1 [L]
RewriteRule ^shop.html modules.php?name=SimpleCart [L] |
Here is the link in index.php that needs to be tapped.
| Code: |
modules.php?name=$module_name&p_op=viewproduct&cid=$cid&min=$prev&show=$show
modules.php?name=$module_name&p_op=viewproduct&cid=$cid&min=$mintemp&show=$show
modules.php?name=$module_name&p_op=viewproduct&cid=$cid&min=$max&show=$show |
I have also attached the index.php in a zip file.
http://www.t3gamingcommunity.com/index.zip |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Nov 25, 2006 1:01 pm |
|
Looks like you might need to change this:
min=([0-9)*)
to
min=([0-9]*)
I have a feeling that is causing this but not 100% certain. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 92
|
Posted:
Sat Nov 25, 2006 1:28 pm |
|
I will just tuck my tale and wander away now! Here is the complete tap of SimpleCart.
.htaccess
| Code: |
#SimpleCart
RewriteRule ^shop-viewproduct-page-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=SimpleCart&p_op=viewproduct&cid=$1&min=$2&show=$3 [L]
RewriteRule ^shop-search-([a-zA-Z0-9]*).html modules.php?name=SimpleCart&p_op=search&query=$1 [L]
RewriteRule ^shop-viewproduct-cat-([0-9]*).html modules.php?name=SimpleCart&p_op=viewproduct&cid=$1 [L]
RewriteRule ^shop-([a-zA-Z]*).html modules.php?name=SimpleCart&p_op=$1 [L]
RewriteRule ^shop.html modules.php?name=SimpleCart [L] |
GT-SimpleCart.php
| Code: |
$urlin = array(
'"(?<!/)modules.php\?name=SimpleCart&p_op=viewproduct&cid=([0-9]*)&min=([0-9]*)&show=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&p_op=search&query=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&p_op=viewproduct&cid=([0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&p_op=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=Reviews&rop=write_review"',
'"(?<!/)modules.php\?name=Reviews"',
'"(?<!/)modules.php\?name=SimpleCart"'
);
$urlout = array(
'shop-viewproduct-page-\\1-\\2-\\3.html',
'shop-search-\\1.html',
'shop-viewproduct-cat-\\1.html',
'shop-\\1.html',
'reviews-new.html',
'reviews.html',
'shop.html'
); |
Thank you kind sir! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Nov 25, 2006 11:12 pm |
|
floppy,
I cannot tell you how many times I have looked at something a hundred times from Sunday and not seen something simple like this. That is definitely when a second pair of eyes can help.
Thanks for the "Tap"! Great work! |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|