Support this web site by purchasing from one of our Amazon affiliate stores:
Canada | France | Germany | Japan | United Kingdom | United States

Absolute Freebies Forums
Cursing is forbidden.
Posting of affiliate codes by Newbies is forbidden.
Body modification of housepets is forbidden (except for Bonsai Kittens).
 
 FAQFAQ   SearchSearch   MemberlistMemberlist       UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Some nitty gritty stuff
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Absolute Freebies Forums Forum Index -> APF - Amazon Products Feed Support
View previous topic :: View next topic  
Author Message
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Mon Jul 27, 2009 8:43 am    Post subject: Some nitty gritty stuff Reply with quote

i think we must have a separate thread that contains some of the changes or improvements that amazon made.

since Chris worked on the older version from MrRat and MrRat did not change the default TotalPages number, the user can do this manually:

open the apf_main.pm file and go to line 409.
change it from

Code:
if ($AWS_variables{TotalPages} > 250)


to read

Code:
if ($AWS_variables{TotalPages} > 400)


... more to follow probably ...
_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Mon Jul 27, 2009 8:47 am    Post subject: Dean's attempt at conditional content. Reply with quote

i still have this code that came from Dean some long long time ago. it resides below line 1397 of the new apf_main.pm file:

Code:
## ===  Dean's attempt at conditional content. ===
      $temp_result =~ s/(\[\[(\w+)\]\]([^\[\]]*)\[\[\/\2\]\])/
      my $captured_text = $1;
      my $testvar = $2;
      my $conditional_contents = $3;
      my $res;
      #   this didn't work  : if (exists $AWS_variables{$testvar} || exists $MY_variables{$testvar} || exists $language_text{$testvar}){
      if ($AWS_variables{$testvar} || $MY_variables{$testvar} || $language_text{$testvar}){
         $res = $conditional_contents;
      } else {
         $res = "";
      }
      $res;/ge;
      ## ===  End of Dean's attempt at conditional content

_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Mon Jul 27, 2009 8:54 am    Post subject: manufacturer Reply with quote

there was a string replace recommended a short while ago on the manufacturer issue related to line 601 of the apf_main.pm script under sub my_artists. MrRat recommended the following string replacements:

Code:
#(my $search_manufacturer_string = $AWS_variables{Manufacturer}) =~ s/ /+/g;
#(my $search_manufacturer_string = $AWS_variables{Manufacturer}) =~ s/\./ /g;
(my $search_manufacturer_string = $AWS_variables{Manufacturer}) =~ s/\./\%2E/g;


(the first line is the original, the second line was MrRat's first recommendation, the third line was his further recommendation which i now use). ...
_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Mon Jul 27, 2009 8:59 am    Post subject: the euro sign Reply with quote

for those who prefer to use the Euro sign instead of EUR next to the prices for germy and france:

change lines 174 & 178 of the apf4.cgi script from

Code:
$Internal_variables{money_symbol} = "EUR ";


to

Code:
$Internal_variables{money_symbol} = "& #128; ";

(without the space between & and #)

also above line 644 of the apf4.cgi script add:

Code:
$xml_result =~ s/EUR(\s|\d)/& #128;$1/g;

(without the space between & and #)

prices then look like this:
http://www.downintheflood.com/apf4-labbs/apf4/index.pl?locale=de&Operation=ItemSearch&Keywords=europa&SearchIndex=Books

...
_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Mon Jul 27, 2009 9:39 am    Post subject: alignment Reply with quote

a small beauty correction, in the page.template add valign="top" to the td element just before %%products_html%%. if for instance your shopping cart is empty and you got this menu on the left side, you won't see the message 'cart is empty' unless you scroll down. Smile ...
_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BlackRain
Cheese Wheel
Cheese Wheel


Joined: 22 Nov 2003
Posts: 92
Location: Bikini Bottom

PostPosted: Mon Jul 27, 2009 7:16 pm    Post subject: Reply with quote

Thanks for the bits. I was saddened to see the AFPmods site disappear that had a lot of great modifications.
_________________
Lingerie
Back to top
View user's profile Send private message
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Tue Jul 28, 2009 3:50 am    Post subject: mods Reply with quote

you want those mods? i must have quite a few of those somewhere, question is, will they still work.
_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BlackRain
Cheese Wheel
Cheese Wheel


Joined: 22 Nov 2003
Posts: 92
Location: Bikini Bottom

PostPosted: Tue Jul 28, 2009 7:25 am    Post subject: Reply with quote

I am sure the 'mods' could be modded to work, which ones do you have?
_________________
Lingerie
Back to top
View user's profile Send private message
TomPaine
Patron of all things Cheesy
Patron of all things Cheesy


Joined: 22 Jun 2003
Posts: 2616
Location: Germany

PostPosted: Tue Jul 28, 2009 12:03 pm    Post subject: mods Reply with quote

which ones do i have? i was just wondering if i didn't store them somewhere on a backup disc that i might have to find. but here's the list:

alphadvd.mod
creator.mod
Creator.txt
digitalcameras.mod
include_locale.mod
include_searchindex.mod
music_boxsets.mod
uk_computer.mod
uk_photo.mod

of course: marketplace.mod

compatibility.mod
harrypotter.mod

custom_header.mod

international.mod
template_addin.mod
pricecompare.mod

they're all over the show at my site ... with every new version mods mods mods ... you want me to zip'em up?
_________________
Affiliate Program - Tom Paine - my BlogSpot
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BlackRain
Cheese Wheel
Cheese Wheel


Joined: 22 Nov 2003
Posts: 92
Location: Bikini Bottom

PostPosted: Tue Jul 28, 2009 12:19 pm    Post subject: Reply with quote

What does that 'creator' mod do again? I can't remember.
_________________
Lingerie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Absolute Freebies Forums Forum Index -> APF - Amazon Products Feed Support All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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


Powered by phpBB © 2001, 2005 phpBB Group


Home | Freebies | Freeware | Gaming | Forum | CGI Scripts | Site Search