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
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.
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?
All template files with be in the default theme folder, unless a custom theme includes them to change the look.
I got it edited but now when clicking the title it doesn't show any description. Any way to fix this.
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.
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.