• Welcome to PHPVIBE Forums. Please log in.

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

Started by spirog,

Previous topic - Next topic

0 Members and 2 Guests 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 (2)

Started by tweky94


Replies: 0
Views: 1206

Replies: 3
Views: 8567