In admin_links .php there is a provision to change the status of a story to published from the admin-news management - but the problems was that the link published date was not updated - I just added the following lines to fix it:
Find the following code:
Code:
// if admin changes the link status
if ($_GET['action'] == "bulkmod") {
if(isset($_POST['submit'])) {
$comment = array();
foreach ($_POST["link"] as $k => $v) {
$comment[intval($k)] = $v;
}
foreach($comment as $key => $value) {
if ($value == "publish") {
Code:
$db->query("UPDATE " . table_links . " SET link_status = 'published' , link_published_date = now() WHERE link_id = '$key'");
Code:
$db->query("UPDATE " . table_links . " SET link_status = 'queued' , link_published_date=0 WHERE link_id = '$key'");
Code:
// if admin changes the link status
if ($_GET['action'] == "bulkmod") {
if(isset($_POST['submit'])) {
$comment = array();
foreach ($_POST["link"] as $k => $v) {
$comment[intval($k)] = $v;
}
foreach($comment as $key => $value) {
if ($value == "publish") {
$db->query("UPDATE " . table_links . " SET link_status = 'published' , link_published_date = now() WHERE link_id = '$key'");
}
elseif ($value == "queued") {
$db->query("UPDATE " . table_links . " SET link_status = 'queued' , link_published_date=0 WHERE link_id = '$key'");
}
elseif ($value == "discard") {
$db->query('UPDATE `' . table_links . '` SET `link_status` = "discard" WHERE `link_id` = "'.$key.'"');
}
}
header("Location: ".my_pligg_base."/admin_links.php");
}
}




Linear Mode

