Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support add file attachment to the news
Djsimon
Posted on 19 Jul 2010, 18:28:56

Access: Member
Total Posts: 7
Joined: 2010-07-02

Hello i need support how i can add beside posted news insert attachment file like is mp3 with news on the site that can user download the files??

Thank you for support.
#2731
Chris
Posted on 19 Jul 2010, 23:26:21

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

First attach a file to your news post by selecting selecting the [img]http://network-13.com/news/js/ckeditor/plugins/customfiles/images/page_white_office.png[/img] button when adding an article. From here you can select which files you want to attach.

Now edit the template you're currently using, expand the "News" section and wherever you want the files to be displayed add this code

Code:
[files]
<br /><br />
<table style="border: 1px solid #EEEEEE">
<tr>
<td>Title</td><td>Filename</td><td>Filesize</td><td>Uploaded</td><td>Downloads</td><td>Uploader</td>
</tr>
{files}
</table>
[/files]


Then expand the "Uploaded Files" section and add this code.

Code:
<tr class="files_{oneortwo}">
<td>{filetitle}</td>
<td><a href="{url}">{filename}</a></td>
<td>{filesize} KB</td>
<td>{filedate}</td>
<td>{downloadcount}</td>
<td>{uploader}</td>
</tr>


Now when you view your news articles you should see the attached files show.
#2734
Djsimon
Posted on 20 Jul 2010, 09:49:54

Access: Member
Total Posts: 7
Joined: 2010-07-02

I hope that this work also for mp3 files. i will gonna try thank you.
#2736
Network-13.com © 2013