Giveaways Pro Google Tap Issue

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Giveaways Pro Google Tap Issue
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Having some trouble tapping the pagejumper for giveaways pro

Here is my line in GT-Giveaways.php

'"(?<!/)modules.php\?name=Giveaways&amp;op=entered&amp;id_prize=([0-9]*)&amp;page=([0-9]*)"',

'lottery\\1-p\\2.html',


.htaccess
RewriteRule ^lottery([0-9]*)-p([0-9]*).html modules.php?name=Giveaways&op=entered&id_prize=$1&page=$2 [L]


I don't have the whole thing tapped yet, since I really can't seem to get past that part.

Anyway it gives me this url.

lottery8.html&page=1

So am I after the wrong url?


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Whats the $urlout look like for this rewrite rule?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Giveaways Pro Google Tap Issue
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
It was the second line provided

'lottery\\1-p\\2.html',



Back to top Reply with quote
#4   re: Giveaways Pro Google Tap Issue
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Here is all my info so far

Yeah its a mess too.

GT-Giveaways.php

$urlin = array(
'"(?<!/)modules.php\?name=Your_Account"',
'"(?<!/)modules.php\?name=Giveaways&amp;op=entered&amp;id_prize=([0-9]*)"',
'"(?<!/)modules.php\?name=Giveaways&amp;op=claim_prize&amp;id_prize=([0-9]*)&amp;uid=([0-9]*)"',
'"(?<!/)modules.php\?name=Giveaways&amp;op=entered&amp;id_prize=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=[a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Giveaways"'
);

$urlout = array(
'account.html',
'lottery\\1.html',
'lottery-iduser-\\1-\\2.html',
'lottery\\1-p\\2.html',
'forum-userprofile-\\1.html',
'lottery.html'
);


.htaccess

#Giveaways
RewriteRule ^lottery.html modules.php?name=Giveaways [L]
RewriteRule ^lottery([0-9]*).html modules.php?name=Giveaways&op=entered&id_prize=$1 [L]
RewriteRule ^lottery-iduser-([0-9]*)-([0-9]*).html modules.php?name=Giveaways&op=claim_prize&id_prize=$1&uid=$2 [L]
RewriteRule ^lottery([0-9]*)-p([0-9]*).html modules.php?name=Giveaways&op=entered&id_prize=$1&page=$2 [L]



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Change the GT-Giveaways.php so the longest rewrite rules are on top see if that helps.

Also make sure the urlin and urlout match.





_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: Giveaways Pro Google Tap Issue
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Right on man! glad you had some free time to answer that. Your time is always appreciated.

I have yet to figure out why order makes a difference.

$urlin = array(
'"(?<!/)modules.php\?name=Giveaways&amp;op=claim_prize&amp;id_prize=([0-9]*)&amp;uid=([0-9]*)"',
'"(?<!/)modules.php\?name=Giveaways&amp;op=entered&amp;id_prize=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=[a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Giveaways&amp;op=entered&amp;id_prize=([0-9]*)"',
'"(?<!/)modules.php\?name=Your_Account"',
'"(?<!/)modules.php\?name=Giveaways"'
);

$urlout = array(
'lottery-iduser-\\1-\\2.html',
'lottery-\\1-p\\2.html',
'forum-userprofile-\\1.html',
'lottery-\\1.html',
'account.html',
'lottery.html'
);


#Giveaways
RewriteRule ^lottery-([0-9]*).html modules.php?name=Giveaways&op=entered&id_prize=$1 [L]
RewriteRule ^lottery-iduser-([0-9]*)-([0-9]*).html modules.php?name=Giveaways&op=claim_prize&id_prize=$1&uid=$2 [L]
RewriteRule ^lottery-([0-9]*)-p([0-9]*).html modules.php?name=Giveaways&op=entered&id_prize=$1&page=$2 [L]
RewriteRule ^lottery.html modules.php?name=Giveaways [L]


The only change I made in .htacces was moved lottery.html to the bottom.


Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
The function used to to rewrite the links:


preg_replace($urlin, $urlout, $s);


Looks in your document for the link to replace if it finds the shorter one first then it will replace it. Then when the longer links comes up there not found becuase you have already replace the begining of the link with the shorter url.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum