This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/
13 July, 2009
I realize I could simply type the length of each MP3 in the comments section... Do you think this is possible?
18 June, 2009
This one requires edits to two different files. Remember, always backup the files before you make any changes, so that you can go back if something goes wrong.
First, a new function needs to be added to the end of /wp-content/plugins/sermon-browser/sb-includes/frontend.php. Add this function to the end of the file (right BEFORE the last "?>" line):
The function is called sb_mp3_duration2().
After you make this change, load your sermons page, just to make sure you don't see any errors.
Next, you need to add the template tag to both functions in /wp-content/plugins/sermon-browser/sb-includes/dictionary.php. This time, the code is the same for both functions. So at the end of each function in dictionary.php, add the following code:
After you make any changes to dictionary.php, you need to go to the Sermon Browser template screen and hit the Save button to load in the new definitions.
Now you are ready to change your templates to use the new tags. The tag is file_duration, and it is only valid inside the files_loop tags. So your template might have something like this:
inside your files_loop tags.
It worked for me in both templates on my test site. Let me know if it works on your site.
13 July, 2009
Ben - my new nickname for you will be Santa Claus, ha ha. Thanks!!!!! works great!