BrowseAmp manual
version

 

back
2.2.4 filebrowser
BrowseAmp -> creating skins -> HTML tags -> filebrowser

show all available drives

<#browser_drives template=filename>

Used to build a list of all available drives on your system.

Parameter
template: required, Specifies a path/filename to use as template for a drive. The template is inserted for EVERY drive found on your system. You can use table rows <tr>...</tr> for example.

Example
<#browser_drives template=templates/browser_drives.html>


insert a drive

<#browser_drivename>

Should be used in the template for browser_drives. The tag is replaced with a drive.

Parameter
none.

Example
<a href="browser.html?drive=<#browser_enc_drivename>"> <#browser_drivename></a>


insert an url encoded drive name

<#browser_enc_drivename>

Should be used in the template for browser_drives. The tag is replaced with a url encoded drive name. That is needed for links.

Parameter
none.

Example
<a href="browser.html?drive=<#browser_enc_drivename>"> <#browser_drivename></a>

 

show a list of all directories

<#browser_directories template=filename>

Used to build a list of directories in the current folder.

Parameter
template: required, Specifies a path/filename to use as template for a directory. The template is inserted for EVERY directory found in the current browser directory. You can use table rows <tr>...</tr> for example.

Example
<#browser_directories template=templates/browser_directories.html>


insert a directory name

<#browser_directoryname>

Should be used in the template for browser_directories. The tag is replaced with a directory name.

Parameter
maxlength: How many chars to display

Example
<a href="browser.html?dir=<#browser_enc_directoryname>"> <#browser_directoryname></a>


insert a directory name in a form

<#browser_form_directoryname>

Should be used in the template for browser_directories. The tag is replaced with a directory name modified to be used in a form (e.g. checkbox).

Parameter
none.

Example
<input name="add" type="checkbox" id="add" value="<#browser_form_directoryname>">


insert an url encoded directory name

<#browser_enc_directoryname>

Should be used in the template for browser_directories. The tag is replaced with a url encoded directory name. That is needed for links.

Parameter
none.

Example
<a href="browser.html?dir=<#browser_enc_directoryname>"> <#browser_directoryname></a>

 

show a list of all files

<#browser_files template=filename extension=mp3:ogg>

Used to build a list of files in the current folder. The fileextensions are read from the winamp.ini.

Parameter
template: required, Specifies a path/filename to use as template for a file. The template is inserted for EVERY file found in the current browser directory. You can use table rows <tr>...</tr> for example.

extension
: What files - identified by their extension - you want to display. Separate them with a colon (:)..

Example 1
<#browser_files template=templates/browser_files.html>
use the browser_files.html template

Example 2
<#browser_files template=templates/browser_files_pl.html extension=m3u:pls>
shows only files with the m3u and pls extension (playlist formats). Uses the browser_files_pl.html template.


insert a filename

<#browser_filename>

Should be used in the template for browser_files. The tag is replaced with a filename.

Parameter
hideextension: If set to true the extension is cut off from the output.
maxlength: How many chars to display

Example
<a href="browser.html?file=<#browser_enc_filename>"> <#browser_filename hideextension=1></a>


insert a filename in a form

<#browser_form_filename>

Should be used in the template for browser_files. The tag is replaced with a filename modified to be used in a form (e.g. checkbox).

Parameter
none.

Example
<input name="add" type="checkbox" id="add" value="<#browser_form_filename>">


insert an url encoded filename

<#browser_enc_filename>

Should be used in the template for browser_files. The tag is replaced with a url encoded filename. That is needed for links.

Parameter
none.

Example
<a href="browser.html?file=<#browser_enc_filename>"> <#browser_filename></a>


insert the size of a file

<#browser_filesize>

Should be used in the template for browser_files. The tag is replaced with the size of the file in MB. Format: "#.##".
ATTENTION: The filesize of an open file (ex: currently playing in Winamp) cannot be determined. browser_filesize shows '0.00' then.

Parameter
none.

Example
<a href="browser.html?download=<#browser_enc_filename>" title="<#browser_filesize> MB, download with 'save link as'">download</a>

 

show the current directory

<#CurrentBrowserDirectory>

Is replaced with the directory you are currently in.

Parameter
useslashes: If set to true the backslashes "\" are replaced with ordinary slashes "/".
maxlength: How many chars to display

Example
Current folder: <#CurrentBrowserDirectory useslashes=true>


show the root directory of the current user

<#RootDirectory>

show the root directory of the current user.

Parameter
useslashes: If set to true the backslashes "\" are replaced with ordinary slashes "/".

Example
MP3 Root Directory: <#RootDirectory useslashes=true>

 

insert the string the directories were searched for

<#search_files_string>

Insert the string the playlist was searched for.

Parameter
maxlength: How many chars to display

Example
<input name="search_files_string" type="text" id="search_files_string" value="<#search_files_string>">

continue with misc

last change: 2008-02-29 , Henry Thasler
www.browseamp.com