Fork me on GitHub

pnAmazon and Sinple URLs - Hyphen in Module / URL name issue  Bottom

Go to page [-1] 1 - 2:

  • St.Ego

    CRS is probably right. Most of the issues that I've had with the ShortURLs rewriting has come from the order that the rules are listed in.

    To wit: if you have a more generalized before the specific one(s) you are writing, the first applicable rule found is applied, and the rest no longer recognize the entry. If it is not already, try putting your rule at the top of the stack.


    Very interesting indeed!
    After all the tries and errors, seeing your post, prompted me to think.
    I thought, and I thought, then turned the rules round, back to front, then it worked. It turned out that when I name two URLs the same name, and have them in this order: books category URL above, the second for items, ie Books ASIN at the bottom, that caused confusion somehow. What I did is to reverse the order and all is fine.
    I am still puzzled though!

    PS: this is for Slugger!
    One of the changes I added to pnAmazon is:
    Instead of having to change the name of the module (many people forget), example

    Code

    <form method="post" action="modules.php">
            <input type="hidden" name="name" value="AMAZON" />
            <input type="hidden" name="file" value="index" />


    Is to have it like this, it'll be picked up automatically from the code:

    Code

    <form method="post" action="modules.php">
            <input type="hidden" name="name" value="<? echo $ModName ;?>" />
            <input type="hidden" name="file" value="index" />


    There are quite few changes I made to make search URLs work more efficiently and also other changes that will insure URLs are indexed without hurting Amazon...

    If you want I'll prepare a generic copy for you to have a look, and perhaps work together with other contributors to extend its capabilities. I did look at Mr Rat's script, although good, in my view not worth "Nuking" , as it is too big and some code is unnecessary

Go to page [-1] 1 - 2:

This list is based on users active over the last 60 minutes.