Thirsty Sites

How to add a Bulk Approve button to PHPLD 2.2

  1. Open admin/dir_approve_links.php
  2. In the code, after if ($_SESSION['is_admin']) {, paste the following code:
    if (isset($_GET['approve_all'])) {
    mysql_query("UPDATE `{$tables['link']['name']}` SET `STATUS`=2 WHERE `STATUS`=1");
    }
  3. Open /templates/dir_approve_links.tpl
  4. In the code, after the first line that says {strip}, paste the following code:
    <input type="button" value="Approve All" onclick="window.location='dir_approve_links.php?approve_all'" />
  5. Link to Thirsty Sites if you found this script useful.