TinyPortal

Development => Support => Topic started by: Kike_GL on August 09, 2011, 12:25:34 AM

Title: dlmanager
Post by: Kike_GL on August 09, 2011, 12:25:34 AM
Attached for your information some corrections made in the dlmanager. Corrections solve some problems in presentation on SMF 2.0 and TP 1.104:

From the sources folder:
* TPmanager.php
* TPSubs.php

In the folder Themes / Default:
* TPdlmanager.template.php
* GenericControls.template.php
Title: Re: dlmanager
Post by: IchBin on August 09, 2011, 02:43:44 AM
Would be nice if you said what you did so I don't have to diff through all the changes you did to guess what you've done.
Title: Re: dlmanager
Post by: ZarPrime on August 09, 2011, 03:21:22 AM
Yeah, especially since there is neither a file called TPmanager.php nor a file called TPGenericControls.template.php
in the TinyPortal distribution.
Title: Re: dlmanager
Post by: Kike_GL on August 10, 2011, 05:15:56 AM
Ok, I will try first to compare the original vs. the final presentation with some pictures.

These changes were added mainly on TPdlmanager.template.php

To display the new data (Size, Views, Downloads, Last access and Cat name) was necessary to add the corresponding fields in TPdlmanager.php on SELECT (496, 553, 603, 823, 977, 1138 and 1288) and arrays (542, 589, 652, 777, 860, 1047, 1179, 1317...).

For items "add x most recent and feature the last one" in TPdlmanager.template.php (lines 871 and 872) was used dl_recentitems function on line 2776 of TPSubs.php

Finally when editing a textarea field item went out to the right of the screen because
textarea class="editor" on line 24 of GenericControls.template.php was cols="600"

My apologies for my bad English.
Title: Re: dlmanager
Post by: Kike_GL on August 10, 2011, 05:34:11 AM
Please see your own dlmanager.