TinyPortal

Development => Support => Topic started by: Cokeman on September 28, 2007, 08:45:44 PM

Title: Download view
Post by: Cokeman on September 28, 2007, 08:45:44 PM
Is there a way to set TP 0.98 to display only the title name (hiding the description). I want it to look the same way it does here on Tp's website.

Like this.
http://www.tinyportal.net/index.php?action=tpmod;dl=cat457
Title: Re: Download view
Post by: itsacoaster on September 28, 2007, 09:11:07 PM
Don't think there's an option for it, but you can go to your TPdlmanager.template.php and find this:

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'];


and change it to this:

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']; */


Basically it just comments out the description line, and puts a single quote and a semicolon where they belong.

If you want, there's a
 line break just below that, which you can take out.
Title: Re: Download view
Post by: Cokeman on September 28, 2007, 09:44:04 PM
I'll try that. My file descriptions are long & some contain images which makes it rather long to find the file.

Also do you know what would need to be changed to make the [ code ] box look like your post above? My site doesn't do that & text will run out of the forum. I asked over at smf but nobody replied.

EDIT: I can't seem to find that file. Do you know what folder it is in?
Title: Re: Download view
Post by: IchBin on September 28, 2007, 10:13:18 PM
All template files with be in the default theme folder, unless a custom theme includes them to change the look.
Title: Re: Download view
Post by: Cokeman on September 28, 2007, 10:44:29 PM
I got it edited but now when clicking the title it doesn't show any description. Any way to fix this.
Title: Re: Download view
Post by: G6Cad on September 29, 2007, 09:35:04 AM
Coceman, you said you wanted to HIDE the description, and the code you edited did just that forum you.
When you seek help, you have to better specify what you want  ;)

The layout used here is a totally rewritten code for TP V1* so it's not easy to do in your version.
Also if i remember correct, the missing description on that page is actually a bug, it should show the description on the download items.
Title: Re: Download view
Post by: Cokeman on September 29, 2007, 02:48:28 PM
G6 your correct I didn't word my question properly, I apologize for that. What I wanted was for the description to be hidden until the user clicks the title then have the it displayed.

If this is not possible now I can live with it until version 1 is released. At least it's something to look forward to. Thanks for the help.