Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse adslight AntiHarvesting AntiMalUser AntiSpam API Australia Ban banner Beats billige black Blocks blue Captcha cell Christmas chronolabs content Conversion database demo docek download Dresses editor evden eve facebook Federated floor free Gateway herre Honeypot Human IP jQuery kantor lamps Legal log logger mobile module modules Monster MyAlbum-p Networks newbb news Notices online PageRank pdf Permissions pink Plugin portal Prevention profile project Protector publisher release Rights rmcommon Room sale security SERIAL Server site Smarty Spam statistics stem Studio tag tags tdmcreate template Theme themes userlog website Whitepaper XML XooLaT xoops Xoopspoll Xortify xthemes Yolande ZendFramework

New Users

Registering user

# 136015

handrick12

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 »


#1 Posted on: 2012/7/2 2:44 TDMDownloads 1.62 Final released for XOOPS 2.5.5
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.

Top


Please support XOOPS & donate
Use 2.5.5 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 6936
(Show More) (Show Less)


#2 Posted on: 2012/7/6 12:14 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)


Top

Cesag
Moderator
Moderator
Joined:
2010/2/1 15:21
From France
Group:
Registered Users
Community Coordinator (temporary)
Posts: 546
(Show More) (Show Less)


#3 Posted on: 2012/7/7 7:03 Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
It will not be eliminated ?I am from one version to remind you , and then complain that I did not say anything ...
Это устраняться не будет? Я от версии к версии напоминаю вам, а потом жалуетесь, что я ничего не говорил...

Click to see original Image in a new window

Top

MACTEP
Not too shy to talk
Not too shy to talk
Joined:
2009/4/4 0:22
From Tiraspol
Group:
Registered Users
Posts: 107
(Show More) (Show Less)


#4 Posted on: 2012/7/7 9:04 Re: TDMDownloads 1.62 Final released for XOOPS 2.5.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,
второй код - так необходимо обрезать слова.
Слова режутся строго по символьно, а не так как в первом варианте - мало того, что обрезать может символ пополам, так еще и указанное количество символов несколько меньше, зависит от символов.

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


Top

Edited by MACTEP on 2012/7/7 9:20:06 Reason (optional): так надо...
MACTEP
Not too shy to talk
Not too shy to talk
Joined:
2009/4/4 0:22
From Tiraspol
Group:
Registered Users
Posts: 107
(Show More) (Show Less)


#5 Posted on: 2012/7/10 2:58 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: ");


Top

Cesag
Moderator
Moderator
Joined:
2010/2/1 15:21
From France
Group:
Registered Users
Community Coordinator (temporary)
Posts: 546
(Show More) (Show Less)


#6 Posted on: 2012/7/27 16:33 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.

Top

AngeloRocha
Quite a regular
Quite a regular
Joined:
2010/6/8 11:32
From Brasil
Group:
Registered Users
Posts: 263
(Show More) (Show Less)


#7 Posted on: 2012/8/12 12:35 Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
up...


Top

AngeloRocha
Quite a regular
Quite a regular
Joined:
2010/6/8 11:32
From Brasil
Group:
Registered Users
Posts: 263
(Show More) (Show Less)


#8 Posted on: 12/23 23:48 Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
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.

Click to see original Image in a new window



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.
Click to see original Image in a new window


Top

hipoonios
Friend of XOOPS
Friend of XOOPS
Joined:
2005/9/23 19:01
From Sweden
Group:
Registered Users
Posts: 263
(Show More) (Show Less)


#9 Posted on: 12/24 17:25 Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
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.

Top


Please support XOOPS & donate
Use 2.5.5 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 6936
(Show More) (Show Less)


#10 Posted on: 12/25 0:28 Re: TDMDownloads 1.62 Final released for XOOPS 2.5.5
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.

Top

hipoonios
Friend of XOOPS
Friend of XOOPS
Joined:
2005/9/23 19:01
From Sweden
Group:
Registered Users
Posts: 263
(Show More) (Show Less)




(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]