Title: [Plugin: WP-Filebase] Problem with template
Last modified: August 19, 2016

---

# [Plugin: WP-Filebase] Problem with template

 *  [Onekiss](https://wordpress.org/support/users/onekiss/)
 * (@onekiss)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-problem-with-template/)
 * I create website for my friend:
 * [http://www.niebowsieci.pl/](http://www.niebowsieci.pl/)
 * and I have problem with WP-Filebase. As you can see website was created to publish
   audio and video files. I use plugin WP-Filebase as file manager. Unfortunately,
   to play files I need **two different players**. WP-Filebase support IF function,
   so (probably) it is possible to dynamically chose player. Actually WP-Filebase
   template is:
 *     ```
       <div class="wpfilebase-attachment">
        <div class="wpfilebase-fileicon"><img align="middle" src="%file_icon_url%" alt="%file_display_name%" /></div>
        <div class="wpfilebase-rightcol">
         <div class="wpfilebase-filetitle">
        <a> %file_display_name%</a><br />
         <br />
          <!-- IF %file_version% -->%'Version:'% %file_version%<br /><!-- ENDIF -->
          [b]<!-- IF %file_post_id% AND get_the_ID() != %file_post_id% --><a href="%file_post_url%" class="wpfilebase-postlink">%'View post'%</a><!-- ENDIF -->[/b]
         </div>
         <div class="wpfilebase-filedetails" id="wpfilebase-filedetails%uid%" style="display: none;">
         <p>%file_description%</p>
         <table border="0">
          <!-- IF %file_languages% --><tr><th>%'Languages'%:</th><td>%file_languages%</td></tr><!-- ENDIF -->
          <!-- IF %file_author% --><tr><th>%'Author'%:</th><td>%file_author%</td></tr><!-- ENDIF -->
          <!-- IF %file_platforms% --><tr><th>%'Platforms'%:</th><td>%file_platforms%</td></tr><!-- ENDIF -->
          <!-- IF %file_requirements% --><tr><th>%'Requirements'%:</th><td>%file_requirements%</td></tr><!-- ENDIF -->
   
          <!-- IF %file_license% --><tr><th>%'License'%:</th><td>%file_license%</td></tr><!-- ENDIF -->
          <tr><th><br />Dodano:</th><td>%file_date%</td></tr>
   
       [b]<object type='application/x-shockwave-flash' data='http://niebowsieci.pl/wp-content/uploads/audio-player/assets/player.swf?m=1255093255g' width='290' height='24' id='audioplayer1'><param name='movie' value='http://niebowsieci.pl/wp-content/uploads/audio-player/assets/player.swf?m=1255093255g' /><param name='FlashVars' value='&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&soundFile=%file_url%' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='bgcolor' value='#FFFFFF' /><param name='wmode' value='opaque' /></object>[/b]
   
       <!-- <tr><th>%'MD5 Hash'%:</th><td><small>%file_hash%</small></td></tr> -->
         </table>
         </div>
        </div>
        <div class="wpfilebase-fileinfo">
         %file_size%<br />
         %file_hits% Odtworzeń<br />
         <a href="#" onclick="return wpfilebase_filedetails(%uid%);">Odtwórz</a>
        </div>
        <div style="clear: both;"></div>
       </div>
       ```
   
 * As you can see there is audio player included. How can I make IF function to 
   chose video player for video files and audio for audio?

The topic ‘[Plugin: WP-Filebase] Problem with template’ is closed to new replies.

## Tags

 * [video](https://wordpress.org/support/topic-tag/video/)

 * 0 replies
 * 1 participant
 * Last reply from: [Onekiss](https://wordpress.org/support/users/onekiss/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-filebase-problem-with-template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
