Please, help :)

Enthält archivierte Beiträge von Hotschi's Board zum Download MOD.
Posten ist hier nicht möglich, bitte das Supportforum dafür verwenden!
Gesperrt
Anonymous

Please, help :)

Beitrag von Anonymous »

Hi all! First of all, sorry for write in english, but i can´t understand deustch ;)

I´ve installed DLMod but obtained this error:

Fatal error: Call to undefined function: bcmul() in /chs/p1/lagranguerra.com/home/html/forum/admin/admin_dl_traffic_all_users.php on line 35

Can somebody help me?

Thanks for all

spacelab
www.lagranguerra.com
www.para-bellum.com

p.d: hotschi, u need a spanish translation for u dlmod?
Hotschi

Beitrag von Hotschi »

Hi

I can´t believe, that your server doesn´t know bcmul()!
This function is availible since php3. Which version do you have? I have never seen older versions than php3...

Yes, I would be delighted to get any translations :-)

CU
Hotschi
Anonymous

Beitrag von Anonymous »

Hi again! We solved bcmul and bcdiv using (seems that our server dont support bc-math library):

For BCMUL():
//if ($x == "mb") $traffic_bytes = bcmul($traffic,1048576);
if ($x == "kb") $traffic_bytes = sprintf("%01.2f kb",($traffic * 1024));

For BCDIV():
//lgg $user_traffic_out = bcdiv($user_traffic,1024,2) . " kb";
$user_traffic_out = sprintf("%01.2f kb",($user_traffic / 1024));


But I have a last question (sorry, i´m so newbie ;) ). What would be the content of .htaccess to work correctly? And if we want to have external links..is it possible DLMod accept it?

Thanks for all and sorry for my english level
Anonymous

Beitrag von Anonymous »

Hi again! We solved bcmul and bcdiv using (seems that our server dont support bc-math library):

For BCMUL():
//if ($x == "mb") $traffic_bytes = bcmul($traffic,1048576);
if ($x == "kb") $traffic_bytes = sprintf("%01.2f kb",($traffic * 1024));

For BCDIV():
//lgg $user_traffic_out = bcdiv($user_traffic,1024,2) . " kb";
$user_traffic_out = sprintf("%01.2f kb",($user_traffic / 1024));


But I have a last question (sorry, i´m so newbie ;) ). What would be the content of .htaccess to work correctly? And if we want to have external links..is it possible DLMod accept it?

Thanks for all and sorry for my english level
spacelab
Anonymous

Beitrag von Anonymous »

Spanish translations:

Code: Alles auswählen

# Añadir en algún lugar en /language/lang_spanish/lang_main.php:
########################

//
// Comienzo: DlMod
//
$lang['Dl_klicks'] = "Clicks";
$lang['Downloads'] = "Descargas";
$lang['Traffic'] = "Transferencia";
$lang['Dl_not_enough_traffic'] = "No tienes suficiente transferencia.";
$lang['Download_status'] = "Estado";
$lang['Dl_file_size'] = "Tamaño";
$lang['Dl_file_name'] = "Archivo";
$lang['Dl_file_description'] = "Descripción";
$lang['Dl_account'] = "Cuenta";
$lang['Dl_free'] = "Descarga Gratuita";
$lang['Dl_detail'] = "Detalles";
$lang['Dl_info'] = "Info";
$lang['Dl_i'] = "i";
$lang['Dl_name'] = "Nombre";
//
// Fin: DlMod
//

Code: Alles auswählen

# Añadir en  language/lang_spanish/lang_admin.php:
########################

//
// Comienzo: DlMod
//
$lang['Traffic_single_user_admin_explain'] = "Aquí puedes modificar la transferencia para un usuario en particular";
$lang['Traffic_all_users_admin_explain'] = "Aquí puedes modificar la transferencia para todos los usuarios";
$lang['Single_user_traffic_title'] = "Transferencia para usuario individual";
$lang['All_users_traffic_title'] = "Transferencia para todos los usuarios";
$lang['Dl_files_title'] = "Archivos";
$lang['Dl_files_explain'] = "Sube el fichero con tu FTP al directorio de descargas y específica aquí la ruta.";
$lang['Dl_files_url'] = "URL";
$lang['Dl_files_url_explain'] = "Acorde al directorio de descargas.";
$lang['Download_updated'] = "La información fue actualizada";
$lang['Download_added'] = "Descarga añadida";
$lang['Download_removed'] = "Descarga borrada";
$lang['Click_return_downloadadmin'] = "Pulsa %saquí%s para volver a la administración de Descargas.";
$lang['Click_return_user_traffic_admin'] = "Pulsa %saquí%s para modificar la transferencia de otro usuario.";
$lang['Must_select_download'] = "Elige una descarga.";
$lang['Dl_function'] = "Función";
$lang['Add_new_download'] = "Añadir nueva descarga";
$lang['Dl_add'] = "Añadir";
$lang['Dl_set'] = "Fijar";
$lang['Traffic_now'] = "Transferencia actual en la cuenta";
$lang['Dl_is_free'] = "Gratuita";
$lang['Dl_yes'] = "Sí";
$lang['Dl_no'] = "No";
$lang['DL_free_explain'] = "Activa esta casilla si la descarga es gratuita -accesible para todos los usuarios-. Las cuentas no serán usadas.";
$lang['Dl_order'] = "Ordenar";
$lang['Dl_up'] = "Hacia Arriba";
$lang['Dl_down'] = "Hacia Abajo";
//
// Fin: DlMod
//

########################

spacelab
www.lagranguerra.com
www.para-bellum.com
Hotschi

Beitrag von Hotschi »

Hey, Thanks for your translation!!! :D

1. I don´t know how to configure the .htaccess- file, because I´m able to do this via a web- interface from my provider...

2. The DlMod in the cuurent version is NOT able for external links.
I think in one of the next versions...

But I´m very sorry, that at the moment there are no new versions. I do not have the time for the developement...I hope, that I can pursue in the next weeks...

CU
Hotschi
Anonymous

Beitrag von Anonymous »

Hi again Hotschi. Thanks for u fast answer :). So, anyone knows the content of .htaccess? If u have time Hotschi can u view the content of .htaccess and post it or email-me?

We´re working on ur download mod to accept external links. If we do it. i´ll post it here.

c ya!

P.d: are u the same hotschi of VK clan and Roko?
Hotschi

Beitrag von Hotschi »

no. i do not have a clan.
Anonymous

Beitrag von Anonymous »

Habe den gleichen Fehler , sitze irgendwie auf der Leitung ,wenn ich's irgendwie hinkriege schicke ich Dir die italienische Uebersetzung :wink:

Hier der Error
Fatal error: Call to undefined function: bcmul() in /home/web/www.phpbb2.it/website/portale/forum/adm ... e_user.php on line 53
Danke für die Hilfe
Hotschi

Beitrag von Hotschi »

Dank dir! :-) Das gibt doch gleich wieder Antrieb weiterzuscripten :)

Zu deinem Problem:
Ich hab echt keine Ahnung, wie sowas kommen kann :cry:

Sind die mathematischen Funktionen vielleicht ein Zusatzmodul für php??? Soweit ich weiß nicht!

Man müsste vielleicht mal auf phpBB.de nachfragen, da sind ein paar Fachmänner...

Die ganze bcmul- Sache kannst du jedoch ausbauen. Die ist nur dafür da, dass die Anzeige immer passend in byte, kB oder MB ausgegeben wird. Dann muss man da zur Not halt mal drauf verzichten, und hat halt nur eine kB Anzeige...

Hotschi
Anonymous

Beitrag von Anonymous »

mmm..stimmt sowieso einiges nicht bei mir ..sigh..
define('PAGE_DOWNLOADS', -12);
musste dieses in der constant.php in -13
schreiben (hatte schon eine - 12)

da ich dieses verändert habe ,nochwas zusätzliches umändern?

hier das Resultat
Hotschi

Beitrag von Hotschi »

ja, passt doch...

gib mal über das admin- menue eine datei an, dann müsste das schon besser aussehen...

wenn die tabelle leer ist, dann werden die überschriften auch nicht angezeigt, weiß nicht warum...

Hotschi
Anonymous

Beitrag von Anonymous »

mache Morgen weiter, bin zu müde bevor ich ein Grande Casino mache, Danke für die Hilfe
Anonymous

Beitrag von Anonymous »

Ich habe wegen der bcmul()- Sache mal auf phpBB.de angefragt:

http://www.phpbb.de/viewtopic.php?t=185 ... highlight=

Damit müsstet ihr das hinbiegen können.

Am besten aber schreibt eurem Provider mal eine nette Email: bcmul() oder Providerwechsel! :lol: Wenn ihr gut schreiben könnt müsste das in den nächsten Tagen gehen :lol:

Hotschi
Hotschi

Beitrag von Hotschi »

hoppla....das war ich...
Gesperrt