Jump to content

Search the Community

Showing results for tags 'order'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Official
    • News and Announcements
  • Community
    • Introduce yourself
    • General Discussion
  • WISECP
    • Pre-Sales Queries
    • Using WISECP
    • Support
    • Suggestions & Feedback
    • For Developers
    • Plugins, Themes & Payment Gateways
    • Bugs
  • Other Languages

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Hi, if you want to sort your tlds on domain page alphabetically you could add the following php function to "/templates/website/your-template/domain.php". Search for the line (in modern theme it is line 766) <?php if(isset($tldList) && is_array($tldList) && sizeof($tldList)){ foreach($tldList AS $row){ and add before the foreach this line: usort($tldList, function($a, $b) { return strcmp($a['name'], $b['name']); }); So it looks like: <?php if(isset($tldList) && is_array($tldList) && sizeof($tldList)){ usort($tldList, function($a, $b) { return strcmp($a['name'], $b['name']); }); foreach($tldList AS $row){ Voila, your array $tldList will be sorted alphabetically. Regards Philipp
×
×
  • Create New...