$sql = 'SELECT COUNT(fav_dl_id) AS total FROM ' . DL_FAVORITES_TABLE . '
WHERE fav_dl_id = ' . (int) $df_id . '
AND fav_user_id = ' . (int) $this->user->data['user_id'];
$result = $this->db->sql_query($sql);
$fav_check = $this->db->sql_fetchfield('total');
$this->db->sql_freeresult($result);
if (!$fav_check)
{
$sql = 'INSERT INTO ' . DL_FAVORITES_TABLE . ' ' . $this->db->sql_build_array('INSERT', array(
'fav_dl_id' => $df_id,
'fav_dl_cat' => $cat_id,
'fav_user_id' => $this->user->data['user_id']));
$this->db->sql_query($sql);
}
2) another fix to do list
-links favorite with app.php in link download and catgs
-AMMINISTRATORI TEST is a cat and test is a subcat the " » " is at the finish.. "AMMINISTRATORI TEST » test »" or "AMMINISTRATORI TEST / test »"
2: This needs multiple changes on several files, so I'll not provide a fix for now. Please wait for the next release to fix this. But as you can see, I've changed the favorite list still in this forum.
Karsten Ude Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
UPDATE `phpbb_modules` SET `module_basename`='\\oxpus\\dlext\\acp\\main_module' WHERE `module_basename`='\\oxpus\\dl_ext\\acp\\main_module';# 12 rows affected.
UPDATE `phpbb_modules` SET `module_basename`='\\oxpus\\dlext\\ucp\\main_module' WHERE `module_basename`='\\oxpus\\dl_ext\\ucp\\main_module';# 2 rows affected.
UPDATE `phpbb_ext` SET `ext_name`='oxpus/dlext' WHERE `ext_name`='oxpus/dl_ext';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_banlist' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_banlist';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_blacklist' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_blacklist';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_browser' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_browser';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_categories' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_categories';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_config' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_config';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_fields' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_fields';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_files' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_files';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_overview' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_overview';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_permissions' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_permissions';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_perm_check' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_perm_check';# MySQL returned an empty result set (i.e. zero rows).
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_stats' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_stats';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_toolbox' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_toolbox';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext && acl_a_dl_traffic' WHERE `module_auth`='ext_oxpus/dl_ext && acl_a_dl_traffic';# 1 row affected.
UPDATE `phpbb_modules` SET `module_auth`='ext_oxpus/dlext' WHERE `module_auth`='ext_oxpus/dl_ext';# 2 rows affected.
UPDATE `phpbb_notification_types` SET `notification_type_name`='oxpus.dlext.notification.type.dlext' WHERE `notification_type_name`='oxpus.dl_ext.notification.type.dl_ext';# MySQL returned an empty result set (i.e. zero rows).
Karsten Ude Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Ja, eine Grenze gibt es. Aber die liegt bei 100000000000.
Karsten Ude Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Karsten Ude Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!