0 Members and 1 Guest are viewing this topic.

*

Benoitc64

  • **
  • 68
  • osDate Version: osDate Evo v1.2
Admin - Load_states.php correction
« on: June 10, 2016, 05:53:21 AM »
In admin when you load states, in "process  the files aren't in order.
like you see in pic 1

to rectify it just add in admin/load_states.php

before $t->assign('files', $files);

asort($files);

I've attach the modified  php files.
just put it in the admin

osDateEvo v1.2 | PHP 5.6.30-0+deb8u1 | MySQL: 5.5.51 |

*

Pharg

  • *****
  • 3,042
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Admin - Load_states.php correction
« Reply #1 on: June 10, 2016, 06:13:41 AM »
Hi Benoitc64,

Thanks for that.

But I am not sure what all those CSV files you have are there from?

This is what the normal load States looks like.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Benoitc64

  • **
  • 68
  • osDate Version: osDate Evo v1.2
Re: Admin - Load_states.php correction
« Reply #2 on: June 10, 2016, 06:38:20 AM »
Those CSV files are what i made with the Data from the site  http://www.geopostcodes.com/data

Hi Benoitc64,

Thanks for that.

But I am not sure what all those CSV files you have are there from?

This is what the normal load States looks like.
osDateEvo v1.2 | PHP 5.6.30-0+deb8u1 | MySQL: 5.5.51 |

*

Pharg

  • *****
  • 3,042
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Admin - Load_states.php correction
« Reply #3 on: June 10, 2016, 06:45:30 AM »
Hi Benoitc64,

Thanks for letting me know.

That explains why it's not the same as the normal layout and files and will be why it's not in order.  8)
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35