To use this website completely, it is necessary to store cookies on your computer.
 

Recent Attachments options

Started by zijo, a year ago

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

zijo

a year ago
I have php portalmx block and added



ssi_recentAttachments(5);


It shows file name, posted by, downloads and file size.

Is it possible to add date and post name to be shown as well?

zijo

#1
a year ago
 :-\

feline

#2
a year ago
All the SSI functions are designed by SMF .. so it's better you make your question on the SMF site ..
Many are stubborn in relation to the path, a few in relation to the target.

zijo

#3
a year ago
Modified SSI file. Added Post and Date. This can be used with other functions as well.

Code Select
// Give them the default.
echo '
<table class="ssi_downloads">
<tr>
<th style="text-align: left; padding: 2">', $txt['file'], '</th>
<th style="text-align: left; padding: 2">', $txt['posted_by'], '</th>
<th style="text-align: left; padding: 2">', $txt['downloads'], '</th>
<th style="text-align: left; padding: 2">', $txt['filesize'], '</th>
                <th style="text-align: left; padding: 2">Post</th>
<th style="text-align: left; padding: 2">Date</th>

</tr>';
foreach ($attachments as $attach)
echo '
<tr>
<td>', $attach['file']['link'], '</td>
<td>', $attach['member']['link'], '</td>
<td style="text-align: center">', $attach['file']['downloads'], '</td>
<td>', $attach['file']['filesize'], '</td>
                <td>', $attach['topic']['link'], '</td>
                <td>', $attach['topic']['time'], '</td>
</tr>';