1
Mamba
TDMDownloads 1.62 Final released for XOOPS 2.5.5
  • 2012/7/2 7:44

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


TDMDownloads creates a downloads section where users can download/submit/rate various files. It uses XOOPS permission and group management, thus allowing a great flexibility in use.

Changes:

- replaced Google Buzz with Google Plus
- Showing Latest files is optional (DCrussader/Mamba)
- other minor improvements

Download: XOOPS File Repository

Requirements: XOOPS 2.5.5
PHP 5.2+

If you find any errors, please report them here.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

2
Cesagonchu
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5

With "DHTML Form with xCode" when I write a letter with accent and I click on "Preview", the text is not displayed.

There is also another problem: when writing a text, without line breaks, the text spans the entire width.

Quote:
Apache Version Apache/2.2.22 (Ubuntu)
Minimum PHP required: 5.2 (your version is 5.3.10-1ubuntu3.2)
MYSQL minimum version required: 5.0.7 (your version is 5.5.24-0ubuntu0.12.04.1)
Minimum XOOPS required: 2.5 (your version is 2.5.5)
Minimum ModuleAdmin required: 1.1 (your version is 1.1)

3
MACTEP
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
  • 2012/7/7 12:03

  • MACTEP

  • Not too shy to talk

  • Posts: 127

  • Since: 2009/4/4 5


It will not be eliminated ?I am from one version to remind you , and then complain that I did not say anything ...
Это устраняться не будет? Я от версии к версии напоминаю вам, а потом жалуетесь, что я ничего не говорил...

Resized Image

4
MACTEP
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
  • 2012/7/7 14:04

  • MACTEP

  • Not too shy to talk

  • Posts: 127

  • Since: 2009/4/4 5


I'm not friends with PHP , but I see the decision as follows:
I think xoops uses the following code to cut the words:
$str "Строка очень большой длины"
$str1 substr($str018); 
echo 
$str1// Строка оч�

Trimmed not by character but by bytes.

Should be cut using the following code :
mb_internal_encoding('UTF-8'); // Установка кодировки 
$str 'Строка очень большой длины'
$str2 mb_substr($str018); 
echo 
$str2// Строка очень больш

Circumcision is strictly for the characters.

Англичанин с меня тоже никакой, поэтому прокомментирую по русски.
Первый код - так скорее всего обрезает xoops,
второй код - так необходимо обрезать слова.
Слова режутся строго по символьно, а не так как в первом варианте - мало того, что обрезать может символ пополам, так еще и указанное количество символов несколько меньше, зависит от символов.

Хороший пример обрезалки в нашем модуле "Видео" Текст режется строго по словам.

5
Cesagonchu
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5

TDMDownloads\language\english\main.php
Line 66

replace
define("_MD_TDMDOWNLOADS_SINGLEFILE_RATING","Rating");


with
define("_MD_TDMDOWNLOADS_SINGLEFILE_RATING","Rating: ");

6
AngeloRocha
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5

Help, error when creating a new field (modules/TDMDownloads/admin/field.php?op=new_field):

Error:
Fatal error: Call to a member function render() on a non-object in Z:\www\x255\modules\system\class\gui.php on line 164

Error only when sending data from the new field.

7
AngeloRocha
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5

up...

8
hipoonios
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
  • 2012/12/24 5:48

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Two problems I found in TDMDownloads 1.62

1. On the search page the file size does not appear (/modules/TDMDownloads/search.php)

Instead it shows: _AM_TDMDOWNLOADS_NUMBYTES

This seems to be more than a language problem.

Resized Image



2. There is a problem with the Random Downloads block. Try to place it on the TDMDownloads module and go to /modules/TDMDownloads/search.php

This is messing up the entire table with random letters and numbers.
Resized Image

9
Mamba
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
  • 2012/12/24 23:25

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


1) In file "search.php" replace line 243:

$contenu trans_size($tdmdownloads_arr[$i]->getVar('size'));

with
$contenu $tdmdownloads_arr[$i]->getVar('size');


2) It seems like the module was appending values to an existing variable "$downloads", which is being populated when the blocks are on. To avoid it, I've added a line to clear it before the append.

Go to search.php and add around line 266 add this line in red:

Quote:
$xoopsTpl->clear_assign('downloads');
$xoopsTpl->append('downloads', $tdmdownloads_tab);

That should fix it for the time being.

I am not sure I understand why this variable is being populated with the values from Blocks in the first place, but I don't have time to investigate it.

I've submitted this fix to Mage, the original author of the module, and it will be up to him to use it, or to fix it in a better way.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

10
hipoonios
Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
  • 2012/12/25 6:28

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Thank you very much Mamba.

The file size fix worked perfectly.

The block problem kinda worked. If you add that code you will only see 1 download even if you have more in database.

But solved it by adding the line a little higher up in search.php.

Login

Who's Online

154 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits