Thema zum Download Download Extension

Support für Extensions für phpBB 3.2.x von Entwickler OXPUS
Antworten
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Thema zum Download Download Extension

Beitrag von sakkiotto »

1) this snippet is good for 3.2 or needed some changes code?


[SOLVED] automatic favourite after download.

Code: Alles auswählen

$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 »"
Bild
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Thema zum Download Download Extension

Beitrag von oxpus »

1: This should be work.

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!
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Thema zum Download Download Extension

Beitrag von sakkiotto »

No problem for waiting :)
2) ok i try to adapt on my forum
Sajaki9
Beiträge: 5
Registriert: So 17. Sep 2017, 10:35

Re: Thema zum Download Download Extension

Beitrag von Sajaki9 »

hello,

I ran the sql you mentioned in the download and got this result.

Code: Alles auswählen

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).

Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Thema zum Download Download Extension

Beitrag von oxpus »

And?
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!
Sajaki9
Beiträge: 5
Registriert: So 17. Sep 2017, 10:35

Re: Thema zum Download Download Extension

Beitrag von Sajaki9 »

it seems ok.
Unantastbar
Beiträge: 15
Registriert: Fr 19. Mai 2017, 18:24

Re: Thema zum Download Download Extension

Beitrag von Unantastbar »

Kurze Frage. Gibt es eine Begrenzung für Alle Klicks?
Also geht der Zähler über die 1000 und weiter hinaus?

Ich frage nur, weil die 1000 Marke irgendwann geknackt wird. Noch ist etwas Luft nach oben. :D
https://www.win-unattended.de/app.php/d ... l&df_id=97
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Thema zum Download Download Extension

Beitrag von oxpus »

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!
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Thema zum Download Download Extension

Beitrag von sakkiotto »

Hi, any updates ?? :D
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Thema zum Download Download Extension

Beitrag von oxpus »

Currently not, maybe shortly after x-mas.
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!
Antworten