How to add a Bulk Approve button to PHPLD 2.2
- Open admin/dir_approve_links.php
- 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");
} - Open /templates/dir_approve_links.tpl
- 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'" />
Link to Thirsty Sites if you found this script useful.