Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2013-04-07 21:03:09
- DogLover
- Member
- Registered: 2013-04-04
- Posts: 26
Re: Creating a Audio Database
Ok. I would also like for visitors to download files. Right now I have a link that when clicked, sends you to a page where it plays the audio file. The URL ends in the files name. To save the file to the hard drive, I have to right click the download button and then click Save As. Is there a way to have it automatically do the Save As function? I hope that makes sense.
Offline
Offline
#15 2013-04-08 20:21:29
- DogLover
- Member
- Registered: 2013-04-04
- Posts: 26
Re: Creating a Audio Database
I have tried and tried to get the part where you can click on the headers and it sorts them by that category. I have tried to do what it says in the example code and I can’t get it to work.
Here is the code:
<script src=“http://orlandobiblechurch.org/jQuery/jquery-1.9.1.js”></script>
<script src=“http://orlandobiblechurch.org/jQuery/jquery.tablesorter.js”></script>
<script>
$(function(){
$("#myTable").tablesorter({ sortList: [[0,0], [1,0]] });
});
</script>
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th>Date</th>
<th>Title</th>
<th>Listen</th>
<th>Download</th>
</tr>
</thead>
<tbody>
<tr>
<td>Wednsday April 3, 2013</td>
<td>Scripture Study: 1 John</td>
<td><audio controls src="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130403wps.mp3"></audio></td>
<td><a href="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130403wps.mp3">Download</a></td>
</tr>
<tr>
<td>Sunday March 31, 2013</td>
<td>Scripture Study: Acts 2</td>
<td><audio controls src="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130331lde.mp3"></audio></td>
<td><a href="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130331lde.mp3">Download</a></td>
</tr>
<tr>
<td>Sunday March 31, 2013</td>
<td>"The Resurrection, Newness of Life, and Fruitfulness"</td>
<td><audio controls src="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130331ldm.mp3"></audio></td>
<td><a href="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130331ldm.mp3">Download</a></td>
</tr>
<tr>
<td>Sunday March 31, 2013</td>
<td>Adult Bible School</td>
<td><audio controls src="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130331abs.mp3"></audio></td>
<td><a href="http://orlandobiblechurch.org/sitebuildercontent/sitebuilderfiles/130331abs.mp3">Download</a></td>
</tr>
</tbody>
</table>
That should be working, right? Thanks for any ideas!
{Edited to add Textile’s bc. for better readability of code. – Uli}
Last edited by uli (2013-04-09 00:11:04)
Offline
#16 2013-04-09 00:12:18
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Creating a Audio Database
That should be working, right?
Nope: You’re using the wrong kind of apostrophes in your jquery calls, you need straight ones.
And noone can see the differences as long as you post code as normal text. Please help us help you and use the appropriate Textile encoding when posting code (see “Quick Help” -> “Posting tags and code” below each forum textarea). Thanks!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#17 2013-04-09 01:07:59
- DogLover
- Member
- Registered: 2013-04-04
- Posts: 26
Re: Creating a Audio Database
Ok thanks. I didn’t know about the Textile encoding thing. Sorry. I changed the ones in the first two lines of code and it didn’t work.
Last edited by DogLover (2013-04-09 01:14:57)
Offline