TinyPortal

Development => Support => Topic started by: raid on February 25, 2008, 04:09:39 PM

Title: DLmanager, remove description on items list
Post by: raid on February 25, 2008, 04:09:39 PM
hi all,

I would like to remove the item Description only reading the Category item list, but Not on ITEM action

2 sreenshot to make it easy to understand, sorry for my english  ???

remove (http://i25.tinypic.com/2s0bpt0.jpg)
not remove (http://i30.tinypic.com/2925od0.jpg)


about TPdlmanager.template.php, I found the Description defined here:
echo '
<b><a href="'.$dlitem['href'].'">'. $dlitem['name'] .'</a></b> ' , ($context['TPortal']['dlaction']!='item' && isset($dlitem['filesize'])) ? '<br />'.$dlitem['filesize'] : '' ,  '<div class="smalltext">
'.$dlitem['description'];



thx
Title: Re: DLmanager, remove description on items list
Post by: IchBin on February 25, 2008, 05:25:47 PM
Remove this code exactly:
.$dlitem['description']

Make sure you don't remove the single quote or the semi-colon.
Title: Re: DLmanager, remove description on items list
Post by: raid on February 25, 2008, 11:07:51 PM
removing it, I remove all the description in both cases, I have to remove only in the first screenshot.

thx for your support
Title: Re: DLmanager, remove description on items list
Post by: IchBin on February 25, 2008, 11:53:18 PM
If that removed it from both places then I would say its not really an easy thing to make it do what you want without re-writing some of the code.
Title: Re: DLmanager, remove description on items list
Post by: raid on February 26, 2008, 03:58:14 PM
the ECHO command define to remove the Command SIZE during the action ITEM.

my question is: is it possible to write the command to not to show Descrption too?

thx
Title: Re: DLmanager, remove description on items list
Post by: IchBin on February 26, 2008, 07:01:01 PM
If what you removed affected both the item AND the download description, then no. Its not possible.
Title: Re: DLmanager, remove description on items list
Post by: raid on February 26, 2008, 10:45:15 PM
I solved my problems doing it on TPdlmanager.template.php:

after // edit the file? find if($context['TPortal']['dlaction']=='item')
echo '
I added it:
<tr><td></td><td>'.$dlitem['description'].'</td></tr>


and as you said I removed from command:
echo '
<b><a href="'.$dlitem['href'].'">'. $dlitem['name'] .'</a></b> ' , ($context['TPortal']['dlaction']!='item' && isset($dlitem['filesize'])) ? '<br />'.$dlitem['filesize'] : '' ,  '<div class="smalltext">
'.$dlitem['description'];
the last part.$dlitem['description']

it seems to work, what do you think about?

thx for support
Title: Re: DLmanager, remove description on items list
Post by: IchBin on February 26, 2008, 11:31:28 PM
If it works for you then what is the question? The way you described what happened you confused the heck out of me, so if it works, then great.
Title: Re: DLmanager, remove description on items list
Post by: raid on February 27, 2008, 12:23:15 AM
my intention wasn't to confuse you, sorry, tonight I just tryed this way, and I saw that was working, and I asked you what do you think, and at last I posted my modification for the other user.

it is solved for me, thx