BrowseAmp manual
version

 

back
2.3.6 BrowseAmp control commands
BrowseAmp -> creating skins -> Hyperlink commands -> BrowseAmp control commands

display albumart

albumart

Use this command with an image file. It will be replaced with the album art from the ID3-Tag. Select the file with the usefile command.

Parameters
none

Example 1 (display album art in playlist)
<a href="#Bigger" onClick="javascript:window.open('cover.jpg?usefile=<#playlist_filename urlencoded=1>&albumart', 'Album Art', 'width=480,height=400,scrollbars,resizable,dependent');" title="click to see cover art"><img src="./gfx/icon_image.gif" border="0"></a>

Example 1 (display album art with inifile settings)
<img src="<#inifile section=layout key=coverfilename parse=1 default=gfx/clearpixel.gif>" width="<#inifile section=layout key=showwidth default=400>" height="<#inifile section=layout key=showheight default=400>" id="coverart" border="0">

 

load file from album art cache

cache

load a file from the album art cache. This command is used by the <#albumart> tag. However you may find it useful for some purposes.

Parameters
none

Example
<img src="<#albumart default=gfx/clearpixel.gif>" width="400" height="400" id="coverart" border="0">

is replaced by

<img src="mysong.mp3.png?cache" width="400" height="400" id="coverart" border="0">

 

set charset

charset=<string>

Set the current charset. A valid charset looks like iso-8859-1 for latin1. You can use a form with a dropdown box to select charset (see base skin, option.html)

Parameters
<string>: the charset you like

Example
<a href="options.html?charset=iso-8859-1">defaut charset </a>

 

set charset

charset=<string>

Set the current charset. A valid charset looks like iso-8859-1 for latin1. You can use a form with a dropdown box to select charset (see base skin, option.html)

Parameters
<string>: the charset you like

Example
<a href="options.html?charset=iso-8859-1">defaut charset </a>

 

set ini section

inisection=<string>

Selects a [section] in skin.ini in your skin-directory.
Set the ini section to write to next. The value you set is persistent (saved on BrowseAmp exit)

Parameters
<string>: the section you like

Example
<a href="options.html?inisection=setup&showextensions_setini=1">show file extensions</a>

 

write ini-file key

#1_setini=#2

Writes a value to skin.ini in your skin-directory.
Writes #2 to the ini-file entry #1. Select [section] with inisection=# before.

Parameters
#1: key
#2: data

Example
<a href="options.html?inisection=layout&coverwidth_setini=120">set coverwidth value to 120</a>

 

toggle 'remove-played-songs'

removeplayed

Toggles the 'remove-played-songs' option.

Parameters
none

Example
<a href="?removeplayed"><#RemovePlayedStatus></a>


toggle 'keep-playlist-alive'

keepplaylistalive

Toggles the 'keep-playlist-alive' option.

Parameters
none

Example
<a href="?keepplaylistalive"><#KeepPlaylistAliveStatus></a>

 

show BrowseAmp logfile

logfile

Displays the BrowseAmp logfile. Privileges are required. See Browseamp setup for details.

Parameters
none

Example
<a href="#Log" onClick="javascript:window.open('logfile?logfile', 'logfile', 'width=480,height=400,scrollbars,resizable,dependent');">view
server log</a>

 

refresh page

refresh

Does nothing. Just reloads the page without any commands.

Parameters
none

Example
<a href="?rfresh">refresh page</a>

 

use another web skin

skin=<string>

Select a web skin. Use this command in skin template.

Parameters
<string>: Use the skin_enc_name to specify a skin.

Example
<a href="index.html?skin=<#skin_enc_name>" target="_top"><#skin_name></a>

 

set source path of a file

src=<pathtofile>

You can redirect the source path of a file with that command. Use this to display cover art or whatever you want. By default, you can only specify a path within the MP3 root. To read files outside the root you have to check the 'allow src= outside home folder' in the BrowseAmp config window('security').

Example
<img src="front.jpg?src=<#CurrentBrowserDirectory urlencoded=1>" width="100" height="100">

shows a picture called front.jpg located in the current browser directory.

<img src="<#artist urlencoded=1>.jpg?src=<#CurrentBrowserDirectory urlencoded=1>" width="100" height="100">

shows a picture called <artist>.jpg located in the current browser directory. Where <artist> is replaced by the artist of the current track.

 

select a file for further operations

usefile=filename

Select a file to use for the following commands. These commands use this setting:

Parameters
filename: file to use.

Example 1 (rating)
rate this file:
<a href="?usefile=<#CurrentTrackFilename>&rating=0">0</a>
<a href="?usefile=<#CurrentTrackFilename>&rating=1">1</a>
<a href="?usefile=<#CurrentTrackFilename>&rating=2">2</a>
<a href="?usefile=<#CurrentTrackFilename>&rating=3">3</a>
<a href="?usefile=<#CurrentTrackFilename>&rating=4">4</a>
<a href="?usefile=<#CurrentTrackFilename>&rating=5">5</a>

Example 1 (albumart)
<img src="cover.jpg?usefile=<#CurrentTrackFilename urlencoded=1>&albumart" width="160" height="160" id="coverart" border="0">


last change: 2008-03-01 , Henry Thasler
www.browseamp.com