News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

HTML for Borders

Started by blasiman1, 17.08.2015 22:19:14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blasiman1

Hello-

I am using jDownloads Version 3.2.35.  My website is www.givinggarage.com.  I want to create a single line or border around each file.  I have attached an image of the end state I would like to achieve.  Also, how do I remove the star ratings?  I do not need them.



[gelöscht durch Administrator]
  •  

ColinM

#1
Hi
The way inwhich jD shows the output is controlled by the Active Layout.   So you can edit these in the backend.
Suggest you look at the documentation concerning layouts
http://www.jdownloads.net/documentations/category/editing-layouts

In  particular you need to make a copy of your current active Files layout - ALWAYS use a copy because if you make a mistake then...  Also the standard ones could be updated at some time and you would loose the changes!!

Now the 'stars' are output by the place holder {rating} so just remove it in your copy. For example in my copy of "Standard Files Layout without Checkboxes v2.5 (2)" there is a section of code as below. (note I have changed from standard version to include the {tags} place-holder).  You will see a line I have highlighted in red so removing that line will stop showing the rating stars.  Actually you could remove the entire cell from <td width="20%"> to </td> and allocate the space elsewhere in the line.

<table width="100%" class="jd-files-name" style="padding:3px; ">
   <tr valign="middle">
      <td width="55%">{file_pic}{file_title} {release} {pic_is_new} {pic_is_hot} {pic_is_updated}</td>
      <td width="20%">
          <p align="center">{rating}</p>
      </td>
      <td width="25%">
          <p align="center">{link_to_details} {url_download}</p>
      </td>
   </tr>
<tr><td>{tags}</td></tr>
</table>


To get the horizontal line then the HTML tag
, which may be styled,  could be added at the very end of the main layout section, that is after the last </table> line

{created_by_value}<br />{author_text}<br />{filesize_value}<br />{hits_value}</td>
   </tr>
</table>
<hr style="width: 80%; height: 8px; margin-left: auto; margin-right: auto; background-color:#FF0066; color:#FF0066; border: 0 none;" />


The two pics attached show the before and after. 
Please ask if you need more help.

Colin
PS when specifying widths use % (unless just a small width) as that keeps the view adaptable to the size of the device.

[gelöscht durch Administrator]
Colin M
  •  

blasiman1

Hello-

Thank you so much for your prompt response.  That did the trick.
  •