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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 218
  • Total: 218

Download view

Started by Cokeman, September 28, 2007, 08:45:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cokeman

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

itsacoaster

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.

Cokeman

#2
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?

IchBin

All template files with be in the default theme folder, unless a custom theme includes them to change the look.

Cokeman

I got it edited but now when clicking the title it doesn't show any description. Any way to fix this.

G6Cad

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.

Cokeman

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.