Montego Scripts: Forums
 

 

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



Joined: Sep 11, 2006
Posts: 92

PostPosted: Sat Nov 25, 2006 11:31 am Reply with quote

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&amp;p_op=viewproduct&amp;cid=([0-9]*)&amp;min=([0-9)*)&amp;show=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&amp;p_op=search&amp;query=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&amp;p_op=viewproduct&amp;cid=([0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&amp;p_op=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=Reviews&amp;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&amp;p_op=viewproduct&amp;cid=$cid&amp;min=$prev&amp;show=$show
modules.php?name=$module_name&amp;p_op=viewproduct&amp;cid=$cid&amp;min=$mintemp&amp;show=$show
modules.php?name=$module_name&amp;p_op=viewproduct&amp;cid=$cid&amp;min=$max&amp;show=$show


I have also attached the index.php in a zip file.
http://www.t3gamingcommunity.com/index.zip
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Nov 25, 2006 1:01 pm Reply with quote

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 
View user's profile Send private message Visit poster's website
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Sat Nov 25, 2006 1:28 pm Reply with quote

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&amp;p_op=viewproduct&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;show=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&amp;p_op=search&amp;query=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&amp;p_op=viewproduct&amp;cid=([0-9]*)"',
'"(?<!/)modules.php\?name=SimpleCart&amp;p_op=([a-zA-Z0-9]*)"',
'"(?<!/)modules.php\?name=Reviews&amp;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!
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Nov 25, 2006 11:12 pm Reply with quote

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