Hearted - select all then click Remove-selected, not working

Started by spirog,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spirogTopic starter

Hearted - select all then click Remove-selected, not working
if you click remove right of each one, one by one removed from hearted.. see photo

Spiro
  •  

Marius P.

Nice find!

in tpl/manager.php

before
$count = $db->get_row("Select count(*) as nr from ".DB_PREFIX."images where ".DB_PREFIX."images.id in ( select vid from ".DB_PREFIX."hearts where uid ='".user_id()."' and type='like')"); $images = $db->get_results("select id,title,thumb, views, liked from ".DB_PREFIX."images where ".DB_PREFIX."images.id in ( select vid from ".DB_PREFIX."hearts where uid ='".user_id()."' and type='like') ORDER BY ".DB_PREFIX."images.id DESC ".this_limit().""); ?>

add

if(isset($_POST['heartsRow'])) {
foreach ($_POST['heartsRow'] as $del) {
$id = intval($del); $db->query("Delete from ".DB_PREFIX."hearts where uid ='".user_id()."' and vid='".$id."' ");   
}
echo '<div class="msg-info mleft20 mright20 mtop20">'._lang("Pictures unliked.").'<>';
}


Or just apply the patch when I upload it.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (1)

Replies: 3
Views: 4329