TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,964
  • Latest: stylix
Stats
  • Total Posts: 195,933
  • Total Topics: 21,311
  • Online today: 1,146
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 780
  • Total: 780

DLmanager, remove description on items list

Started by raid, February 25, 2008, 04:09:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raid

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
not remove


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
SMF 2.0 + TP RC2

IchBin

Remove this code exactly:
.$dlitem['description']

Make sure you don't remove the single quote or the semi-colon.

raid

removing it, I remove all the description in both cases, I have to remove only in the first screenshot.

thx for your support
SMF 2.0 + TP RC2

IchBin

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.

raid

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
SMF 2.0 + TP RC2

IchBin

If what you removed affected both the item AND the download description, then no. Its not possible.

raid

#6
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
SMF 2.0 + TP RC2

IchBin

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.

raid

#8
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
SMF 2.0 + TP RC2

This website is proudly hosted on Crocweb Cloud Website Hosting.