PDA

View Full Version : What about next year


BlueAegis
7th March 2005, 08:53 AM
I read the post about the year not going above 2004. You guys fixed it so that we can now go up to 2005 in the "Pay Affiliates" section.

Call me silly, but I plan on using this script long after 2005 is gone. Could we possibly have a fix that gives us more years?

OR, better yet, could you just detail the modifications that need to be made in order to add additional years and let us add the modifications ourselves. Something like this -

Find second line that says "blah, bleh, blah"
Locate word "bleh"
Replace with word "blah"

This is how they do it on some of the more popular product forums and it works out great. People start contributing their own hacks and systems seem to grow into phenomenal products.

Just my two-cents.

Roy Pope

mark
7th March 2005, 02:39 PM
Hi,

the fix that we made will work also in the future, it is not limited to year 2005.
The problem before was that the year 2004 was hardcoded as the maximum year for year filter in the script.

Now it is made in a way that maximum is the current year, so it will work even in 100 years from now :-)

The fix was made in file /affiliate/merchants/templates/new/ap_filter.php.
You should add

<?
$curyear = date("Y");
?>


to the top, and then replace all for cycles

for($i=2003; $i<=2004; $i++)


with

for($i=2003; $i<=$curyear; $i++)


regards,

mark

BlueAegis
7th March 2005, 06:57 PM
The future years are dynamic... They'll show up only after that year has been reached. Nice.

BTW, can I suggest a section of this site be set up for code hacks? It'll give people with PHP experience an opportunity to share their modifications with others in order to enhance the overall product. (Just a suggestion).

Thank you,

Roy